export type PosthogClient = { /** * Check access * Tags: code-invites, code * Access as: posthog.codeInvitesCheckAccessRetrieve() */ codeInvitesCheckAccessRetrieve: () => Promise; /** * Redeem invite code * Tags: code-invites, code * Access as: posthog.codeInvitesRedeemCreate() */ codeInvitesRedeemCreate: () => Promise; /** * * Tags: accounts * Access as: posthog.environmentsAccountsList() */ environmentsAccountsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null })[] }>; /** * * Tags: accounts * Access as: posthog.environmentsAccountsCreate() */ environmentsAccountsCreate: () => Promise<{ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.environmentsAccountsNotebooksList() */ environmentsAccountsNotebooksList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.environmentsAccountsNotebooksCreate() */ environmentsAccountsNotebooksCreate: () => Promise<{ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.environmentsAccountsNotebooksRetrieve() */ environmentsAccountsNotebooksRetrieve: () => Promise<{ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.environmentsAccountsNotebooksDestroy() */ environmentsAccountsNotebooksDestroy: () => Promise; /** * * Tags: accounts * Access as: posthog.environmentsAccountsRetrieve() */ environmentsAccountsRetrieve: () => Promise<{ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: accounts * Access as: posthog.environmentsAccountsUpdate() */ environmentsAccountsUpdate: () => Promise<{ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: accounts * Access as: posthog.environmentsAccountsPartialUpdate() */ environmentsAccountsPartialUpdate: () => Promise<{ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: accounts * Access as: posthog.environmentsAccountsDestroy() */ environmentsAccountsDestroy: () => Promise; /** * * Tags: alerts * Access as: posthog.environmentsAlertsList() */ environmentsAlertsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown })[] }>; /** * * Tags: alerts * Access as: posthog.environmentsAlertsCreate() */ environmentsAlertsCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: alerts * Access as: posthog.environmentsAlertsRetrieve() */ environmentsAlertsRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: alerts * Access as: posthog.environmentsAlertsUpdate() */ environmentsAlertsUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: alerts * Access as: posthog.environmentsAlertsPartialUpdate() */ environmentsAlertsPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: alerts * Access as: posthog.environmentsAlertsDestroy() */ environmentsAlertsDestroy: () => Promise; /** * Simulate a detector on an insight's historical data. Read-only — no AlertCheck records are created. * Tags: alerts * Access as: posthog.environmentsAlertsSimulateCreate() */ environmentsAlertsSimulateCreate: () => Promise<{ data: (number)[]; dates: (string)[]; scores: (number | null)[]; triggered_indices: (number)[]; triggered_dates: (string)[]; interval: string | null; total_points: number; anomaly_count: number; sub_detector_scores?: ({ [key: string]: unknown })[]; breakdown_results?: ({ label: string; data: (number)[]; dates: (string)[]; scores: (number | null)[]; triggered_indices: (number)[]; triggered_dates: (string)[]; total_points: number; anomaly_count: number; sub_detector_scores?: ({ [key: string]: unknown })[] })[] }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.environmentsApprovalPoliciesList() */ environmentsApprovalPoliciesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null })[] }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.environmentsApprovalPoliciesCreate() */ environmentsApprovalPoliciesCreate: () => Promise<{ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.environmentsApprovalPoliciesRetrieve() */ environmentsApprovalPoliciesRetrieve: () => Promise<{ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.environmentsApprovalPoliciesUpdate() */ environmentsApprovalPoliciesUpdate: () => Promise<{ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.environmentsApprovalPoliciesPartialUpdate() */ environmentsApprovalPoliciesPartialUpdate: () => Promise<{ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.environmentsApprovalPoliciesDestroy() */ environmentsApprovalPoliciesDestroy: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsList() */ environmentsBatchExportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null })[] }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsCreate() */ environmentsBatchExportsCreate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them. * Tags: batch_exports * Access as: posthog.environmentsBatchExportsBackfillsList() */ environmentsBatchExportsBackfillsList: () => Promise<{ next?: string | null; previous?: string | null; results: ({ id: string; progress: { [key: string]: unknown } | null; start_at?: string | null; end_at?: string | null; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "Terminated" | "TimedOut" | "Running" | "Starting"; created_at: string; finished_at?: string | null; last_updated_at: string; total_records_count?: number | null; adjusted_start_at?: string | null; team: number; batch_export: string })[] }>; /** * Create a new backfill for a BatchExport. * Tags: batch_exports * Access as: posthog.environmentsBatchExportsBackfillsCreate() */ environmentsBatchExportsBackfillsCreate: () => Promise<{ id: string; progress: { [key: string]: unknown } | null; start_at?: string | null; end_at?: string | null; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "Terminated" | "TimedOut" | "Running" | "Starting"; created_at: string; finished_at?: string | null; last_updated_at: string; total_records_count?: number | null; adjusted_start_at?: string | null; team: number; batch_export: string }>; /** * ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them. * Tags: batch_exports * Access as: posthog.environmentsBatchExportsBackfillsRetrieve() */ environmentsBatchExportsBackfillsRetrieve: () => Promise<{ id: string; progress: { [key: string]: unknown } | null; start_at?: string | null; end_at?: string | null; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "Terminated" | "TimedOut" | "Running" | "Starting"; created_at: string; finished_at?: string | null; last_updated_at: string; total_records_count?: number | null; adjusted_start_at?: string | null; team: number; batch_export: string }>; /** * Cancel a batch export backfill. * Tags: batch_exports * Access as: posthog.environmentsBatchExportsBackfillsCancelCreate() */ environmentsBatchExportsBackfillsCancelCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsRunsList() */ environmentsBatchExportsRunsList: () => Promise<{ next?: string | null; previous?: string | null; results: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[] }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsRunsRetrieve() */ environmentsBatchExportsRunsRetrieve: () => Promise<{ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null }>; /** * Cancel a batch export run. * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsRunsCancelCreate() */ environmentsBatchExportsRunsCancelCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsRunsLogsRetrieve() */ environmentsBatchExportsRunsLogsRetrieve: () => Promise; /** * Retry a batch export run. We use the same underlying mechanism as when backfilling a batch export, as retrying a run is the same as backfilling one run. * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsRunsRetryCreate() */ environmentsBatchExportsRunsRetryCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsRetrieve() */ environmentsBatchExportsRetrieve: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsUpdate() */ environmentsBatchExportsUpdate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsPartialUpdate() */ environmentsBatchExportsPartialUpdate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsDestroy() */ environmentsBatchExportsDestroy: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsLogsRetrieve() */ environmentsBatchExportsLogsRetrieve: () => Promise; /** * Pause a BatchExport. * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsPauseCreate() */ environmentsBatchExportsPauseCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsRunTestStepCreate() */ environmentsBatchExportsRunTestStepCreate: () => Promise; /** * Unpause a BatchExport. * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsUnpauseCreate() */ environmentsBatchExportsUnpauseCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsRunTestStepNewCreate() */ environmentsBatchExportsRunTestStepNewCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.environmentsBatchExportsTestRetrieve() */ environmentsBatchExportsTestRetrieve: () => Promise; /** * * Tags: platform_features, change_requests * Access as: posthog.environmentsChangeRequestsList() */ environmentsChangeRequestsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null })[] }>; /** * * Tags: platform_features, change_requests * Access as: posthog.environmentsChangeRequestsRetrieve() */ environmentsChangeRequestsRetrieve: () => Promise<{ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null }>; /** * Approve a change request. If quorum is reached, automatically applies the change immediately. * Tags: platform_features, change_requests * Access as: posthog.environmentsChangeRequestsApproveCreate() */ environmentsChangeRequestsApproveCreate: () => Promise<{ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null }>; /** * Cancel a change request. Only the requester can cancel their own pending change request. * Tags: platform_features, change_requests * Access as: posthog.environmentsChangeRequestsCancelCreate() */ environmentsChangeRequestsCancelCreate: () => Promise<{ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null }>; /** * Reject a change request. * Tags: platform_features, change_requests * Access as: posthog.environmentsChangeRequestsRejectCreate() */ environmentsChangeRequestsRejectCreate: () => Promise<{ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null }>; /** * * Tags: max, conversations * Access as: posthog.environmentsConversationsList() */ environmentsConversationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null })[] }>; /** * Unified endpoint that handles both conversation creation and streaming. - If message is provided: Start new conversation processing - If no message: Stream from existing conversation * Tags: max, conversations * Access as: posthog.environmentsConversationsCreate() */ environmentsConversationsCreate: () => Promise<{ content: string | null; conversation: string; contextual_tools?: { [key: string]: unknown }; ui_context?: unknown; billing_context?: unknown; trace_id: string; session_id?: string; agent_mode?: "product_analytics" | "sql" | "session_replay" | "error_tracking" | "plan" | "execution" | "survey" | "research" | "flags" | "llm_analytics" | "sandbox" | "user_interview" | "customer_analytics"; is_sandbox?: boolean; resume_payload?: unknown }>; /** * * Tags: max, conversations * Access as: posthog.environmentsConversationsRetrieve() */ environmentsConversationsRetrieve: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * Delete a conversation. * Tags: max, conversations * Access as: posthog.environmentsConversationsDestroy() */ environmentsConversationsDestroy: () => Promise; /** * Appends a message to an existing conversation without triggering AI processing. This is used for client-side generated messages that need to be persisted (e.g., support ticket confirmation messages). * Tags: max, conversations * Access as: posthog.environmentsConversationsAppendMessageCreate() */ environmentsConversationsAppendMessageCreate: () => Promise<{ content: string }>; /** * Cancel the conversation's in-progress LangGraph run. * Tags: max, conversations * Access as: posthog.environmentsConversationsCancelPartialUpdate() */ environmentsConversationsCancelPartialUpdate: () => Promise; /** * Create-or-resume a sandbox conversation — the single sandbox session opener. With `content`, processes the turn (first message, in-progress follow-up, or terminal resume); without `content`, warms a sandbox that idles awaiting the first message. Returns the `(task, run)` handle the frontend opens SSE against. The conversation row is created on first use from the URL id. * Tags: max, conversations * Access as: posthog.environmentsConversationsOpenCreate() */ environmentsConversationsOpenCreate: () => Promise<{ task_id: string; run_id: string; trace_id: string | null; run_status: string; just_created_run: boolean }>; /** * * Tags: max, conversations * Access as: posthog.environmentsConversationsQueueRetrieve() */ environmentsConversationsQueueRetrieve: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * * Tags: max, conversations * Access as: posthog.environmentsConversationsQueueCreate() */ environmentsConversationsQueueCreate: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * * Tags: max, conversations * Access as: posthog.environmentsConversationsQueuePartialUpdate() */ environmentsConversationsQueuePartialUpdate: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * * Tags: max, conversations * Access as: posthog.environmentsConversationsQueueDestroy() */ environmentsConversationsQueueDestroy: () => Promise; /** * * Tags: max, conversations * Access as: posthog.environmentsConversationsQueueClearCreate() */ environmentsConversationsQueueClearCreate: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * * Tags: conversations * Access as: posthog.environmentsConversationsViewsList() */ environmentsConversationsViewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * * Tags: conversations * Access as: posthog.environmentsConversationsViewsCreate() */ environmentsConversationsViewsCreate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: conversations * Access as: posthog.environmentsConversationsViewsRetrieve() */ environmentsConversationsViewsRetrieve: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: conversations * Access as: posthog.environmentsConversationsViewsDestroy() */ environmentsConversationsViewsDestroy: () => Promise; /** * * Tags: custom_property_definitions * Access as: posthog.environmentsCustomPropertyDefinitionsList() */ environmentsCustomPropertyDefinitionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.environmentsCustomPropertyDefinitionsCreate() */ environmentsCustomPropertyDefinitionsCreate: () => Promise<{ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.environmentsCustomPropertyDefinitionsRetrieve() */ environmentsCustomPropertyDefinitionsRetrieve: () => Promise<{ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.environmentsCustomPropertyDefinitionsUpdate() */ environmentsCustomPropertyDefinitionsUpdate: () => Promise<{ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.environmentsCustomPropertyDefinitionsPartialUpdate() */ environmentsCustomPropertyDefinitionsPartialUpdate: () => Promise<{ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.environmentsCustomPropertyDefinitionsDestroy() */ environmentsCustomPropertyDefinitionsDestroy: () => Promise; /** * * Tags: custom_property_definitions * Access as: posthog.environmentsCustomPropertyDefinitionsValuesRetrieve() */ environmentsCustomPropertyDefinitionsValuesRetrieve: () => Promise<{ results: ({ name: string })[]; refreshing: boolean }>; /** * * Tags: customer_journeys * Access as: posthog.environmentsCustomerJourneysList() */ environmentsCustomerJourneysList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null })[] }>; /** * * Tags: customer_journeys * Access as: posthog.environmentsCustomerJourneysCreate() */ environmentsCustomerJourneysCreate: () => Promise<{ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_journeys * Access as: posthog.environmentsCustomerJourneysRetrieve() */ environmentsCustomerJourneysRetrieve: () => Promise<{ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_journeys * Access as: posthog.environmentsCustomerJourneysUpdate() */ environmentsCustomerJourneysUpdate: () => Promise<{ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_journeys * Access as: posthog.environmentsCustomerJourneysPartialUpdate() */ environmentsCustomerJourneysPartialUpdate: () => Promise<{ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_journeys * Access as: posthog.environmentsCustomerJourneysDestroy() */ environmentsCustomerJourneysDestroy: () => Promise; /** * * Tags: customer_profile_configs * Access as: posthog.environmentsCustomerProfileConfigsList() */ environmentsCustomerProfileConfigsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null })[] }>; /** * * Tags: customer_profile_configs * Access as: posthog.environmentsCustomerProfileConfigsCreate() */ environmentsCustomerProfileConfigsCreate: () => Promise<{ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null }>; /** * * Tags: customer_profile_configs * Access as: posthog.environmentsCustomerProfileConfigsRetrieve() */ environmentsCustomerProfileConfigsRetrieve: () => Promise<{ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null }>; /** * * Tags: customer_profile_configs * Access as: posthog.environmentsCustomerProfileConfigsUpdate() */ environmentsCustomerProfileConfigsUpdate: () => Promise<{ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null }>; /** * * Tags: customer_profile_configs * Access as: posthog.environmentsCustomerProfileConfigsPartialUpdate() */ environmentsCustomerProfileConfigsPartialUpdate: () => Promise<{ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null }>; /** * * Tags: customer_profile_configs * Access as: posthog.environmentsCustomerProfileConfigsDestroy() */ environmentsCustomerProfileConfigsDestroy: () => Promise; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsList() */ environmentsDashboardsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name: string | null; description: string; pinned: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; tags?: (unknown)[]; restriction_level: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh: string | null; team_id: number; search_match_type: "exact" | "similar" | null })[] }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsCreate() */ environmentsDashboardsCreate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsCollaboratorsList() */ environmentsDashboardsCollaboratorsList: () => Promise<({ id: string; dashboard_id: number; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level: 21 | 37; added_at: string; updated_at: string; user_uuid: string })[]>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsCollaboratorsCreate() */ environmentsDashboardsCollaboratorsCreate: () => Promise<{ id: string; dashboard_id: number; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level: 21 | 37; added_at: string; updated_at: string; user_uuid: string }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsCollaboratorsDestroy() */ environmentsDashboardsCollaboratorsDestroy: () => Promise; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsSharingList() */ environmentsDashboardsSharingList: () => Promise<({ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] })[]>; /** * Create a new password for the sharing configuration. * Tags: dashboards * Access as: posthog.environmentsDashboardsSharingPasswordsCreate() */ environmentsDashboardsSharingPasswordsCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a password from the sharing configuration. * Tags: dashboards * Access as: posthog.environmentsDashboardsSharingPasswordsDestroy() */ environmentsDashboardsSharingPasswordsDestroy: () => Promise; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsSharingRefreshCreate() */ environmentsDashboardsSharingRefreshCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsRetrieve() */ environmentsDashboardsRetrieve: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsUpdate() */ environmentsDashboardsUpdate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsPartialUpdate() */ environmentsDashboardsPartialUpdate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: dashboards * Access as: posthog.environmentsDashboardsDestroy() */ environmentsDashboardsDestroy: () => Promise; /** * Copy an existing dashboard tile to another dashboard (insight, text card, or widget tile). * Tags: dashboards * Access as: posthog.environmentsDashboardsCopyTileCreate() */ environmentsDashboardsCopyTileCreate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * Add a markdown text tile to a dashboard. Text tiles render as markdown blocks on the dashboard — useful as section headings, dividers, or annotations between insight tiles to give the dashboard structure. * Tags: dashboards * Access as: posthog.environmentsDashboardsCreateTextTileCreate() */ environmentsDashboardsCreateTextTileCreate: () => Promise<{ id?: number; insight: { id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }; text: { id: number; created_by: unknown; last_modified_by: unknown; body?: string | null; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_modified_at: string; team: number }; button_tile: { id: string; created_by: unknown; last_modified_by: unknown; url: string; text: string; placement?: "left" | "right"; dashboard_tiles: (unknown)[]; style?: "primary" | "secondary"; last_modified_at: string; team: number }; widget?: { id: string; created_by: unknown; last_modified_by: unknown; widget_type: string; name?: string | null; description?: string; config?: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null } | { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null } | { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null } | { experimentId?: number | null } | { dateRange?: unknown | null; surveyId?: string | null; limit?: number } | { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; dashboard_tiles: (unknown)[]; last_modified_at: string; team: number } | null; layouts?: unknown; color?: string | null; filters_overrides?: unknown; show_description?: boolean | null; transparent_background?: boolean | null }>; /** * Soft-delete a single tile from a dashboard. Works for text, insight, and button tiles. The underlying Insight, Text, or ButtonTile object is preserved — only the dashboard tile is hidden. To delete the entire dashboard, use the dashboard delete endpoint instead. * Tags: dashboards * Access as: posthog.environmentsDashboardsDeleteTile() */ environmentsDashboardsDeleteTile: () => Promise; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsMoveTileCreate() */ environmentsDashboardsMoveTileCreate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsMoveTilePartialUpdate() */ environmentsDashboardsMoveTilePartialUpdate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsReorderTilesCreate() */ environmentsDashboardsReorderTilesCreate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * Run all insights on a dashboard and return their results. * Tags: dashboards * Access as: posthog.environmentsDashboardsRunInsightsRetrieve() */ environmentsDashboardsRunInsightsRetrieve: () => Promise<{ results: ({ id?: number; insight: { id: number; short_id: string; name: string | null; derived_name: string | null; result: unknown } })[] }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsRunWidgetsRetrieve() */ environmentsDashboardsRunWidgetsRetrieve: () => Promise<{ results: ({ tile_id: number; widget_type: string | null; result: unknown; error: string | null })[] }>; /** * Stream dashboard metadata and tiles via Server-Sent Events. Sends metadata first, then tiles as they are rendered. * Tags: dashboards * Access as: posthog.environmentsDashboardsStreamTilesRetrieve() */ environmentsDashboardsStreamTilesRetrieve: () => Promise; /** * Update the markdown body, layout, or color of an existing text tile on a dashboard. * Tags: dashboards * Access as: posthog.environmentsDashboardsUpdateTextTileCreate() */ environmentsDashboardsUpdateTextTileCreate: () => Promise<{ id?: number; insight: { id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }; text: { id: number; created_by: unknown; last_modified_by: unknown; body?: string | null; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_modified_at: string; team: number }; button_tile: { id: string; created_by: unknown; last_modified_by: unknown; url: string; text: string; placement?: "left" | "right"; dashboard_tiles: (unknown)[]; style?: "primary" | "secondary"; last_modified_at: string; team: number }; widget?: { id: string; created_by: unknown; last_modified_by: unknown; widget_type: string; name?: string | null; description?: string; config?: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null } | { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null } | { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null } | { experimentId?: number | null } | { dateRange?: unknown | null; surveyId?: string | null; limit?: number } | { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; dashboard_tiles: (unknown)[]; last_modified_at: string; team: number } | null; layouts?: unknown; color?: string | null; filters_overrides?: unknown; show_description?: boolean | null; transparent_background?: boolean | null }>; /** * Add multiple widget tiles to a dashboard in one atomic request. * Tags: dashboards * Access as: posthog.environmentsDashboardsWidgetsBatchCreate() */ environmentsDashboardsWidgetsBatchCreate: () => Promise<{ tiles: ({ id?: number; insight: { id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }; text: { id: number; created_by: unknown; last_modified_by: unknown; body?: string | null; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_modified_at: string; team: number }; button_tile: { id: string; created_by: unknown; last_modified_by: unknown; url: string; text: string; placement?: "left" | "right"; dashboard_tiles: (unknown)[]; style?: "primary" | "secondary"; last_modified_at: string; team: number }; widget?: { id: string; created_by: unknown; last_modified_by: unknown; widget_type: string; name?: string | null; description?: string; config?: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null } | { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null } | { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null } | { experimentId?: number | null } | { dateRange?: unknown | null; surveyId?: string | null; limit?: number } | { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; dashboard_tiles: (unknown)[]; last_modified_at: string; team: number } | null; layouts?: unknown; color?: string | null; filters_overrides?: unknown; show_description?: boolean | null; transparent_background?: boolean | null })[] }>; /** * Update the settings of existing widgets in place, atomically — config, name, and description. Each entry targets a widget by its tile_id and reuses the same write path as the dashboard PATCH endpoint. The widget_type is immutable. This edits widget settings only (config, name, description); tile placement (layouts, show_description) is a dashboard concern — use the dashboard PATCH endpoint or reorder_tiles for that. All updates succeed or fail together. To add new widgets, use the widgets/batch POST endpoint; to remove one, use delete_tile. * Tags: dashboards * Access as: posthog.environmentsDashboardsUpdateWidgetsBatch() */ environmentsDashboardsUpdateWidgetsBatch: () => Promise<{ tiles: ({ id?: number; insight: { id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }; text: { id: number; created_by: unknown; last_modified_by: unknown; body?: string | null; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_modified_at: string; team: number }; button_tile: { id: string; created_by: unknown; last_modified_by: unknown; url: string; text: string; placement?: "left" | "right"; dashboard_tiles: (unknown)[]; style?: "primary" | "secondary"; last_modified_at: string; team: number }; widget?: { id: string; created_by: unknown; last_modified_by: unknown; widget_type: string; name?: string | null; description?: string; config?: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null } | { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null } | { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null } | { experimentId?: number | null } | { dateRange?: unknown | null; surveyId?: string | null; limit?: number } | { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; dashboard_tiles: (unknown)[]; last_modified_at: string; team: number } | null; layouts?: unknown; color?: string | null; filters_overrides?: unknown; show_description?: boolean | null; transparent_background?: boolean | null })[] }>; /** * Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list * Tags: dashboards * Access as: posthog.environmentsDashboardsBulkUpdateTagsCreate() */ environmentsDashboardsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: number; tags: (string)[] })[]; skipped: ({ id: number; reason: string })[] }>; /** * * Tags: dashboards * Access as: posthog.environmentsDashboardsCreateFromTemplateJsonCreate() */ environmentsDashboardsCreateFromTemplateJsonCreate: () => Promise; /** * Creates an unlisted dashboard from template by tag. Enforces uniqueness (one per tag per team). Returns 409 if unlisted dashboard with this tag already exists. * Tags: dashboards * Access as: posthog.environmentsDashboardsCreateUnlistedDashboardCreate() */ environmentsDashboardsCreateUnlistedDashboardCreate: () => Promise; /** * List registered dashboard widget types and per-type config_schema documentation for agents. * Tags: dashboards * Access as: posthog.environmentsDashboardsWidgetCatalogRetrieve() */ environmentsDashboardsWidgetCatalogRetrieve: () => Promise<{ results: ({ widget_type: "activity_events_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null }; required_product_access?: string | null } | { widget_type: "error_tracking_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null }; required_product_access?: string | null } | { widget_type: "session_replay_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null }; required_product_access?: string | null } | { widget_type: "experiments_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null }; required_product_access?: string | null } | { widget_type: "experiment_results"; group_id: string; group_label: string; label: string; description: string; config_schema: { experimentId?: number | null }; required_product_access?: string | null } | { widget_type: "survey_results"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: unknown | null; surveyId?: string | null; limit?: number }; required_product_access?: string | null } | { widget_type: "logs_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; required_product_access?: string | null })[] }>; /** * * Tags: data_color_themes * Access as: posthog.environmentsDataColorThemesList() */ environmentsDataColorThemesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * * Tags: data_color_themes * Access as: posthog.environmentsDataColorThemesCreate() */ environmentsDataColorThemesCreate: () => Promise<{ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: data_color_themes * Access as: posthog.environmentsDataColorThemesRetrieve() */ environmentsDataColorThemesRetrieve: () => Promise<{ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: data_color_themes * Access as: posthog.environmentsDataColorThemesUpdate() */ environmentsDataColorThemesUpdate: () => Promise<{ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: data_color_themes * Access as: posthog.environmentsDataColorThemesPartialUpdate() */ environmentsDataColorThemesPartialUpdate: () => Promise<{ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: data_color_themes * Access as: posthog.environmentsDataColorThemesDestroy() */ environmentsDataColorThemesDestroy: () => Promise; /** * List data modeling jobs which are "runs" for our saved queries. * Tags: data_modeling_jobs * Access as: posthog.environmentsDataModelingJobsList() */ environmentsDataModelingJobsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; saved_query_id: string | null; status: "Cancelled" | "Completed" | "Failed" | "Running"; rows_materialized: number; error: string | null; created_at: string; last_run_at: string; workflow_id: string | null; workflow_run_id: string | null; rows_expected: number | null })[] }>; /** * List data modeling jobs which are "runs" for our saved queries. * Tags: data_modeling_jobs * Access as: posthog.environmentsDataModelingJobsRetrieve() */ environmentsDataModelingJobsRetrieve: () => Promise<{ id: string; saved_query_id: string | null; status: "Cancelled" | "Completed" | "Failed" | "Running"; rows_materialized: number; error: string | null; created_at: string; last_run_at: string; workflow_id: string | null; workflow_run_id: string | null; rows_expected: number | null }>; /** * Get the most recent non-running job for each saved query from the v2 backend. * Tags: data_modeling_jobs * Access as: posthog.environmentsDataModelingJobsRecentRetrieve() */ environmentsDataModelingJobsRecentRetrieve: () => Promise<{ id: string; saved_query_id: string | null; status: "Cancelled" | "Completed" | "Failed" | "Running"; rows_materialized: number; error: string | null; created_at: string; last_run_at: string; workflow_id: string | null; workflow_run_id: string | null; rows_expected: number | null }>; /** * Get all currently running jobs from the v2 backend. * Tags: data_modeling_jobs * Access as: posthog.environmentsDataModelingJobsRunningRetrieve() */ environmentsDataModelingJobsRunningRetrieve: () => Promise<{ id: string; saved_query_id: string | null; status: "Cancelled" | "Completed" | "Failed" | "Running"; rows_materialized: number; error: string | null; created_at: string; last_run_at: string; workflow_id: string | null; workflow_run_id: string | null; rows_expected: number | null }>; /** * Check if a database name is available. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseCheckDatabaseNameRetrieve() */ environmentsDataWarehouseCheckDatabaseNameRetrieve: () => Promise<{ name: string; available: boolean }>; /** * Returns completed/non-running activities (jobs with status 'Completed'). Supports pagination and cutoff time filtering. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseCompletedActivityRetrieve() */ environmentsDataWarehouseCompletedActivityRetrieve: () => Promise; /** * Returns failed/disabled data pipeline items for the Pipeline status side panel. Includes: materializations, syncs, sources, destinations, and transformations. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseDataHealthIssuesRetrieve() */ environmentsDataWarehouseDataHealthIssuesRetrieve: () => Promise; /** * Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseDataOpsDashboardRetrieve() */ environmentsDataWarehouseDataOpsDashboardRetrieve: () => Promise; /** * Remove the organization's provisioning record after teardown, freeing its warehouse name. Called once the warehouse status reports `deleted`: deprovision tears the warehouse down, this removes the now-empty org row so the database_name can be reused. Restricted to organization admins. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseDeleteOrgDestroy() */ environmentsDataWarehouseDeleteOrgDestroy: () => Promise<{ status?: string; org?: string }>; /** * Start deprovisioning the organization's managed warehouse. Restricted to organization admins. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseDeprovisionCreate() */ environmentsDataWarehouseDeprovisionCreate: () => Promise; /** * Enable warehouse backfill for this environment with a dedicated set of tables. Requires a table name and records the environment's membership in the organization's managed warehouse. Restricted to organization admins. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseEnableBackfillCreate() */ environmentsDataWarehouseEnableBackfillCreate: () => Promise<{ enabled: boolean; table_suffix: string }>; /** * Returns success and failed job statistics for the last 1, 7, or 30 days. Query parameter 'days' can be 1, 7, or 30 (default: 7). * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseJobStatsRetrieve() */ environmentsDataWarehouseJobStatsRetrieve: () => Promise; /** * API endpoints for data warehouse aggregate statistics and operations. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehousePropertyValuesRetrieve() */ environmentsDataWarehousePropertyValuesRetrieve: () => Promise; /** * Start provisioning a managed warehouse for this organization (shared by all its teams). * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseProvisionCreate() */ environmentsDataWarehouseProvisionCreate: () => Promise; /** * Reset the root password for the managed warehouse. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseResetPasswordCreate() */ environmentsDataWarehouseResetPasswordCreate: () => Promise<{ username: string; password: string }>; /** * Returns currently running activities (jobs with status 'Running'). Supports pagination and cutoff time filtering. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseRunningActivityRetrieve() */ environmentsDataWarehouseRunningActivityRetrieve: () => Promise; /** * Returns aggregated statistics for the data warehouse total rows processed within the current billing period. Used by the frontend data warehouse scene to display usage information. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseTotalRowsStatsRetrieve() */ environmentsDataWarehouseTotalRowsStatsRetrieve: () => Promise; /** * Get the current provisioning status of the managed warehouse, with this project's backfill state. * Tags: data_warehouse * Access as: posthog.environmentsDataWarehouseWarehouseStatusRetrieve() */ environmentsDataWarehouseWarehouseStatusRetrieve: () => Promise<{ org_id: string; state: "pending" | "provisioning" | "ready" | "failed" | "deleting" | "deleted"; status_message: string; s3_state: string; metadata_store_state: string; identity_state: string; secrets_state: string; ready_at: string | null; failed_at: string | null; connection?: { host: string; port: number; database: string; username: string } | null; has_backfill: boolean; table_suffix: string | null }>; /** * * Tags: dataset_items * Access as: posthog.environmentsDatasetItemsList() */ environmentsDatasetItemsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number })[] }>; /** * * Tags: dataset_items * Access as: posthog.environmentsDatasetItemsCreate() */ environmentsDatasetItemsCreate: () => Promise<{ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: dataset_items * Access as: posthog.environmentsDatasetItemsRetrieve() */ environmentsDatasetItemsRetrieve: () => Promise<{ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: dataset_items * Access as: posthog.environmentsDatasetItemsUpdate() */ environmentsDatasetItemsUpdate: () => Promise<{ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: dataset_items * Access as: posthog.environmentsDatasetItemsPartialUpdate() */ environmentsDatasetItemsPartialUpdate: () => Promise<{ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: dataset_items * Access as: posthog.environmentsDatasetItemsDestroy() */ environmentsDatasetItemsDestroy: () => Promise; /** * * Tags: datasets * Access as: posthog.environmentsDatasetsList() */ environmentsDatasetsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number })[] }>; /** * * Tags: datasets * Access as: posthog.environmentsDatasetsCreate() */ environmentsDatasetsCreate: () => Promise<{ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: datasets * Access as: posthog.environmentsDatasetsRetrieve() */ environmentsDatasetsRetrieve: () => Promise<{ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: datasets * Access as: posthog.environmentsDatasetsUpdate() */ environmentsDatasetsUpdate: () => Promise<{ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: datasets * Access as: posthog.environmentsDatasetsPartialUpdate() */ environmentsDatasetsPartialUpdate: () => Promise<{ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: datasets * Access as: posthog.environmentsDatasetsDestroy() */ environmentsDatasetsDestroy: () => Promise; /** * * Tags: elements * Access as: posthog.environmentsElementsList() */ environmentsElementsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null })[] }>; /** * * Tags: elements * Access as: posthog.environmentsElementsCreate() */ environmentsElementsCreate: () => Promise<{ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null }>; /** * * Tags: elements * Access as: posthog.environmentsElementsRetrieve() */ environmentsElementsRetrieve: () => Promise<{ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null }>; /** * * Tags: elements * Access as: posthog.environmentsElementsUpdate() */ environmentsElementsUpdate: () => Promise<{ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null }>; /** * * Tags: elements * Access as: posthog.environmentsElementsPartialUpdate() */ environmentsElementsPartialUpdate: () => Promise<{ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null }>; /** * * Tags: elements * Access as: posthog.environmentsElementsDestroy() */ environmentsElementsDestroy: () => Promise; /** * Counts of $autocapture, $rageclick, and $dead_click events grouped by the element chain they occurred on, ordered by count. Defaults to all three event types; narrow with the include parameter. * Tags: elements * Access as: posthog.environmentsElementsStatsRetrieve() */ environmentsElementsStatsRetrieve: () => Promise<{ results: ({ count: number; hash: string | null; type: string; elements: ({ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null })[] })[]; next: string | null; previous: string | null }>; /** * * Tags: elements * Access as: posthog.environmentsElementsValuesList() */ environmentsElementsValuesList: () => Promise<({ name: string })[]>; /** * List all endpoints for the team. * Tags: endpoints * Access as: posthog.environmentsEndpointsList() */ environmentsEndpointsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[] })[] }>; /** * Create a new endpoint. * Tags: endpoints * Access as: posthog.environmentsEndpointsCreate() */ environmentsEndpointsCreate: () => Promise<{ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[] }>; /** * Retrieve an endpoint, or a specific version via ?version=N. * Tags: endpoints * Access as: posthog.environmentsEndpointsRetrieve() */ environmentsEndpointsRetrieve: () => Promise<{ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[]; version: number; version_id: string; endpoint_is_active: boolean; version_created_at: string; version_updated_at: string | null; version_created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null }>; /** * Update an existing endpoint. Parameters are optional. Pass version in body or ?version=N query param to target a specific version. * Tags: endpoints * Access as: posthog.environmentsEndpointsUpdate() */ environmentsEndpointsUpdate: () => Promise<{ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[] }>; /** * Update an existing endpoint. * Tags: endpoints * Access as: posthog.environmentsEndpointsPartialUpdate() */ environmentsEndpointsPartialUpdate: () => Promise<{ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[] }>; /** * Delete an endpoint and clean up materialized query. * Tags: endpoints * Access as: posthog.environmentsEndpointsDestroy() */ environmentsEndpointsDestroy: () => Promise; /** * * Tags: endpoints * Access as: posthog.environmentsEndpointsLogsRetrieve() */ environmentsEndpointsLogsRetrieve: () => Promise; /** * Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions. * Tags: endpoints * Access as: posthog.environmentsEndpointsMaterializationPreviewCreate() */ environmentsEndpointsMaterializationPreviewCreate: () => Promise; /** * Get materialization status for an endpoint. Supports ?version=N query param. * Tags: endpoints * Access as: posthog.environmentsEndpointsMaterializationStatusRetrieve() */ environmentsEndpointsMaterializationStatusRetrieve: () => Promise<{ name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }>; /** * Ask AI to rewrite the endpoint's query into a semantically equivalent form that can be materialized. Only applicable to SQL (HogQL) endpoints that currently fail the materialization checks. The suggestion is validated against the live checks before being returned; nothing is saved. Requires the organization's AI data processing approval. * Tags: endpoints * Access as: posthog.environmentsEndpointsMaterializationSuggestionCreate() */ environmentsEndpointsMaterializationSuggestionCreate: () => Promise<{ suggestion_status: "ok" | "cannot_fix" | "invalid" | "model_error"; suggested_query: string | null; explanation: string | null; attempts: number; error: string | null; original_reason: string }>; /** * Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients. * Tags: endpoints * Access as: posthog.environmentsEndpointsOpenapiSpecRetrieve() */ environmentsEndpointsOpenapiSpecRetrieve: () => Promise; /** * Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set. * Tags: endpoints * Access as: posthog.environmentsEndpointsRunRetrieve() */ environmentsEndpointsRunRetrieve: () => Promise<{ name: string; execution_id?: string; results?: (unknown)[]; columns?: (string)[]; hasMore?: boolean; endpoint_version?: number }>; /** * Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set. * Tags: endpoints * Access as: posthog.environmentsEndpointsRunCreate() */ environmentsEndpointsRunCreate: () => Promise<{ name: string; execution_id?: string; results?: (unknown)[]; columns?: (string)[]; hasMore?: boolean; endpoint_version?: number }>; /** * List all versions for an endpoint. * Tags: endpoints * Access as: posthog.environmentsEndpointsVersionsList() */ environmentsEndpointsVersionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[]; version: number; version_id: string; endpoint_is_active: boolean; version_created_at: string; version_updated_at: string | null; version_created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null })[] }>; /** * Get the most recent execution time per endpoint (endpoint-level). Timestamps are recorded by the run path for personal-API-key calls. For per-version usage, query the query_log table directly. * Tags: endpoints * Access as: posthog.environmentsEndpointsLastExecutionTimesCreate() */ environmentsEndpointsLastExecutionTimesCreate: () => Promise<{ query_status: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } }>; /** * Get the source code of the live materialization checks, plus the rewrite contract. Lets an agent rewrite a rejected endpoint query itself: fetch these conditions, produce a semantically equivalent query that passes every check, update the endpoint with it, then confirm via materialization_status. The source is read from the running system, so it always matches the checks this instance enforces. * Tags: endpoints * Access as: posthog.environmentsEndpointsMaterializationConditionsRetrieve() */ environmentsEndpointsMaterializationConditionsRetrieve: () => Promise<{ conditions_source: string; rewrite_contract: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingAssignmentRulesList() */ environmentsErrorTrackingAssignmentRulesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingAssignmentRulesCreate() */ environmentsErrorTrackingAssignmentRulesCreate: () => Promise<{ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingAssignmentRulesRetrieve() */ environmentsErrorTrackingAssignmentRulesRetrieve: () => Promise<{ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingAssignmentRulesUpdate() */ environmentsErrorTrackingAssignmentRulesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingAssignmentRulesPartialUpdate() */ environmentsErrorTrackingAssignmentRulesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingAssignmentRulesDestroy() */ environmentsErrorTrackingAssignmentRulesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingAssignmentRulesReorderPartialUpdate() */ environmentsErrorTrackingAssignmentRulesReorderPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingBypassRulesList() */ environmentsErrorTrackingBypassRulesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; filters: unknown; order_key: number; disabled_data: unknown; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingBypassRulesCreate() */ environmentsErrorTrackingBypassRulesCreate: () => Promise<{ id: string; filters: unknown; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingBypassRulesRetrieve() */ environmentsErrorTrackingBypassRulesRetrieve: () => Promise<{ id: string; filters: unknown; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingBypassRulesUpdate() */ environmentsErrorTrackingBypassRulesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingBypassRulesPartialUpdate() */ environmentsErrorTrackingBypassRulesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingBypassRulesDestroy() */ environmentsErrorTrackingBypassRulesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingBypassRulesReorderPartialUpdate() */ environmentsErrorTrackingBypassRulesReorderPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingExternalReferencesList() */ environmentsErrorTrackingExternalReferencesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingExternalReferencesCreate() */ environmentsErrorTrackingExternalReferencesCreate: () => Promise<{ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingExternalReferencesRetrieve() */ environmentsErrorTrackingExternalReferencesRetrieve: () => Promise<{ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingExternalReferencesDestroy() */ environmentsErrorTrackingExternalReferencesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingFingerprintsList() */ environmentsErrorTrackingFingerprintsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; fingerprint: string; issue_id: string; created_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingFingerprintsRetrieve() */ environmentsErrorTrackingFingerprintsRetrieve: () => Promise<{ id: string; fingerprint: string; issue_id: string; created_at: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingFingerprintsDestroy() */ environmentsErrorTrackingFingerprintsDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGitProviderFileLinksResolveGithubRetrieve() */ environmentsErrorTrackingGitProviderFileLinksResolveGithubRetrieve: () => Promise<{ found: boolean; url?: string; error?: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGitProviderFileLinksResolveGitlabRetrieve() */ environmentsErrorTrackingGitProviderFileLinksResolveGitlabRetrieve: () => Promise<{ found: boolean; url?: string; error?: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGroupingRulesList() */ environmentsErrorTrackingGroupingRulesList: () => Promise<{ results: ({ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; description: string | null; issue: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGroupingRulesCreate() */ environmentsErrorTrackingGroupingRulesCreate: () => Promise<{ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; description: string | null; issue: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGroupingRulesRetrieve() */ environmentsErrorTrackingGroupingRulesRetrieve: () => Promise<{ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; description: string | null; issue: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGroupingRulesUpdate() */ environmentsErrorTrackingGroupingRulesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGroupingRulesPartialUpdate() */ environmentsErrorTrackingGroupingRulesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGroupingRulesDestroy() */ environmentsErrorTrackingGroupingRulesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingGroupingRulesReorderPartialUpdate() */ environmentsErrorTrackingGroupingRulesReorderPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesList() */ environmentsErrorTrackingIssuesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: string; name: string | null; description: string | null; first_seen: string | null; assignee: { id: number | string | null; type: string } | null; external_issues: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[]; cohort: { id: number; name: string } | null })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesRetrieve() */ environmentsErrorTrackingIssuesRetrieve: () => Promise<{ id: string; status: string; name: string | null; description: string | null; first_seen: string | null; assignee: { id: number | string | null; type: string } | null; external_issues: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[]; cohort: { id: number; name: string } | null }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesUpdate() */ environmentsErrorTrackingIssuesUpdate: () => Promise<{ id: string; status: string; name: string | null; description: string | null; first_seen: string | null; assignee: { id: number | string | null; type: string } | null; external_issues: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[]; cohort: { id: number; name: string } | null }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesPartialUpdate() */ environmentsErrorTrackingIssuesPartialUpdate: () => Promise<{ id: string; status: string; name: string | null; description: string | null; first_seen: string | null; assignee: { id: number | string | null; type: string } | null; external_issues: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[]; cohort: { id: number; name: string } | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesDestroy() */ environmentsErrorTrackingIssuesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesActivityRetrieve() */ environmentsErrorTrackingIssuesActivityRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesAssignPartialUpdate() */ environmentsErrorTrackingIssuesAssignPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesCohortUpdate() */ environmentsErrorTrackingIssuesCohortUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesMergeCreate() */ environmentsErrorTrackingIssuesMergeCreate: () => Promise<{ success: boolean }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesSplitCreate() */ environmentsErrorTrackingIssuesSplitCreate: () => Promise<{ success: boolean; new_issue_ids: (string)[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesAllActivityRetrieve() */ environmentsErrorTrackingIssuesAllActivityRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesBulkCreate() */ environmentsErrorTrackingIssuesBulkCreate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesExistsRetrieve() */ environmentsErrorTrackingIssuesExistsRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingIssuesValuesRetrieve() */ environmentsErrorTrackingIssuesValuesRetrieve: () => Promise; /** * Get compact error tracking issue details * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingQueryIssueCreate() */ environmentsErrorTrackingQueryIssueCreate: () => Promise<{ id: string; name?: string | null; description?: string | null; status?: string; first_seen?: string | null; last_seen?: string | null; library?: string | null; source?: string | null; assignee?: { id?: string | number | null; type?: string | null } | null; aggregations?: { occurrences?: number; users?: number; sessions?: number; volumeRange?: (number)[]; volume_buckets?: ({ label: string; value?: number | null })[] } | null; function?: string | null; top_in_app_frame?: { function?: string; source?: string; line?: number; column?: number; in_app?: boolean }; latest_release?: { version?: string; project?: string; timestamp?: string; commit_id?: string; branch?: string; repo_name?: string }; impact?: { occurrences?: number; users?: number; sessions?: number }; sparkline?: (number)[] }>; /** * List sampled exception events for an error tracking issue * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingQueryIssueEventsCreate() */ environmentsErrorTrackingQueryIssueEventsCreate: () => Promise<{ results: ({ uuid?: string; distinct_id?: string; timestamp?: string; properties?: { [key: string]: unknown } })[]; hasMore: boolean; limit: number; offset: number; nextOffset?: number }>; /** * List compact error tracking issues * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingQueryIssuesListCreate() */ environmentsErrorTrackingQueryIssuesListCreate: () => Promise<{ results: ({ id: string; name?: string | null; description?: string | null; status?: string; first_seen?: string | null; last_seen?: string | null; library?: string | null; source?: string | null; assignee?: { id?: string | number | null; type?: string | null } | null; aggregations?: { occurrences?: number; users?: number; sessions?: number; volumeRange?: (number)[]; volume_buckets?: ({ label: string; value?: number | null })[] } | null })[]; hasMore: boolean; limit: number; offset: number; nextOffset?: number }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingRecommendationsList() */ environmentsErrorTrackingRecommendationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; type: string; meta: unknown; completed: boolean; status: string; computed_at: string | null; dismissed_at: string | null; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingRecommendationsDismissCreate() */ environmentsErrorTrackingRecommendationsDismissCreate: () => Promise<{ id: string; type: string; meta: unknown; completed: boolean; status: string; computed_at: string | null; dismissed_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingRecommendationsRefreshCreate() */ environmentsErrorTrackingRecommendationsRefreshCreate: () => Promise<{ id: string; type: string; meta: unknown; completed: boolean; status: string; computed_at: string | null; dismissed_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingRecommendationsRestoreCreate() */ environmentsErrorTrackingRecommendationsRestoreCreate: () => Promise<{ id: string; type: string; meta: unknown; completed: boolean; status: string; computed_at: string | null; dismissed_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingReleasesList() */ environmentsErrorTrackingReleasesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingReleasesCreate() */ environmentsErrorTrackingReleasesCreate: () => Promise<{ id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingReleasesRetrieve() */ environmentsErrorTrackingReleasesRetrieve: () => Promise<{ id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingReleasesUpdate() */ environmentsErrorTrackingReleasesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingReleasesPartialUpdate() */ environmentsErrorTrackingReleasesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingReleasesDestroy() */ environmentsErrorTrackingReleasesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingReleasesHashRetrieve() */ environmentsErrorTrackingReleasesHashRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSettingsRetrieveSettingsRetrieve() */ environmentsErrorTrackingSettingsRetrieveSettingsRetrieve: () => Promise<{ project_rate_limit_value?: number | null; project_rate_limit_bucket_size_minutes?: number | null; per_issue_rate_limit_value?: number | null; per_issue_rate_limit_bucket_size_minutes?: number | null }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSettingsUpdateSettingsPartialUpdate() */ environmentsErrorTrackingSettingsUpdateSettingsPartialUpdate: () => Promise<{ project_rate_limit_value?: number | null; project_rate_limit_bucket_size_minutes?: number | null; per_issue_rate_limit_value?: number | null; per_issue_rate_limit_bucket_size_minutes?: number | null }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSpikeDetectionConfigList() */ environmentsErrorTrackingSpikeDetectionConfigList: () => Promise<({ snooze_duration_minutes: number; multiplier: number; threshold: number })[]>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSpikeDetectionConfigUpdateConfigPartialUpdate() */ environmentsErrorTrackingSpikeDetectionConfigUpdateConfigPartialUpdate: () => Promise<{ snooze_duration_minutes: number; multiplier: number; threshold: number }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSpikeEventsList() */ environmentsErrorTrackingSpikeEventsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; issue: { id: string; name: string | null; description: string | null }; detected_at: string; computed_baseline: number; current_bucket_value: number })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingStackFramesList() */ environmentsErrorTrackingStackFramesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; raw_id: string; created_at: string; contents: { [key: string]: unknown }; resolved: boolean; context: { [key: string]: unknown } | null; symbol_set_ref: string | null; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingStackFramesRetrieve() */ environmentsErrorTrackingStackFramesRetrieve: () => Promise<{ id: string; raw_id: string; created_at: string; contents: { [key: string]: unknown }; resolved: boolean; context: { [key: string]: unknown } | null; symbol_set_ref: string | null; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingStackFramesDestroy() */ environmentsErrorTrackingStackFramesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingStackFramesBatchGetCreate() */ environmentsErrorTrackingStackFramesBatchGetCreate: () => Promise<{ results: ({ id: string; raw_id: string; created_at: string; contents: { [key: string]: unknown }; resolved: boolean; context: { [key: string]: unknown } | null; symbol_set_ref: string | null; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSuppressionRulesList() */ environmentsErrorTrackingSuppressionRulesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; filters: unknown; order_key: number; disabled_data: unknown; sampling_rate: number; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSuppressionRulesCreate() */ environmentsErrorTrackingSuppressionRulesCreate: () => Promise<{ id: string; filters: unknown; order_key: number; disabled_data: unknown; sampling_rate: number; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSuppressionRulesRetrieve() */ environmentsErrorTrackingSuppressionRulesRetrieve: () => Promise<{ id: string; filters: unknown; order_key: number; disabled_data: unknown; sampling_rate: number; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSuppressionRulesUpdate() */ environmentsErrorTrackingSuppressionRulesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSuppressionRulesPartialUpdate() */ environmentsErrorTrackingSuppressionRulesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSuppressionRulesDestroy() */ environmentsErrorTrackingSuppressionRulesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSuppressionRulesReorderPartialUpdate() */ environmentsErrorTrackingSuppressionRulesReorderPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSymbolSetsList() */ environmentsErrorTrackingSymbolSetsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; ref: string; team_id: number; created_at: string; last_used: string | null; failure_reason: string | null; has_uploaded_file: boolean; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null })[] }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSymbolSetsRetrieve() */ environmentsErrorTrackingSymbolSetsRetrieve: () => Promise<{ id: string; ref: string; team_id: number; created_at: string; last_used: string | null; failure_reason: string | null; has_uploaded_file: boolean; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSymbolSetsDestroy() */ environmentsErrorTrackingSymbolSetsDestroy: () => Promise; /** * Return a presigned URL for downloading the symbol set's source map. * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSymbolSetsDownloadRetrieve() */ environmentsErrorTrackingSymbolSetsDownloadRetrieve: () => Promise<{ url: string }>; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSymbolSetsFinishUploadUpdate() */ environmentsErrorTrackingSymbolSetsFinishUploadUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSymbolSetsBulkDeleteCreate() */ environmentsErrorTrackingSymbolSetsBulkDeleteCreate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSymbolSetsBulkFinishUploadCreate() */ environmentsErrorTrackingSymbolSetsBulkFinishUploadCreate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.environmentsErrorTrackingSymbolSetsBulkStartUploadCreate() */ environmentsErrorTrackingSymbolSetsBulkStartUploadCreate: () => Promise; /** * Create a new evaluation run. This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation. * Tags: evaluation_runs * Access as: posthog.environmentsEvaluationRunsCreate() */ environmentsEvaluationRunsCreate: () => Promise<{ [key: string]: unknown }>; /** * * Tags: evaluations * Access as: posthog.environmentsEvaluationsList() */ environmentsEvaluationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean })[] }>; /** * * Tags: evaluations * Access as: posthog.environmentsEvaluationsCreate() */ environmentsEvaluationsCreate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: evaluations * Access as: posthog.environmentsEvaluationsRetrieve() */ environmentsEvaluationsRetrieve: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: evaluations * Access as: posthog.environmentsEvaluationsUpdate() */ environmentsEvaluationsUpdate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: evaluations * Access as: posthog.environmentsEvaluationsPartialUpdate() */ environmentsEvaluationsPartialUpdate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: evaluations * Access as: posthog.environmentsEvaluationsDestroy() */ environmentsEvaluationsDestroy: () => Promise; /** * Test Hog evaluation code against sample events without saving. * Tags: evaluations * Access as: posthog.environmentsEvaluationsTestHogCreate() */ environmentsEvaluationsTestHogCreate: () => Promise<{ results: ({ event_uuid: string; trace_id?: string | null; input_preview: string; output_preview: string; result: boolean | null; reasoning: string | null; error: string | null })[]; message?: string }>; /** * Returns the event filter config for the team, or null if not yet created. * Tags: event_filter * Access as: posthog.environmentsEventFilterRetrieve() */ environmentsEventFilterRetrieve: () => Promise<{ id: string; mode?: "disabled" | "dry_run" | "live"; filter_tree?: unknown; test_cases?: unknown; created_at: string; updated_at: string }>; /** * Create or update the event filter config. * Tags: event_filter * Access as: posthog.environmentsEventFilterCreate() */ environmentsEventFilterCreate: () => Promise<{ id: string; mode?: "disabled" | "dry_run" | "live"; filter_tree?: unknown; test_cases?: unknown; created_at: string; updated_at: string }>; /** * Single event filter per team. GET /event_filter/ — returns the config (or null if not yet created) POST /event_filter/ — creates or updates the config (upsert) GET /event_filter/metrics/ — time-series metrics GET /event_filter/metrics/totals/ — aggregate totals * Tags: event_filter * Access as: posthog.environmentsEventFilterMetricsRetrieve() */ environmentsEventFilterMetricsRetrieve: () => Promise<{ labels: (string)[]; series: ({ name: string; values: (number)[] })[] }>; /** * Single event filter per team. GET /event_filter/ — returns the config (or null if not yet created) POST /event_filter/ — creates or updates the config (upsert) GET /event_filter/metrics/ — time-series metrics GET /event_filter/metrics/totals/ — aggregate totals * Tags: event_filter * Access as: posthog.environmentsEventFilterMetricsTotalsRetrieve() */ environmentsEventFilterMetricsTotalsRetrieve: () => Promise<{ totals: { [key: string]: number | undefined } }>; /** * This endpoint allows you to list and filter events. It is effectively deprecated and is kept only for backwards compatibility. If you ever ask about it you will be advised to not use it... If you want to ad-hoc list or aggregate events, use the Query endpoint instead. If you want to export all events or many pages of events you should use our CDP/Batch Exports products instead. * Tags: events * Access as: posthog.environmentsEventsList() */ environmentsEventsList: () => Promise<{ next?: string | null; results?: ({ id: string; distinct_id: string; properties: { [key: string]: unknown }; event: string; timestamp: string; person: { [key: string]: unknown } | null; elements: ({ event: string; text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null })[]; elements_chain: string })[] }>; /** * * Tags: events * Access as: posthog.environmentsEventsRetrieve() */ environmentsEventsRetrieve: () => Promise<{ [key: string]: unknown }>; /** * * Tags: events * Access as: posthog.environmentsEventsValuesRetrieve() */ environmentsEventsValuesRetrieve: () => Promise; /** * * Tags: exports * Access as: posthog.environmentsExportsList() */ environmentsExportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; dashboard?: number | null; insight?: number | null; export_format: "image/png" | "application/pdf" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "video/webm" | "video/mp4" | "image/gif" | "application/json"; created_at: string; has_content: boolean; export_context?: unknown; filename: string; expires_after: string | null; exception: string | null; user_access_level: string | null })[] }>; /** * * Tags: exports * Access as: posthog.environmentsExportsCreate() */ environmentsExportsCreate: () => Promise<{ id: number; dashboard?: number | null; insight?: number | null; export_format: "image/png" | "application/pdf" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "video/webm" | "video/mp4" | "image/gif" | "application/json"; created_at: string; has_content: boolean; export_context?: unknown; filename: string; expires_after: string | null; exception: string | null; user_access_level: string | null }>; /** * * Tags: exports * Access as: posthog.environmentsExportsRetrieve() */ environmentsExportsRetrieve: () => Promise<{ id: number; dashboard?: number | null; insight?: number | null; export_format: "image/png" | "application/pdf" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "video/webm" | "video/mp4" | "image/gif" | "application/json"; created_at: string; has_content: boolean; export_context?: unknown; filename: string; expires_after: string | null; exception: string | null; user_access_level: string | null }>; /** * * Tags: exports * Access as: posthog.environmentsExportsContentRetrieve() */ environmentsExportsContentRetrieve: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasList() */ environmentsExternalDataSchemasList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null })[] }>; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasCreate() */ environmentsExternalDataSchemasCreate: () => Promise<{ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null }>; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasRetrieve() */ environmentsExternalDataSchemasRetrieve: () => Promise<{ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null }>; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasUpdate() */ environmentsExternalDataSchemasUpdate: () => Promise<{ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null }>; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasPartialUpdate() */ environmentsExternalDataSchemasPartialUpdate: () => Promise<{ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null }>; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasDestroy() */ environmentsExternalDataSchemasDestroy: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasCancelCreate() */ environmentsExternalDataSchemasCancelCreate: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasDeleteDataDestroy() */ environmentsExternalDataSchemasDeleteDataDestroy: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasIncrementalFieldsCreate() */ environmentsExternalDataSchemasIncrementalFieldsCreate: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasLogsRetrieve() */ environmentsExternalDataSchemasLogsRetrieve: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasReloadCreate() */ environmentsExternalDataSchemasReloadCreate: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.environmentsExternalDataSchemasResyncCreate() */ environmentsExternalDataSchemasResyncCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesList() */ environmentsExternalDataSourcesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean })[] }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesCreate() */ environmentsExternalDataSourcesCreate: () => Promise<{ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesRetrieve() */ environmentsExternalDataSourcesRetrieve: () => Promise<{ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesUpdate() */ environmentsExternalDataSourcesUpdate: () => Promise<{ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesPartialUpdate() */ environmentsExternalDataSourcesPartialUpdate: () => Promise<{ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesDestroy() */ environmentsExternalDataSourcesDestroy: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesBulkUpdateSchemasPartialUpdate() */ environmentsExternalDataSourcesBulkUpdateSchemasPartialUpdate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null })[] }>; /** * Live CDC health for an existing source: slot/publication existence and WAL lag. Reads from the source DB via the engine adapter. Returns ``{"enabled": false}`` when CDC is off, or the stored config plus live ``slot_exists`` / ``publication_exists`` / ``lag_bytes`` when on. 400s if the source DB is unreachable so the UI can show a degraded/unreachable state. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesCdcStatusRetrieve() */ environmentsExternalDataSourcesCdcStatusRetrieve: () => Promise; /** * Validate CDC prerequisites for an existing source using its stored credentials. The detail=False ``check_cdc_prerequisites`` action is for the creation wizard, where the client still holds the raw connection config (incl. password) in the form. On the Configuration page the source already exists and secret fields are stripped from API responses — so the client can't supply them. This reads the stored (encrypted) credentials from the DB via the adapter instead. Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``), ``cdc_slot_name`` (optional), ``cdc_publication_name`` (optional). * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesCheckCdcPrerequisitesForSourceCreate() */ environmentsExternalDataSourcesCheckCdcPrerequisitesForSourceCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesCreateWebhookCreate() */ environmentsExternalDataSourcesCreateWebhookCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesDeleteWebhookCreate() */ environmentsExternalDataSourcesDeleteWebhookCreate: () => Promise; /** * Disable CDC on an existing source. Cancels any running CDC extraction workflow, deletes the extraction schedule, delegates engine-side teardown to the source's adapter (drops slot/publication for Postgres; equivalent for other engines), clears ``cdc_*`` keys from ``job_inputs``, soft-deletes companion CDC tables, and sets all CDC schemas to ``sync_type=None``, ``should_sync=False`` so the user must pick a new sync strategy before they resume. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesDisableCdcCreate() */ environmentsExternalDataSourcesDisableCdcCreate: () => Promise; /** * Enable CDC on an existing source. Provisions engine-side CDC resources via the source's adapter, writes the CDC config into ``source.job_inputs``, and ensures the CDC extraction schedule exists. Re-runs prereq checks server-side so we never trust a stale client-side check. Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``), plus engine-specific identifier hints (e.g. ``cdc_slot_name``, ``cdc_publication_name`` for Postgres). Universal tuning fields: ``cdc_auto_drop_slot`` (optional bool), ``cdc_lag_warning_threshold_mb`` (optional int), ``cdc_lag_critical_threshold_mb`` (optional int). * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesEnableCdcCreate() */ environmentsExternalDataSourcesEnableCdcCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesJobsRetrieve() */ environmentsExternalDataSourcesJobsRetrieve: () => Promise; /** * Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync). * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesRefreshSchemasCreate() */ environmentsExternalDataSourcesRefreshSchemasCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesReloadCreate() */ environmentsExternalDataSourcesReloadCreate: () => Promise; /** * Repair CDC on a source whose replication resources were lost. Only proceeds on evidence of breakage (a persisted broken marker, or a live probe showing the slot/publication missing) — repairing a healthy source would drop its slot and force a full re-sync. Cancels running CDC jobs, recreates the engine-side slot/publication against the stored CDC config, resets every active CDC schema to snapshot mode for a full re-sync (changes since the old slot died are unrecoverable), clears the broken markers, and resumes the paused schedules. Idempotent: safe to retry after a partial failure. Concurrent repairs of the same source are rejected with a 409. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesRepairCdcCreate() */ environmentsExternalDataSourcesRepairCdcCreate: () => Promise<{ success?: boolean; schemas_reset?: number }>; /** * Update the revenue analytics configuration and return the full external data source. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesRevenueAnalyticsConfigPartialUpdate() */ environmentsExternalDataSourcesRevenueAnalyticsConfigPartialUpdate: () => Promise; /** * Update CDC tuning fields without enabling/disabling. Lets users edit ``cdc_auto_drop_slot``, ``cdc_lag_warning_threshold_mb``, and ``cdc_lag_critical_threshold_mb`` independently. These fields are universal across engines. Engine-specific identifiers (slot name, management mode, …) are immutable post-enable — switching them requires disable + enable. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesUpdateCdcSettingsCreate() */ environmentsExternalDataSourcesUpdateCdcSettingsCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesUpdateWebhookInputsCreate() */ environmentsExternalDataSourcesUpdateWebhookInputsCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesWebhookInfoRetrieve() */ environmentsExternalDataSourcesWebhookInfoRetrieve: () => Promise; /** * Validate CDC prerequisites against a live Postgres connection. Used by the source wizard to surface ✅/❌ checks before source creation, and by the self-managed setup popup to verify user-created publications. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesCheckCdcPrerequisitesCreate() */ environmentsExternalDataSourcesCheckCdcPrerequisitesCreate: () => Promise<{ valid?: boolean; errors?: (string)[] }>; /** * Return a secure browser link for connecting a data warehouse source. The link opens a minimal connect page rendering the source's full connection form — OAuth options included — with no table selection and no source creation. The user authenticates in their browser, secrets never pass through the agent, and the agent finishes setup afterwards by passing the stored credential id to data-warehouse-source-setup. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesConnectLinkRetrieve() */ environmentsExternalDataSourcesConnectLinkRetrieve: () => Promise<{ source_type: string; auth_method: "oauth" | "credentials"; connect_url: string; instructions: string }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesConnectionsList() */ environmentsExternalDataSourcesConnectionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; prefix: string | null; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null })[] }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesDatabaseSchemaCreate() */ environmentsExternalDataSourcesDatabaseSchemaCreate: () => Promise; /** * Draft a Custom REST source manifest from API documentation using an LLM. Reads the docs (a URL fetched server-side, or pasted text / OpenAPI spec), asks the model to author a RESTAPIConfig manifest, and validates it against the create-path checks — repairing against validation errors up to a small budget. Returns the manifest for the user to review and tweak in the builder before creating the source; it does NOT create anything. Gated by the `dwh-custom-source-ai-builder` flag, and requires the org to have approved AI data processing, since the docs are sent to the LLM gateway. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesDraftCustomManifestCreate() */ environmentsExternalDataSourcesDraftCustomManifestCreate: () => Promise<{ draft_status: "ok" | "invalid" | "model_error"; manifest_json: string | null; resource_names: (string)[]; attempts: number; error: string | null }>; /** * List the accounts/properties a connected OAuth integration exposes, in the shared IntegrationAccount shape. The logic lives in each source (via OAuthMixin.get_oauth_accounts); this endpoint just routes by source type and serializes the result. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesOauthAccountsRetrieve() */ environmentsExternalDataSourcesOauthAccountsRetrieve: () => Promise<{ accounts: ({ value: string; display_name: string; is_primary: boolean; badges: (string)[]; group: string | null; secondary_text: string | null })[] }>; /** * Read a bounded sample of rows for one resource of a Custom REST source. Lets a manifest author verify `data_selector`, `primary_key`, and the incremental `cursor_path` against live data before creating the source. Only `source_type: "Custom"` is supported — other source types return 400. The read is bounded (single page per resource, capped row count, short timeouts, no redirects). Manifest, validation, and SSRF problems return 400; a live fetch failure returns 200 with `error` set and empty `rows`. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesPreviewResourceCreate() */ environmentsExternalDataSourcesPreviewResourceCreate: () => Promise<{ rows: ({ [key: string]: unknown })[]; row_count: number; columns: ({ name: string; type: string })[]; error: string | null }>; /** * One-shot data warehouse source setup. Validate credentials, discover available tables, enable them all with sensible sync defaults (incremental where supported, else append, else full refresh), and create the source in a single call — the caller never has to assemble a `schemas` array. For sources that support webhooks (e.g. Stripe), a webhook is auto-registered after creation: on success webhook-capable tables switch to real-time webhook sync (unlocking webhook-only tables); on failure the polling defaults stay in place. For fine-grained table/sync control, use the lower-level `database_schema` + `create` flow instead. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesSetupCreate() */ environmentsExternalDataSourcesSetupCreate: () => Promise<{ id: string; webhook?: { success: boolean; webhook_url: string | null; error: string | null; pending_inputs: (string)[] } }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesSourcePrefixCreate() */ environmentsExternalDataSourcesSourcePrefixCreate: () => Promise; /** * Validate and store credentials for a data warehouse source without creating the source. Backs the source connect page: the user enters credentials directly in PostHog, they are checked against a live connection, then stashed encrypted in a temporary store. The returned credential id can be passed to `setup` as {'credential_id': } to create the source — so secrets never travel through an agent conversation. The stash is single-use: it is deleted as soon as `setup` consumes it, and expires after 24 hours if never consumed. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesStoreCredentialsCreate() */ environmentsExternalDataSourcesStoreCredentialsCreate: () => Promise<{ credential_id: string; source_type: string; created_at: string; expires_at: string }>; /** * List credentials stored via the source connect page that haven't been consumed yet. Returns metadata only (id, source type, timestamps) — never the secrets themselves. Stored credentials are temporary: they disappear once consumed by `setup` or when they expire. Newest first, so after a user confirms they've finished the connect page, the first entry for the source type is the one to pass to `setup`. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesStoredCredentialsList() */ environmentsExternalDataSourcesStoredCredentialsList: () => Promise<({ credential_id: string; source_type: string; created_at: string; expires_at: string })[]>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.environmentsExternalDataSourcesWizardRetrieve() */ environmentsExternalDataSourcesWizardRetrieve: () => Promise; /** * * Tags: batch_exports, file_download_batch_exports * Access as: posthog.environmentsFileDownloadBatchExportsList() */ environmentsFileDownloadBatchExportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting" })[] }>; /** * Create and start a batch export on demand run to download a file. * Tags: batch_exports, file_download_batch_exports * Access as: posthog.environmentsFileDownloadBatchExportsCreate() */ environmentsFileDownloadBatchExportsCreate: () => Promise; /** * Get a batch export on demand run. If the underlying batch export run has completed, we return keys to the generated file downloads so that users may download them by making a request to /download. * Tags: batch_exports, file_download_batch_exports * Access as: posthog.environmentsFileDownloadBatchExportsRetrieve() */ environmentsFileDownloadBatchExportsRetrieve: () => Promise<{ [key: string]: unknown }>; /** * Cancel an ongoing file-download batch export. * Tags: batch_exports, file_download_batch_exports * Access as: posthog.environmentsFileDownloadBatchExportsCancelCreate() */ environmentsFileDownloadBatchExportsCancelCreate: () => Promise; /** * Download a file (or a part) from this batch export run. Users can provide a part component with an id or index, or no part component at all: * If part id is included: The file download matching the id is downloaded. * If part index is included: The file download matching the index (as ordered by key) is downloaded. * If no part component is present: If there is only one file downloaded, that is downloaded. Otherwise the first one as sorted by key is downloaded. * Tags: batch_exports, file_download_batch_exports * Access as: posthog.environmentsFileDownloadBatchExportsDownloadRetrieve() */ environmentsFileDownloadBatchExportsDownloadRetrieve: () => Promise; /** * * Tags: batch_exports, file_download_batch_exports * Access as: posthog.environmentsFileDownloadBatchExportsLogsRetrieve() */ environmentsFileDownloadBatchExportsLogsRetrieve: () => Promise; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemList() */ environmentsFileSystemList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null })[] }>; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemCreate() */ environmentsFileSystemCreate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemRetrieve() */ environmentsFileSystemRetrieve: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemUpdate() */ environmentsFileSystemUpdate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemPartialUpdate() */ environmentsFileSystemPartialUpdate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemDestroy() */ environmentsFileSystemDestroy: () => Promise; /** * Get count of all files in a folder. * Tags: file_system * Access as: posthog.environmentsFileSystemCountCreate() */ environmentsFileSystemCountCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemLinkCreate() */ environmentsFileSystemLinkCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemMoveCreate() */ environmentsFileSystemMoveCreate: () => Promise; /** * Get count of all files in a folder. * Tags: file_system * Access as: posthog.environmentsFileSystemCountByPathCreate() */ environmentsFileSystemCountByPathCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemLogViewRetrieve() */ environmentsFileSystemLogViewRetrieve: () => Promise; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemLogViewCreate() */ environmentsFileSystemLogViewCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemUndoDeleteCreate() */ environmentsFileSystemUndoDeleteCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.environmentsFileSystemUnfiledRetrieve() */ environmentsFileSystemUnfiledRetrieve: () => Promise; /** * * Tags: file_system_shortcut * Access as: posthog.environmentsFileSystemShortcutList() */ environmentsFileSystemShortcutList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null })[] }>; /** * * Tags: file_system_shortcut * Access as: posthog.environmentsFileSystemShortcutCreate() */ environmentsFileSystemShortcutCreate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * * Tags: file_system_shortcut * Access as: posthog.environmentsFileSystemShortcutRetrieve() */ environmentsFileSystemShortcutRetrieve: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * * Tags: file_system_shortcut * Access as: posthog.environmentsFileSystemShortcutUpdate() */ environmentsFileSystemShortcutUpdate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * * Tags: file_system_shortcut * Access as: posthog.environmentsFileSystemShortcutPartialUpdate() */ environmentsFileSystemShortcutPartialUpdate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * * Tags: file_system_shortcut * Access as: posthog.environmentsFileSystemShortcutDestroy() */ environmentsFileSystemShortcutDestroy: () => Promise; /** * Set the display order of the current user's shortcuts. `ordered_ids` becomes the new top-to-bottom order; any unknown IDs are rejected. * Tags: file_system_shortcut * Access as: posthog.environmentsFileSystemShortcutReorderCreate() */ environmentsFileSystemShortcutReorderCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null })[] }>; /** * List all groups of a specific group type. You must pass ?group_type_index= in the URL. To get a list of valid group types, call /api/:project_id/groups_types/. Uses forward-only keyset pagination via the `cursor` parameter. The `previous` field in the response envelope is always null. * Tags: groups * Access as: posthog.environmentsGroupsList() */ environmentsGroupsList: () => Promise<({ group_type_index: number; group_key: string; group_properties?: unknown; created_at: string })[]>; /** * * Tags: groups * Access as: posthog.environmentsGroupsCreate() */ environmentsGroupsCreate: () => Promise<{ group_type_index: number; group_key: string; group_properties?: unknown; created_at: string }>; /** * * Tags: groups * Access as: posthog.environmentsGroupsActivityRetrieve() */ environmentsGroupsActivityRetrieve: () => Promise; /** * * Tags: groups * Access as: posthog.environmentsGroupsDeletePropertyCreate() */ environmentsGroupsDeletePropertyCreate: () => Promise; /** * * Tags: groups * Access as: posthog.environmentsGroupsFindRetrieve() */ environmentsGroupsFindRetrieve: () => Promise; /** * * Tags: groups * Access as: posthog.environmentsGroupsPropertyValuesRetrieve() */ environmentsGroupsPropertyValuesRetrieve: () => Promise; /** * * Tags: groups * Access as: posthog.environmentsGroupsRelatedRetrieve() */ environmentsGroupsRelatedRetrieve: () => Promise; /** * * Tags: groups * Access as: posthog.environmentsGroupsUpdatePropertyCreate() */ environmentsGroupsUpdatePropertyCreate: () => Promise; /** * List health issues * Tags: health_issues * Access as: posthog.environmentsHealthIssuesList() */ environmentsHealthIssuesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; kind: string; severity: "critical" | "warning" | "info"; status: "active" | "resolved"; dismissed?: boolean; payload: { [key: string]: unknown }; created_at: string; updated_at: string; resolved_at: string | null })[] }>; /** * Get a health issue * Tags: health_issues * Access as: posthog.environmentsHealthIssuesRetrieve() */ environmentsHealthIssuesRetrieve: () => Promise<{ id: string; kind: string; severity: "critical" | "warning" | "info"; status: "active" | "resolved"; dismissed?: boolean; payload: { [key: string]: unknown }; created_at: string; updated_at: string; resolved_at: string | null; title: string; summary: string; link: string; remediation: { human: string; agent: string } | null }>; /** * * Tags: health_issues * Access as: posthog.environmentsHealthIssuesPartialUpdate() */ environmentsHealthIssuesPartialUpdate: () => Promise<{ id: string; kind: string; severity: "critical" | "warning" | "info"; status: "active" | "resolved"; dismissed?: boolean; payload: { [key: string]: unknown }; created_at: string; updated_at: string; resolved_at: string | null }>; /** * * Tags: health_issues * Access as: posthog.environmentsHealthIssuesResolveCreate() */ environmentsHealthIssuesResolveCreate: () => Promise<{ id: string; kind: string; severity: "critical" | "warning" | "info"; status: "active" | "resolved"; dismissed?: boolean; payload: { [key: string]: unknown }; created_at: string; updated_at: string; resolved_at: string | null }>; /** * * Tags: health_issues * Access as: posthog.environmentsHealthIssuesRefreshCreate() */ environmentsHealthIssuesRefreshCreate: () => Promise; /** * Summarize active health issues * Tags: health_issues * Access as: posthog.environmentsHealthIssuesSummaryRetrieve() */ environmentsHealthIssuesSummaryRetrieve: () => Promise<{ total: number; by_severity: { [key: string]: number | undefined }; by_kind: { [key: string]: number | undefined } }>; /** * Fetch the rendered screenshot image (JPEG bytes) for a saved heatmap at a given viewport width. Returns 202 with the saved-heatmap metadata while the screenshot is still being generated. * Tags: heatmap_screenshots * Access as: posthog.environmentsHeatmapScreenshotsContentRetrieve() */ environmentsHeatmapScreenshotsContentRetrieve: () => Promise; /** * Aggregated heatmap interactions for a page. For type 'click'/'rageclick'/'mousemove' each result is a point with relative x, absolute client-y, and a count. For type 'scrolldepth' the response is scroll-depth buckets instead (cumulative reach down the page). * Tags: heatmaps * Access as: posthog.environmentsHeatmapsList() */ environmentsHeatmapsList: () => Promise<({ results: ({ count: number; pointer_y: number; pointer_relative_x: number; pointer_target_fixed: boolean })[]; fold?: { total_count: number; below_fold_count: number; pct_below_fold: number; median_viewport_height: number | null } | null; has_more?: boolean })[]>; /** * Drill into the individual session interactions behind one or more heatmap coordinates. Pass the 'points' you want to inspect (from the heatmaps list response) to get the underlying per-session events, so you can jump to the session recordings that produced a hotspot. * Tags: heatmaps * Access as: posthog.environmentsHeatmapsEventsRetrieve() */ environmentsHeatmapsEventsRetrieve: () => Promise<{ results: ({ session_id?: string | null; distinct_id: string; timestamp: string; pointer_relative_x: number; pointer_y: number; current_url: string; type: string })[]; total_count: number; has_more: boolean }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsList() */ environmentsHogFlowsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string | null; description: string; version: number; status: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking: unknown; conversion: unknown; exit_condition: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges: unknown; actions: unknown; abort_action: string | null; variables: unknown; billable_action_types: unknown; user_access_level: string | null })[] }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsCreate() */ environmentsHogFlowsCreate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsRetrieve() */ environmentsHogFlowsRetrieve: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsUpdate() */ environmentsHogFlowsUpdate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsPartialUpdate() */ environmentsHogFlowsPartialUpdate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsDestroy() */ environmentsHogFlowsDestroy: () => Promise; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsAssetsRetrieve() */ environmentsHogFlowsAssetsRetrieve: () => Promise<({ invocation_id: string; action_id: string; function_id: string; function_name: string; parent_run_id: string; kind: string; distinct_id: string; person_id: string; recipient: string; subject: string; status: string; sent_at: string })[]>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsAssetContentRetrieve() */ environmentsHogFlowsAssetContentRetrieve: () => Promise; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsBatchJobsList() */ environmentsHogFlowsBatchJobsList: () => Promise<({ id: string; status?: "waiting" | "queued" | "active" | "completed" | "cancelled" | "failed"; hog_flow: string; filters?: unknown; variables?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string })[]>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsBatchJobsCreate() */ environmentsHogFlowsBatchJobsCreate: () => Promise<{ id: string; status?: "waiting" | "queued" | "active" | "completed" | "cancelled" | "failed"; hog_flow: string; filters?: unknown; variables?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsGraphPartialUpdate() */ environmentsHogFlowsGraphPartialUpdate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsInvocationResultsRetrieve() */ environmentsHogFlowsInvocationResultsRetrieve: () => Promise<({ invocation_id: string; status: string; error_kind: string; error_message: string; distinct_id: string; person_id: string; scheduled_at: string; started_at: string | null; finished_at: string | null; duration_ms: number | null; attempts: number; is_retry: boolean })[]>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsInvocationResultRetrieve() */ environmentsHogFlowsInvocationResultRetrieve: () => Promise<{ invocation_globals: { [key: string]: unknown }; invocation_id: string; status: string; error_kind: string; error_message: string; distinct_id: string; person_id: string; scheduled_at: string; started_at: string | null; finished_at: string | null; duration_ms: number | null; attempts: number; is_retry: boolean }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsInvocationsCreate() */ environmentsHogFlowsInvocationsCreate: () => Promise; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsLogsRetrieve() */ environmentsHogFlowsLogsRetrieve: () => Promise; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsMetricsRetrieve() */ environmentsHogFlowsMetricsRetrieve: () => Promise<{ labels: (string)[]; series: ({ name: string; values: (number)[] })[] }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsMetricsTotalsRetrieve() */ environmentsHogFlowsMetricsTotalsRetrieve: () => Promise<{ totals: { [key: string]: number | undefined } }>; /** * Rerun past invocations of this hog flow from their stored payloads. Same shape and semantics as the hog function rerun endpoint — proxies through to the CDP worker, which reads matching rows from ClickHouse, rehydrates from `invocation_globals`, and re-enqueues onto cyclotron with `is_retry=1`. Because rerun replays historical event/person/group data, it requires `person:read` and `group:read` on top of `hog_flow:write`. * Tags: hog_flows * Access as: posthog.environmentsHogFlowsRerunCreate() */ environmentsHogFlowsRerunCreate: () => Promise<{ rerun_job_id: string; queued_count: number; skipped_count: number }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsSchedulesList() */ environmentsHogFlowsSchedulesList: () => Promise<({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsSchedulesCreate() */ environmentsHogFlowsSchedulesCreate: () => Promise<{ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsSchedulesPartialUpdate() */ environmentsHogFlowsSchedulesPartialUpdate: () => Promise<{ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsSchedulesDestroy() */ environmentsHogFlowsSchedulesDestroy: () => Promise; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsBulkDeleteCreate() */ environmentsHogFlowsBulkDeleteCreate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsMetricsGlobalRetrieve() */ environmentsHogFlowsMetricsGlobalRetrieve: () => Promise<({ workflow_id: string; succeeded: number; failed: number })[]>; /** * * Tags: hog_flows * Access as: posthog.environmentsHogFlowsUserBlastRadiusCreate() */ environmentsHogFlowsUserBlastRadiusCreate: () => Promise<{ affected: number; total: number; limit: number; dedupe_key: "email" | null }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsList() */ environmentsHogFunctionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; type: string | null; name: string | null; description: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled: boolean; hog: string; filters: unknown; icon_url: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order: number | null; search_match_type: "exact" | "similar" | null })[] }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsCreate() */ environmentsHogFunctionsCreate: () => Promise<{ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsRetrieve() */ environmentsHogFunctionsRetrieve: () => Promise<{ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsUpdate() */ environmentsHogFunctionsUpdate: () => Promise<{ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsPartialUpdate() */ environmentsHogFunctionsPartialUpdate: () => Promise<{ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsDestroy() */ environmentsHogFunctionsDestroy: () => Promise; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsEnableBackfillsCreate() */ environmentsHogFunctionsEnableBackfillsCreate: () => Promise; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsInvocationsCreate() */ environmentsHogFunctionsInvocationsCreate: () => Promise<{ configuration: { id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }; globals?: { [key: string]: unknown }; clickhouse_event?: { [key: string]: unknown }; mock_async_functions?: boolean; status: string; logs: (unknown)[]; invocation_id?: string | null }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsLogsRetrieve() */ environmentsHogFunctionsLogsRetrieve: () => Promise; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsMetricsRetrieve() */ environmentsHogFunctionsMetricsRetrieve: () => Promise<{ labels: (string)[]; series: ({ name: string; values: (number)[] })[] }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsMetricsTotalsRetrieve() */ environmentsHogFunctionsMetricsTotalsRetrieve: () => Promise<{ totals: { [key: string]: number | undefined } }>; /** * Rerun past invocations of this hog function from their stored payloads. The CDP worker reads matching rows from the `hog_invocation_results` ClickHouse table, rehydrates the invocation from the stored `invocation_globals`, and re-enqueues onto cyclotron. Each rerun run reuses the original `invocation_id` with `is_retry=1` set on the new lifecycle row so the UI can surface that it was a rerun. For source-webhook functions the worker strips `request.headers` from the rehydrated globals before re-enqueuing (see the rerun paginator): those headers carry the inbound sender's credentials, and replaying them through a reconfigured function would let a write-access user exfiltrate stored secrets. Because rerun replays historical event/person/group data, it requires `person:read` and `group:read` on top of `hog_function:write`. * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsRerunCreate() */ environmentsHogFunctionsRerunCreate: () => Promise<{ rerun_job_id: string; queued_count: number; skipped_count: number }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsIconRetrieve() */ environmentsHogFunctionsIconRetrieve: () => Promise; /** * * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsIconsRetrieve() */ environmentsHogFunctionsIconsRetrieve: () => Promise; /** * Update the execution order of multiple HogFunctions. * Tags: hog_functions, hog_functions * Access as: posthog.environmentsHogFunctionsRearrangePartialUpdate() */ environmentsHogFunctionsRearrangePartialUpdate: () => Promise<({ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown })[]>; /** * * Tags: insight_variables * Access as: posthog.environmentsInsightVariablesList() */ environmentsInsightVariablesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown })[] }>; /** * * Tags: insight_variables * Access as: posthog.environmentsInsightVariablesCreate() */ environmentsInsightVariablesCreate: () => Promise<{ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown }>; /** * * Tags: insight_variables * Access as: posthog.environmentsInsightVariablesRetrieve() */ environmentsInsightVariablesRetrieve: () => Promise<{ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown }>; /** * * Tags: insight_variables * Access as: posthog.environmentsInsightVariablesUpdate() */ environmentsInsightVariablesUpdate: () => Promise<{ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown }>; /** * * Tags: insight_variables * Access as: posthog.environmentsInsightVariablesPartialUpdate() */ environmentsInsightVariablesPartialUpdate: () => Promise<{ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown }>; /** * * Tags: insight_variables * Access as: posthog.environmentsInsightVariablesDestroy() */ environmentsInsightVariablesDestroy: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsList() */ environmentsInsightsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown })[] }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsCreate() */ environmentsInsightsCreate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: insights * Access as: posthog.environmentsInsightsSharingList() */ environmentsInsightsSharingList: () => Promise<({ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] })[]>; /** * Create a new password for the sharing configuration. * Tags: insights * Access as: posthog.environmentsInsightsSharingPasswordsCreate() */ environmentsInsightsSharingPasswordsCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a password from the sharing configuration. * Tags: insights * Access as: posthog.environmentsInsightsSharingPasswordsDestroy() */ environmentsInsightsSharingPasswordsDestroy: () => Promise; /** * * Tags: insights * Access as: posthog.environmentsInsightsSharingRefreshCreate() */ environmentsInsightsSharingRefreshCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * * Tags: insights * Access as: posthog.environmentsInsightsThresholdsList() */ environmentsInsightsThresholdsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" }; alerts: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown })[] })[] }>; /** * * Tags: insights * Access as: posthog.environmentsInsightsThresholdsRetrieve() */ environmentsInsightsThresholdsRetrieve: () => Promise<{ id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" }; alerts: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown })[] }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsRetrieve() */ environmentsInsightsRetrieve: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsUpdate() */ environmentsInsightsUpdate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsPartialUpdate() */ environmentsInsightsPartialUpdate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: insights * Access as: posthog.environmentsInsightsDestroy() */ environmentsInsightsDestroy: () => Promise; /** * Audit trail for a single insight — every change made to it, by whom, and when. Use this when you want the change history of a specific insight; use the project-wide activity endpoint for a broader view. * Tags: insights * Access as: posthog.environmentsInsightsActivityRetrieve() */ environmentsInsightsActivityRetrieve: () => Promise<{ results: ({ id: string; user: { [key: string]: unknown } | null; activity: string; scope: string; item_id: string; detail?: { id: string; changes?: ({ type: string; action: string; field: string; before: unknown; after: unknown })[]; merge?: { type: string; source: unknown; target: unknown }; trigger?: { job_type: string; job_id: string; payload: unknown }; name: string; short_id: string; type: string }; created_at: string })[]; next: string | null; previous: string | null; total_count: number }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsAnalyzeRetrieve() */ environmentsInsightsAnalyzeRetrieve: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsSuggestionsRetrieve() */ environmentsInsightsSuggestionsRetrieve: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsSuggestionsCreate() */ environmentsInsightsSuggestionsCreate: () => Promise; /** * Project-wide audit trail across all insights — who created, edited, deleted, or restored insights, what changed (with before/after diffs), and when. Useful for surfacing what people (or agents) have been working on recently. * Tags: insights * Access as: posthog.environmentsInsightsAllActivityRetrieve() */ environmentsInsightsAllActivityRetrieve: () => Promise<{ results: ({ id: string; user: { [key: string]: unknown } | null; activity: string; scope: string; item_id: string; detail?: { id: string; changes?: ({ type: string; action: string; field: string; before: unknown; after: unknown })[]; merge?: { type: string; source: unknown; target: unknown }; trigger?: { job_type: string; job_id: string; payload: unknown }; name: string; short_id: string; type: string }; created_at: string })[]; next: string | null; previous: string | null; total_count: number }>; /** * Soft-delete insights in bulk by ID. Mirrors the single-insight delete: sets deleted=True, soft-deletes the insights' dashboard tiles, and removes their linked alerts. Insights the requester cannot edit are skipped and reported in `skipped`. Reversible via the bulk_restore endpoint. * Tags: insights * Access as: posthog.environmentsInsightsBulkDeleteCreate() */ environmentsInsightsBulkDeleteCreate: () => Promise<{ deleted: ({ id: number; name: string | null })[]; skipped: ({ id: number; reason: string })[] }>; /** * Restore soft-deleted insights in bulk by ID — the inverse of bulk_delete. Sets deleted=False and re-activates the insights' dashboard tiles on dashboards that still exist. Linked alerts are not restored (they are removed on delete). Insights the requester cannot edit are reported in `skipped`. * Tags: insights * Access as: posthog.environmentsInsightsBulkRestoreCreate() */ environmentsInsightsBulkRestoreCreate: () => Promise<{ restored: ({ id: number; name: string | null })[]; skipped: ({ id: number; reason: string })[] }>; /** * Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list * Tags: insights * Access as: posthog.environmentsInsightsBulkUpdateTagsCreate() */ environmentsInsightsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: number; tags: (string)[] })[]; skipped: ({ id: number; reason: string })[] }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.environmentsInsightsCancelCreate() */ environmentsInsightsCancelCreate: () => Promise; /** * Generate an AI-suggested name and description for an insight based on its query configuration. * Tags: insights * Access as: posthog.environmentsInsightsGenerateMetadataCreate() */ environmentsInsightsGenerateMetadataCreate: () => Promise; /** * Returns basic details about the last 5 insights viewed by this user. Most recently viewed first. * Tags: insights * Access as: posthog.environmentsInsightsMyLastViewedRetrieve() */ environmentsInsightsMyLastViewedRetrieve: () => Promise; /** * Returns insights ranked by view count over the last N days (default 7), highest first. Each result includes the same metadata as the standard insights list, plus a `view_count` and up to 3 recent `viewers`. Useful for surfacing the most-used insights in a project. * Tags: insights * Access as: posthog.environmentsInsightsTrendingRetrieve() */ environmentsInsightsTrendingRetrieve: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: unknown; dashboards: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; description?: string | null; last_refresh: string | null; refreshing: boolean; tags?: (unknown)[]; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; last_modified_at?: string; favorited?: boolean; user_access_level: string | null; last_viewed_at: string | null; search_match_type: "exact" | "similar" | null; view_count: number; viewers: ({ id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown })[]; last_modified_by: unknown })[] }>; /** * Record that the current user has just viewed one or more insights. Submitted ids that do not belong to the current project or that point at deleted insights are silently dropped. Returns 201 on success regardless of how many ids were retained. * Tags: insights * Access as: posthog.environmentsInsightsViewedCreate() */ environmentsInsightsViewedCreate: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsList() */ environmentsIntegrationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string })[] }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsCreate() */ environmentsIntegrationsCreate: () => Promise<{ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsRetrieve() */ environmentsIntegrationsRetrieve: () => Promise<{ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsDestroy() */ environmentsIntegrationsDestroy: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsAnthropicManagedAgentEnvsRetrieve() */ environmentsIntegrationsAnthropicManagedAgentEnvsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsAnthropicManagedAgentVaultsRetrieve() */ environmentsIntegrationsAnthropicManagedAgentVaultsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsAnthropicManagedAgentsRetrieve() */ environmentsIntegrationsAnthropicManagedAgentsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsChannelsRetrieve() */ environmentsIntegrationsChannelsRetrieve: () => Promise<{ channels: ({ id: string; name: string; is_private: boolean; is_member: boolean; is_ext_shared: boolean; is_private_without_access: boolean })[]; lastRefreshedAt?: string | null; has_more?: boolean }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsClickupListsRetrieve() */ environmentsIntegrationsClickupListsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsClickupSpacesRetrieve() */ environmentsIntegrationsClickupSpacesRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsClickupWorkspacesRetrieve() */ environmentsIntegrationsClickupWorkspacesRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsEmailPartialUpdate() */ environmentsIntegrationsEmailPartialUpdate: () => Promise<{ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsEmailVerifyCreate() */ environmentsIntegrationsEmailVerifyCreate: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsGithubBranchesRetrieve() */ environmentsIntegrationsGithubBranchesRetrieve: () => Promise<{ branches: (string)[]; default_branch?: string | null; has_more: boolean }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsGithubReposRetrieve() */ environmentsIntegrationsGithubReposRetrieve: () => Promise<{ repositories: ({ id: number; name: string; full_name: string; private?: boolean; default_branch?: string; language?: string; pushed_at?: string; archived?: boolean; can_push?: boolean })[]; has_more: boolean }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsGithubReposRefreshCreate() */ environmentsIntegrationsGithubReposRefreshCreate: () => Promise<{ repositories: ({ id: number; name: string; full_name: string; private?: boolean; default_branch?: string; language?: string; pushed_at?: string; archived?: boolean; can_push?: boolean })[] }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsGithubTeamsRetrieve() */ environmentsIntegrationsGithubTeamsRetrieve: () => Promise<{ teams: ({ id: number; slug: string; name: string })[]; has_more: boolean }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsGoogleAccessibleAccountsRetrieve() */ environmentsIntegrationsGoogleAccessibleAccountsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsGoogleConversionActionsRetrieve() */ environmentsIntegrationsGoogleConversionActionsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsJiraProjectsRetrieve() */ environmentsIntegrationsJiraProjectsRetrieve: () => Promise<{ projects: ({ id: string; key: string; name: string })[] }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsLinearTeamsRetrieve() */ environmentsIntegrationsLinearTeamsRetrieve: () => Promise<{ teams: ({ id: string; name: string })[] }>; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsLinkedinAdsAccountsRetrieve() */ environmentsIntegrationsLinkedinAdsAccountsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsLinkedinAdsConversionRulesRetrieve() */ environmentsIntegrationsLinkedinAdsConversionRulesRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsTwilioPhoneNumbersRetrieve() */ environmentsIntegrationsTwilioPhoneNumbersRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsAuthorizeRetrieve() */ environmentsIntegrationsAuthorizeRetrieve: () => Promise; /** * Unified endpoint for generating Domain Connect apply URLs. Accepts a context ("email" or "proxy") and the relevant resource ID. The backend resolves the domain, template variables, and service ID based on context, then builds the signed apply URL. * Tags: integrations * Access as: posthog.environmentsIntegrationsDomainConnectApplyUrlCreate() */ environmentsIntegrationsDomainConnectApplyUrlCreate: () => Promise; /** * * Tags: integrations * Access as: posthog.environmentsIntegrationsDomainConnectCheckRetrieve() */ environmentsIntegrationsDomainConnectCheckRetrieve: () => Promise; /** * Reuse a GitHub installation already linked to a sibling team in the same organization. * Tags: integrations * Access as: posthog.environmentsIntegrationsGithubLinkExistingCreate() */ environmentsIntegrationsGithubLinkExistingCreate: () => Promise<{ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string }>; /** * Mint a User OAuth URL to bootstrap a fresh `code` when the install flow returns without one. * Tags: integrations * Access as: posthog.environmentsIntegrationsGithubOauthAuthorizeCreate() */ environmentsIntegrationsGithubOauthAuthorizeCreate: () => Promise<{ oauth_url: string }>; /** * Seed GitHub setup callback state without redirecting to GitHub. Used when the user opens an existing installation's settings on github.com (e.g. PostHog Code "Update in GitHub") so the subsequent Setup URL redirect can be validated. * Tags: integrations * Access as: posthog.environmentsIntegrationsGithubPrepareCallbackCreate() */ environmentsIntegrationsGithubPrepareCallbackCreate: () => Promise; /** * Notify project admins that a member is requesting an integration be connected. * Tags: integrations * Access as: posthog.environmentsIntegrationsRequestAccessCreate() */ environmentsIntegrationsRequestAccessCreate: () => Promise<{ success: boolean }>; /** * Team-level clustering configuration (event filters for automated pipelines). * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsClusteringConfigList() */ environmentsLlmAnalyticsClusteringConfigList: () => Promise<{ event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }>; /** * Team-level clustering configuration (event filters for automated pipelines). * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsClusteringConfigSetEventFiltersCreate() */ environmentsLlmAnalyticsClusteringConfigSetEventFiltersCreate: () => Promise<{ event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsClusteringJobsList() */ environmentsLlmAnalyticsClusteringJobsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string })[] }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsClusteringJobsCreate() */ environmentsLlmAnalyticsClusteringJobsCreate: () => Promise<{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsClusteringJobsRetrieve() */ environmentsLlmAnalyticsClusteringJobsRetrieve: () => Promise<{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsClusteringJobsUpdate() */ environmentsLlmAnalyticsClusteringJobsUpdate: () => Promise<{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsClusteringJobsPartialUpdate() */ environmentsLlmAnalyticsClusteringJobsPartialUpdate: () => Promise<{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsClusteringJobsDestroy() */ environmentsLlmAnalyticsClusteringJobsDestroy: () => Promise; /** * Get the evaluation config for this team * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationConfigRetrieve() */ environmentsLlmAnalyticsEvaluationConfigRetrieve: () => Promise<{ trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null } | null; created_at: string; updated_at: string }>; /** * Set the active provider key for evaluations * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreate() */ environmentsLlmAnalyticsEvaluationConfigSetActiveKeyCreate: () => Promise<{ trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null } | null; created_at: string; updated_at: string }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationReportsList() */ environmentsLlmAnalyticsEvaluationReportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string })[] }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationReportsCreate() */ environmentsLlmAnalyticsEvaluationReportsCreate: () => Promise<{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationReportsRetrieve() */ environmentsLlmAnalyticsEvaluationReportsRetrieve: () => Promise<{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationReportsUpdate() */ environmentsLlmAnalyticsEvaluationReportsUpdate: () => Promise<{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationReportsPartialUpdate() */ environmentsLlmAnalyticsEvaluationReportsPartialUpdate: () => Promise<{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string }>; /** * Evaluation report configs are deleted only when their evaluation is deleted. Use PATCH enabled=false to stop delivery. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationReportsDestroy() */ environmentsLlmAnalyticsEvaluationReportsDestroy: () => Promise; /** * Trigger immediate report generation. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationReportsGenerateCreate() */ environmentsLlmAnalyticsEvaluationReportsGenerateCreate: () => Promise; /** * List report runs (history) for this report. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationReportsRunsList() */ environmentsLlmAnalyticsEvaluationReportsRunsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; report: string; content: unknown; metadata: unknown; period_start: string; period_end: string; delivery_status: "pending" | "delivered" | "partial_failure" | "failed"; delivery_errors: unknown; created_at: string })[] }>; /** * Generate an AI-powered summary of evaluation results. This endpoint analyzes evaluation runs and identifies patterns in passing and failing evaluations, providing actionable recommendations. Data is fetched server-side by evaluation ID to ensure data integrity. **Use Cases:** - Understand why evaluations are passing or failing - Identify systematic issues in LLM responses - Get recommendations for improving response quality - Review patterns across many evaluation runs at once * Tags: AI observability, llm_analytics * Access as: posthog.environmentsLlmAnalyticsEvaluationSummaryCreate() */ environmentsLlmAnalyticsEvaluationSummaryCreate: () => Promise<{ overall_assessment: string; pass_patterns: ({ title: string; description: string; frequency: string; example_generation_ids: (string)[] })[]; fail_patterns: ({ title: string; description: string; frequency: string; example_generation_ids: (string)[] })[]; na_patterns: (unknown)[]; recommendations: (string)[]; statistics: { total_analyzed: number; pass_count: number; fail_count: number; na_count: number } }>; /** * List available models for a provider. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsModelsRetrieve() */ environmentsLlmAnalyticsModelsRetrieve: () => Promise<{ models: ({ id: string; posthog_available: boolean })[] }>; /** * * Tags: AI observability, llm_analytics * Access as: posthog.environmentsLlmAnalyticsOfflineEvaluationsExperimentItemsCreate() */ environmentsLlmAnalyticsOfflineEvaluationsExperimentItemsCreate: () => Promise<{ results: ((unknown)[])[] }>; /** * Validate LLM provider API keys without persisting them * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeyValidationsCreate() */ environmentsLlmAnalyticsProviderKeyValidationsCreate: () => Promise<{ [key: string]: unknown }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysList() */ environmentsLlmAnalyticsProviderKeysList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null })[] }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysCreate() */ environmentsLlmAnalyticsProviderKeysCreate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysRetrieve() */ environmentsLlmAnalyticsProviderKeysRetrieve: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysUpdate() */ environmentsLlmAnalyticsProviderKeysUpdate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysPartialUpdate() */ environmentsLlmAnalyticsProviderKeysPartialUpdate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysDestroy() */ environmentsLlmAnalyticsProviderKeysDestroy: () => Promise; /** * Assign this key to evaluations and optionally re-enable them. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysAssignCreate() */ environmentsLlmAnalyticsProviderKeysAssignCreate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * Get evaluations using this key and alternative keys for replacement. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysDependentConfigsRetrieve() */ environmentsLlmAnalyticsProviderKeysDependentConfigsRetrieve: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysValidateCreate() */ environmentsLlmAnalyticsProviderKeysValidateCreate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * List enabled evaluations currently using trial credits for a given provider. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieve() */ environmentsLlmAnalyticsProviderKeysTrialEvaluationsRetrieve: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueueItemsList() */ environmentsLlmAnalyticsReviewQueueItemsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number })[] }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueueItemsCreate() */ environmentsLlmAnalyticsReviewQueueItemsCreate: () => Promise<{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueueItemsRetrieve() */ environmentsLlmAnalyticsReviewQueueItemsRetrieve: () => Promise<{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueueItemsPartialUpdate() */ environmentsLlmAnalyticsReviewQueueItemsPartialUpdate: () => Promise<{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueueItemsDestroy() */ environmentsLlmAnalyticsReviewQueueItemsDestroy: () => Promise; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueuesList() */ environmentsLlmAnalyticsReviewQueuesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number })[] }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueuesCreate() */ environmentsLlmAnalyticsReviewQueuesCreate: () => Promise<{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueuesRetrieve() */ environmentsLlmAnalyticsReviewQueuesRetrieve: () => Promise<{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueuesPartialUpdate() */ environmentsLlmAnalyticsReviewQueuesPartialUpdate: () => Promise<{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsReviewQueuesDestroy() */ environmentsLlmAnalyticsReviewQueuesDestroy: () => Promise; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsScoreDefinitionsList() */ environmentsLlmAnalyticsScoreDefinitionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number })[] }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsScoreDefinitionsCreate() */ environmentsLlmAnalyticsScoreDefinitionsCreate: () => Promise<{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsScoreDefinitionsRetrieve() */ environmentsLlmAnalyticsScoreDefinitionsRetrieve: () => Promise<{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsScoreDefinitionsPartialUpdate() */ environmentsLlmAnalyticsScoreDefinitionsPartialUpdate: () => Promise<{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsScoreDefinitionsNewVersionCreate() */ environmentsLlmAnalyticsScoreDefinitionsNewVersionCreate: () => Promise<{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number }>; /** * Generate an AI-powered summary of an LLM trace or event. This endpoint analyzes the provided trace/event, generates a line-numbered text representation, and uses an LLM to create a concise summary with line references. **Two ways to use this endpoint:** 1. **By ID (recommended):** Pass `trace_id` or `generation_id` with an optional `date_from`/`date_to`. The backend fetches the data automatically. `summarize_type` is inferred. 2. **By data:** Pass the full trace/event data blob in `data` with `summarize_type`. This is how the frontend uses it. **Summary Format:** - Title (concise, max 10 words) - Mermaid flow diagram showing the main flow - 3-10 summary bullets with line references - "Interesting Notes" section for failures, successes, or unusual patterns - Line references in [L45] or [L45-52] format pointing to relevant sections The response includes the structured summary, the text representation, and metadata. * Tags: AI observability, llm_analytics * Access as: posthog.environmentsLlmAnalyticsSummarizationCreate() */ environmentsLlmAnalyticsSummarizationCreate: () => Promise<{ summary: { title: string; flow_diagram: string; summary_bullets: ({ text: string; line_refs: string })[]; interesting_notes: ({ text: string; line_refs: string })[] }; text_repr: string; metadata?: unknown }>; /** * Check which traces have cached summaries available. This endpoint allows batch checking of multiple trace IDs to see which ones have cached summaries. Returns only the traces that have cached summaries with their titles. **Use Cases:** - Load cached summaries on session view load - Avoid unnecessary LLM calls for already-summarized traces - Display summary previews without generating new summaries * Tags: AI observability, llm_analytics * Access as: posthog.environmentsLlmAnalyticsSummarizationBatchCheckCreate() */ environmentsLlmAnalyticsSummarizationBatchCheckCreate: () => Promise<{ summaries: ({ trace_id: string; title: string; cached?: boolean })[] }>; /** * Generate a human-readable text representation of an LLM trace event. This endpoint converts AI observability events ($ai_generation, $ai_span, $ai_embedding, or $ai_trace) into formatted text representations suitable for display, logging, or analysis. **Supported Event Types:** - `$ai_generation`: Individual LLM API calls with input/output messages - `$ai_span`: Logical spans with state transitions - `$ai_embedding`: Embedding generation events (text input → vector) - `$ai_trace`: Full traces with hierarchical structure **Options:** - `max_length`: Maximum character count (default: 2000000) - `truncated`: Enable middle-content truncation within events (default: true) - `truncate_buffer`: Characters at start/end when truncating (default: 1000) - `include_markers`: Use interactive markers vs plain text indicators (default: true) - Frontend: set true for `<<>>` markers - Backend/LLM: set false for `... (X chars truncated) ...` text - `collapsed`: Show summary vs full trace tree (default: false) - `include_hierarchy`: Include tree structure for traces (default: true) - `max_depth`: Maximum depth for hierarchical rendering (default: unlimited) - `tools_collapse_threshold`: Number of tools before auto-collapsing list (default: 5) - Tool lists >5 items show `<<>>` marker for frontend - Or `[+] AVAILABLE TOOLS: N` for backend when `include_markers: false` - `include_line_numbers`: Prefix each line with line number like L001:, L010: (default: false) **Use Cases:** - Frontend display: `truncated: true, include_markers: true, include_line_numbers: true` - Backend LLM context (summary): `truncated: true, include_markers: false, collapsed: true` - Backend LLM context (full): `truncated: false` The response includes the formatted text and metadata about the rendering. * Tags: AI observability, llm_analytics * Access as: posthog.environmentsLlmAnalyticsTextReprCreate() */ environmentsLlmAnalyticsTextReprCreate: () => Promise<{ text: string; metadata: { event_type?: string; event_id?: string; trace_id?: string; rendering: string; char_count: number; truncated: boolean; error?: string } }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsTraceReviewsList() */ environmentsLlmAnalyticsTraceReviewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; reviewed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; scores: ({ id: string; definition_id: string; definition_name: string; definition_kind: string; definition_archived: boolean; definition_version_id: string; definition_version: number; definition_config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; categorical_values: unknown[] | null; numeric_value: string | null; boolean_value: boolean | null; created_at: string; updated_at: string | null })[]; team: number })[] }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsTraceReviewsCreate() */ environmentsLlmAnalyticsTraceReviewsCreate: () => Promise<{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; reviewed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; scores: ({ id: string; definition_id: string; definition_name: string; definition_kind: string; definition_archived: boolean; definition_version_id: string; definition_version: number; definition_config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; categorical_values: unknown[] | null; numeric_value: string | null; boolean_value: boolean | null; created_at: string; updated_at: string | null })[]; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsTraceReviewsRetrieve() */ environmentsLlmAnalyticsTraceReviewsRetrieve: () => Promise<{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; reviewed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; scores: ({ id: string; definition_id: string; definition_name: string; definition_kind: string; definition_archived: boolean; definition_version_id: string; definition_version: number; definition_config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; categorical_values: unknown[] | null; numeric_value: string | null; boolean_value: boolean | null; created_at: string; updated_at: string | null })[]; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsTraceReviewsPartialUpdate() */ environmentsLlmAnalyticsTraceReviewsPartialUpdate: () => Promise<{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; reviewed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; scores: ({ id: string; definition_id: string; definition_name: string; definition_kind: string; definition_archived: boolean; definition_version_id: string; definition_version: number; definition_config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; categorical_values: unknown[] | null; numeric_value: string | null; boolean_value: boolean | null; created_at: string; updated_at: string | null })[]; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsTraceReviewsDestroy() */ environmentsLlmAnalyticsTraceReviewsDestroy: () => Promise; /** * Translate text to target language. * Tags: llm_analytics * Access as: posthog.environmentsLlmAnalyticsTranslateCreate() */ environmentsLlmAnalyticsTranslateCreate: () => Promise<{ [key: string]: unknown }>; /** * * Tags: llm_prompts * Access as: posthog.environmentsLlmPromptsList() */ environmentsLlmPromptsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; prompt: unknown; version: number; version_description: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[]; prompt_preview: string; prompt_size_bytes: number })[] }>; /** * * Tags: llm_prompts * Access as: posthog.environmentsLlmPromptsCreate() */ environmentsLlmPromptsCreate: () => Promise<{ id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }>; /** * * Tags: llm_prompts * Access as: posthog.environmentsLlmPromptsNameRetrieve() */ environmentsLlmPromptsNameRetrieve: () => Promise<{ id: string; name: string; prompt?: unknown; prompt_preview?: string; outline: ({ level: number; text: string })[]; version: number; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_prompts * Access as: posthog.environmentsLlmPromptsNamePartialUpdate() */ environmentsLlmPromptsNamePartialUpdate: () => Promise<{ id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }>; /** * * Tags: llm_prompts * Access as: posthog.environmentsLlmPromptsNameArchiveCreate() */ environmentsLlmPromptsNameArchiveCreate: () => Promise<{ id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }>; /** * * Tags: llm_prompts * Access as: posthog.environmentsLlmPromptsNameDuplicateCreate() */ environmentsLlmPromptsNameDuplicateCreate: () => Promise<{ id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }>; /** * * Tags: llm_prompts * Access as: posthog.environmentsLlmPromptsResolveNameRetrieve() */ environmentsLlmPromptsResolveNameRetrieve: () => Promise<{ prompt: { id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }; versions: ({ id: string; version: number; version_description: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; is_latest: boolean })[]; has_more: boolean }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsList() */ environmentsLlmSkillsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string })[] }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsCreate() */ environmentsLlmSkillsCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files?: ({ path: string; content: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsImportCreate() */ environmentsLlmSkillsImportCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * Report whether the user already has a marketplace credential, without minting one. The token is unrecoverable, so an existing credential returns its mask only — the UI shows "already connected, existing setups keep working" and offers an explicit rotate. * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsMarketplaceInstallCommandRetrieve() */ environmentsLlmSkillsMarketplaceInstallCommandRetrieve: () => Promise<{ status: "absent" | "exists" | "created" | "rotated"; connected: boolean; plugin_name: string; marketplace_name: string; label: string; repo_url: string; command: string | null; command_template: string; codex_command: string | null; codex_command_template: string; token: string | null; mask_value: string | null; created_at: string | null; last_rolled_at: string | null }>; /** * Mint the user's read-only marketplace credential (or rotate it) and return the install command. Per-user: rotating only ever invalidates this user's own credential, never a teammate's. * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsMarketplaceInstallCommandCreate() */ environmentsLlmSkillsMarketplaceInstallCommandCreate: () => Promise<{ status: "absent" | "exists" | "created" | "rotated"; connected: boolean; plugin_name: string; marketplace_name: string; label: string; repo_url: string; command: string | null; command_template: string; codex_command: string | null; codex_command_template: string; token: string | null; mask_value: string | null; created_at: string | null; last_rolled_at: string | null }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNameRetrieve() */ environmentsLlmSkillsNameRetrieve: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNamePartialUpdate() */ environmentsLlmSkillsNamePartialUpdate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNameArchiveCreate() */ environmentsLlmSkillsNameArchiveCreate: () => Promise; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNameDuplicateCreate() */ environmentsLlmSkillsNameDuplicateCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNameExportRetrieve() */ environmentsLlmSkillsNameExportRetrieve: () => Promise; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNameFilesCreate() */ environmentsLlmSkillsNameFilesCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNameFilesRenameCreate() */ environmentsLlmSkillsNameFilesRenameCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNameFilesRetrieve() */ environmentsLlmSkillsNameFilesRetrieve: () => Promise<{ path: string; content: string; content_type?: string }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsNameFilesDestroy() */ environmentsLlmSkillsNameFilesDestroy: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.environmentsLlmSkillsResolveNameRetrieve() */ environmentsLlmSkillsResolveNameRetrieve: () => Promise<{ skill: { id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }; versions: ({ id: string; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; is_latest: boolean })[]; has_more: boolean }>; /** * * Tags: logs * Access as: posthog.environmentsLogsAlertsList() */ environmentsLogsAlertsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null })[] }>; /** * * Tags: logs * Access as: posthog.environmentsLogsAlertsCreate() */ environmentsLogsAlertsCreate: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsAlertsRetrieve() */ environmentsLogsAlertsRetrieve: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsAlertsUpdate() */ environmentsLogsAlertsUpdate: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsAlertsPartialUpdate() */ environmentsLogsAlertsPartialUpdate: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsAlertsDestroy() */ environmentsLogsAlertsDestroy: () => Promise; /** * Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically. * Tags: logs * Access as: posthog.environmentsLogsAlertsDestinationsCreate() */ environmentsLogsAlertsDestinationsCreate: () => Promise<{ hog_function_ids: (string)[] }>; /** * Delete a notification destination by deleting its HogFunction group atomically. * Tags: logs * Access as: posthog.environmentsLogsAlertsDestinationsDeleteCreate() */ environmentsLogsAlertsDestinationsDeleteCreate: () => Promise; /** * Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't change and there was no error) are filtered out since only the last 10 are kept and they carry no forensic value. Optional `?kind=...` narrows to a single kind. * Tags: logs * Access as: posthog.environmentsLogsAlertsEventsList() */ environmentsLogsAlertsEventsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; kind: "check" | "reset" | "enable" | "disable" | "snooze" | "unsnooze" | "threshold_change" | "broken_config"; state_before: string; state_after: string; threshold_breached: boolean; result_count: number | null; error_message: string | null; query_duration_ms: number | null })[] }>; /** * Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck. * Tags: logs * Access as: posthog.environmentsLogsAlertsResetCreate() */ environmentsLogsAlertsResetCreate: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created. * Tags: logs * Access as: posthog.environmentsLogsAlertsSimulateCreate() */ environmentsLogsAlertsSimulateCreate: () => Promise<{ buckets: ({ timestamp: string; count: number; threshold_breached: boolean; state: string; notification: string; reason: string })[]; fire_count: number; resolve_count: number; total_buckets: number; threshold_count: number; threshold_operator: string }>; /** * * Tags: logs * Access as: posthog.environmentsLogsAttributesRetrieve() */ environmentsLogsAttributesRetrieve: () => Promise<{ results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }>; /** * * Tags: logs * Access as: posthog.environmentsLogsCountCreate() */ environmentsLogsCountCreate: () => Promise<{ count: number }>; /** * * Tags: logs * Access as: posthog.environmentsLogsCountRangesCreate() */ environmentsLogsCountRangesCreate: () => Promise<{ ranges: ({ date_from: string; date_to: string; count: number })[]; interval: string }>; /** * Explain a log entry using AI. POST /api/environments/:id/logs/explainLogWithAI/ * Tags: logs * Access as: posthog.environmentsLogsExplainLogWithAiCreate() */ environmentsLogsExplainLogWithAiCreate: () => Promise<{ uuid: string; timestamp: string; force_refresh?: boolean }>; /** * * Tags: logs * Access as: posthog.environmentsLogsExportCreate() */ environmentsLogsExportCreate: () => Promise<{ [key: string]: unknown }>; /** * * Tags: logs * Access as: posthog.environmentsLogsFacetValuesCreate() */ environmentsLogsFacetValuesCreate: () => Promise<{ results: ({ value: string; count: number })[] }>; /** * * Tags: logs * Access as: posthog.environmentsLogsGroupByCreate() */ environmentsLogsGroupByCreate: () => Promise<{ groups: ({ value: string; log_count: number; error_count: number; last_seen: string })[]; total_groups: number; total_logs: number; truncated: boolean }>; /** * * Tags: logs * Access as: posthog.environmentsLogsHasLogsRetrieve() */ environmentsLogsHasLogsRetrieve: () => Promise<{ [key: string]: unknown }>; /** * * Tags: logs * Access as: posthog.environmentsLogsPatternsCreate() */ environmentsLogsPatternsCreate: () => Promise<{ patterns: ({ pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; estimated_error_count: number; first_seen: string; last_seen: string; examples: ({ body: string; severity_text: string; service_name: string; timestamp: string })[]; services: (string)[]; sparkline: (number)[]; severity_counts: { [key: string]: number | undefined }; match_regex: string | null; match_literal: string | null })[]; scanned_count: number; total_count: number; sampled: boolean; sample_coverage_pct: number; sparkline_buckets: ({ start: string; end: string })[] }>; /** * * Tags: logs * Access as: posthog.environmentsLogsPatternsDiffCreate() */ environmentsLogsPatternsDiffCreate: () => Promise<{ entries: ({ classification: "new" | "rate_shift" | "gone" | "unchanged"; rate_ratio: number | null; pattern: { pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; estimated_error_count: number; first_seen: string; last_seen: string; examples: ({ body: string; severity_text: string; service_name: string; timestamp: string })[]; services: (string)[]; sparkline: (number)[]; severity_counts: { [key: string]: number | undefined }; match_regex: string | null; match_literal: string | null }; baseline_estimated_count: number | null; baseline_volume_share_pct: number | null })[]; current: { scanned_count: number; total_count: number; sampled: boolean; sample_coverage_pct: number; date_from: string; date_to: string }; baseline: { scanned_count: number; total_count: number; sampled: boolean; sample_coverage_pct: number; date_from: string; date_to: string } }>; /** * * Tags: logs * Access as: posthog.environmentsLogsQueryCreate() */ environmentsLogsQueryCreate: () => Promise<{ query: { [key: string]: unknown }; results: ({ uuid: string; timestamp: string; observed_timestamp: string; body: string; severity_text: string; severity_number: number; level: string; trace_id: string; span_id: string; trace_flags?: number; attributes: { [key: string]: string | undefined }; resource_attributes: { [key: string]: string | undefined }; event_name?: string })[]; hasMore: boolean; nextCursor?: string | null; maxExportableLogs: number; columns?: unknown[] | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsSamplingRulesList() */ environmentsLogsSamplingRulesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null })[] }>; /** * * Tags: logs * Access as: posthog.environmentsLogsSamplingRulesCreate() */ environmentsLogsSamplingRulesCreate: () => Promise<{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsSamplingRulesRetrieve() */ environmentsLogsSamplingRulesRetrieve: () => Promise<{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsSamplingRulesUpdate() */ environmentsLogsSamplingRulesUpdate: () => Promise<{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsSamplingRulesPartialUpdate() */ environmentsLogsSamplingRulesPartialUpdate: () => Promise<{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsSamplingRulesDestroy() */ environmentsLogsSamplingRulesDestroy: () => Promise; /** * Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired). * Tags: logs * Access as: posthog.environmentsLogsSamplingRulesSimulateCreate() */ environmentsLogsSamplingRulesSimulateCreate: () => Promise<{ estimated_reduction_pct: number; notes: string }>; /** * Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1). * Tags: logs * Access as: posthog.environmentsLogsSamplingRulesReorderCreate() */ environmentsLogsSamplingRulesReorderCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null })[] }>; /** * * Tags: logs * Access as: posthog.environmentsLogsServicesCreate() */ environmentsLogsServicesCreate: () => Promise<{ services: ({ service_name: string; log_count: number; error_count: number; error_rate: number; volume_share_pct?: number; severity_breakdown?: { debug: number; info: number; warn: number; error: number }; active_rules?: ({ rule_id: string; rule_name: string; summary_string: string })[] })[]; sparkline: ({ time: string; service_name: string; count: number })[]; summary?: { top_services_count: number; top_services_volume_share_pct: number } }>; /** * * Tags: logs * Access as: posthog.environmentsLogsSparklineCreate() */ environmentsLogsSparklineCreate: () => Promise<{ results: ({ time: string; severity?: string; service?: string; count: number; bytes_uncompressed?: number })[] }>; /** * * Tags: logs * Access as: posthog.environmentsLogsValuesRetrieve() */ environmentsLogsValuesRetrieve: () => Promise<{ results: ({ id: string; name: string; count?: number })[]; refreshing: boolean }>; /** * * Tags: logs * Access as: posthog.environmentsLogsViewsList() */ environmentsLogsViewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null })[] }>; /** * * Tags: logs * Access as: posthog.environmentsLogsViewsCreate() */ environmentsLogsViewsCreate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsViewsRetrieve() */ environmentsLogsViewsRetrieve: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsViewsUpdate() */ environmentsLogsViewsUpdate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsViewsPartialUpdate() */ environmentsLogsViewsPartialUpdate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.environmentsLogsViewsDestroy() */ environmentsLogsViewsDestroy: () => Promise; /** * Get all views associated with a specific managed viewset. GET /api/environments/{team_id}/managed_viewsets/{kind}/ * Tags: managed_viewsets * Access as: posthog.environmentsManagedViewsetsRetrieve() */ environmentsManagedViewsetsRetrieve: () => Promise; /** * Enable or disable a managed viewset by kind. PUT /api/environments/{team_id}/managed_viewsets/{kind}/ with body {"enabled": true/false} * Tags: managed_viewsets * Access as: posthog.environmentsManagedViewsetsUpdate() */ environmentsManagedViewsetsUpdate: () => Promise; /** * List conversion goals * Tags: marketing_analytics * Access as: posthog.environmentsMarketingAnalyticsConversionGoalsRetrieve() */ environmentsMarketingAnalyticsConversionGoalsRetrieve: () => Promise<{ goals: ({ id: string; name: string; kind: string; target_label: string; last_30d_count: number; integrated_count: number | null; events_without_utm_source: number | null; events_with_unmatched_utm_source: number | null; non_integrated_count: number | null; integrated_pct: number | null; is_misconfigured: boolean; misconfig_reason: string | null; is_approximate: boolean; approximation_reason: string | null })[]; attribution_window_days: number; attribution_mode: string; has_misconfigured: boolean }>; /** * List marketing data sources * Tags: marketing_analytics * Access as: posthog.environmentsMarketingAnalyticsDataSourcesRetrieve() */ environmentsMarketingAnalyticsDataSourcesRetrieve: () => Promise<{ integrations: ({ source_type: string; is_native: boolean; display_name: string; connected: boolean; last_sync_at: string | null; last_sync_status: string; last_error: string | null; rows_last_24h: number; rows_last_7d: number; sources_map_present: boolean; schema_columns_mapped: (string)[]; schema_columns_required_missing: (string)[]; required_tables: ({ table_name: string; present: boolean; should_sync: boolean; status: string | null; last_synced_at: string | null })[]; settings_url: string; schemas_url: string | null; diagnosis: string; fix_suggestion: string | null })[]; has_any_data: boolean; overall_status: string; issues_summary: (string)[] }>; /** * Diagnose marketing analytics * Tags: marketing_analytics * Access as: posthog.environmentsMarketingAnalyticsDiagnoseRetrieve() */ environmentsMarketingAnalyticsDiagnoseRetrieve: () => Promise<{ integrations: ({ integration_key: string; source_type: string; display_name: string; overall_status: string; diagnosis: string; data_source?: { source_type: string; is_native: boolean; display_name: string; connected: boolean; last_sync_at: string | null; last_sync_status: string; last_error: string | null; rows_last_24h: number; rows_last_7d: number; sources_map_present: boolean; schema_columns_mapped: (string)[]; schema_columns_required_missing: (string)[]; required_tables: ({ table_name: string; present: boolean; should_sync: boolean; status: string | null; last_synced_at: string | null })[]; settings_url: string; schemas_url: string | null; diagnosis: string; fix_suggestion: string | null } | null; attribution?: { integration_key: string; display_name: string; events_with_utm_last_7d: number; events_matched_last_7d: number; events_unmatched_likely_yours_last_7d: number; last_event_with_matching_utm_at: string | null; matched_pct: number; sample_unmatched_utm_sources: ({ raw_value: string; event_count: number; suggested_integration: string | null })[] } | null; recommended_actions: ({ title: string; detail: string; severity: string; target_tool: string | null })[] })[]; overall_status: string; summary: string; conversion_goals?: { goals: ({ id: string; name: string; kind: string; target_label: string; last_30d_count: number; integrated_count: number | null; events_without_utm_source: number | null; events_with_unmatched_utm_source: number | null; non_integrated_count: number | null; integrated_pct: number | null; is_misconfigured: boolean; misconfig_reason: string | null; is_approximate: boolean; approximation_reason: string | null })[]; attribution_window_days: number; attribution_mode: string; has_misconfigured: boolean } | null; recommended_actions: ({ title: string; detail: string; severity: string; target_tool: string | null })[] }>; /** * Explain a conversion goal * Tags: marketing_analytics * Access as: posthog.environmentsMarketingAnalyticsExplainConversionGoalRetrieve() */ environmentsMarketingAnalyticsExplainConversionGoalRetrieve: () => Promise<{ goal_id: string; goal_name: string; kind: string; period: { date_from: string | null; date_to: string | null }; total_count: number; integrated_count: number | null; events_without_utm_source: number | null; events_with_unmatched_utm_source: number | null; non_integrated_count: number | null; by_event: (unknown[])[]; by_utm_source: (unknown[])[]; by_matched_integration: (unknown[])[]; samples: ({ event_uuid: string; timestamp: string; distinct_id: string; utm_source: string | null; utm_campaign: string | null; matched_integration: string | null })[]; notes: (string)[] }>; /** * Suggest conversion goals * Tags: marketing_analytics * Access as: posthog.environmentsMarketingAnalyticsSuggestConversionGoalsRetrieve() */ environmentsMarketingAnalyticsSuggestConversionGoalsRetrieve: () => Promise<{ candidates: ({ event_name: string; last_30d_count: number; distinct_users_30d: number; pct_with_utm_source: number; pct_with_utm_campaign: number; top_utm_sources: (unknown[])[]; is_already_a_goal: boolean; suggestion_score: number; suggestion_reason: string })[]; lookback_days: number; excluded_events_count: number }>; /** * Suggest UTM source mappings * Tags: marketing_analytics * Access as: posthog.environmentsMarketingAnalyticsSuggestUtmMappingsRetrieve() */ environmentsMarketingAnalyticsSuggestUtmMappingsRetrieve: () => Promise<{ source_suggestions: ({ raw_utm_source: string; suggested_target: string; suggested_target_display_name: string; reason: string })[]; campaign_suggestions: ({ integration: string; integration_display_name: string; suggested_clean_name: string; raw_campaign_values: (string)[]; confidence: number; method: string; reason: string })[]; raw_unmatched_samples: ({ raw_utm_source: string; event_count: number; suggested_integration: string | null })[]; full_utm_source_catalogue: ({ raw_utm_source: string; event_count: number; matched_integration: string | null; matched_integration_display_name: string | null; suggested_integration: string | null })[]; current_mappings: ({ raw_utm_source: string; target: string; target_display_name: string; source: string })[]; total_unmatched_events_in_window: number; total_events_with_utm_in_window: number; lookback_days_used: number; notes: (string)[] }>; /** * * Tags: marketing_analytics * Access as: posthog.environmentsMarketingAnalyticsTestMappingCreate() */ environmentsMarketingAnalyticsTestMappingCreate: () => Promise; /** * Run UTM audit * Tags: marketing_analytics * Access as: posthog.environmentsMarketingAnalyticsUtmAuditRetrieve() */ environmentsMarketingAnalyticsUtmAuditRetrieve: () => Promise<{ total_campaigns: number; campaigns_with_issues: number; campaigns_without_issues: number; total_spend_at_risk: number; results: ({ campaign_name: string; campaign_id: string; source_name: string; spend: number; clicks: number; impressions: number; has_utm_events: boolean; event_count: number; issues: ({ field: string; severity: "error" | "warning"; message: string })[] })[]; all_utm_events: ({ utm_campaign: string; utm_source: string; event_count: number; campaign_match: "none" | "auto" | "mapped"; source_match: "none" | "auto" | "mapped"; matched_campaign: string | null })[] }>; /** * * Tags: max_tools * Access as: posthog.environmentsMaxToolsCreateAndQueryInsightCreate() */ environmentsMaxToolsCreateAndQueryInsightCreate: () => Promise<{ [key: string]: unknown }>; /** * List MCP feedback submissions for the current project, newest first. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsFeedbackList() */ environmentsMcpAnalyticsFeedbackList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; kind: "feedback" | "missing_capability"; goal: string; summary: string; category: string; blocked: boolean | null; attempted_tool: string; mcp_client_name: string; mcp_client_version: string; mcp_protocol_version: string; mcp_transport: string; mcp_session_id: string; mcp_trace_id: string; created_at: string; updated_at: string })[] }>; /** * Create a new MCP feedback submission for the current project. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsFeedbackCreate() */ environmentsMcpAnalyticsFeedbackCreate: () => Promise<{ id: string; kind: "feedback" | "missing_capability"; goal: string; summary: string; category: string; blocked: boolean | null; attempted_tool: string; mcp_client_name: string; mcp_client_version: string; mcp_protocol_version: string; mcp_transport: string; mcp_session_id: string; mcp_trace_id: string; created_at: string; updated_at: string }>; /** * Return the most recent intent cluster snapshot for the current project. Returns an empty IDLE snapshot when no clustering run has happened yet. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsIntentClustersRetrieve() */ environmentsMcpAnalyticsIntentClustersRetrieve: () => Promise<({ status: "idle" | "computing" | "error"; error_message: string; last_computed_at: string | null; last_computed_by_email: string; clusters: ({ id: number; label: string; intent_count: number; session_count: number; call_count: number; error_count: number; error_rate_pct: number; routing_entropy: number; tool_distribution: ({ tool: string; count: number; pct: number; errors: number; error_rate_pct: number })[]; sample_intents: (string)[]; journey: { paths: ({ steps: (string | null)[]; outcome: "completed" | "error"; count: number })[]; total_sessions: number; leak: { steps: (string | null)[]; outcome: "completed" | "error"; count: number } | null } | null })[]; computed_with: { distance_threshold: number; embedding_model: string; n_intents: number; n_clusters: number } | null })[]>; /** * Trigger an asynchronous recompute of the intent cluster snapshot. The task runs in the background; poll the GET endpoint for progress (status transitions to 'idle' or 'error'). * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsIntentClustersRecompute() */ environmentsMcpAnalyticsIntentClustersRecompute: () => Promise; /** * List missing capability reports for the current project, newest first. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsMissingCapabilitiesList() */ environmentsMcpAnalyticsMissingCapabilitiesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; kind: "feedback" | "missing_capability"; goal: string; summary: string; category: string; blocked: boolean | null; attempted_tool: string; mcp_client_name: string; mcp_client_version: string; mcp_protocol_version: string; mcp_transport: string; mcp_session_id: string; mcp_trace_id: string; created_at: string; updated_at: string })[] }>; /** * Create a new missing capability report for the current project. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsMissingCapabilitiesCreate() */ environmentsMcpAnalyticsMissingCapabilitiesCreate: () => Promise<{ id: string; kind: "feedback" | "missing_capability"; goal: string; summary: string; category: string; blocked: boolean | null; attempted_tool: string; mcp_client_name: string; mcp_client_version: string; mcp_protocol_version: string; mcp_transport: string; mcp_session_id: string; mcp_trace_id: string; created_at: string; updated_at: string }>; /** * List MCP sessions for the current project, derived by grouping $mcp_tool_call events by $mcp_session_id. Ordered by newest session start first by default. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsSessionsList() */ environmentsMcpAnalyticsSessionsList: () => Promise<{ results: ({ session_id: string; tool_calls: number; session_start: string; session_end: string; distinct_id_count: number; tools_used: (string)[]; mcp_client_name: string; distinct_id: string; person_email: string; person_name: string; intent: string })[]; has_next: boolean }>; /** * Generate (or return the cached) LLM summary of the agent's goal for a session, derived from its recorded $mcp_intents. The first call summarises and persists the result; subsequent calls return the stored summary. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsSessionsGenerateIntent() */ environmentsMcpAnalyticsSessionsGenerateIntent: () => Promise<{ session_id: string; intent: string }>; /** * List a page of the $mcp_tool_call events that belong to a given $session_id, in chronological order. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsSessionsToolCalls() */ environmentsMcpAnalyticsSessionsToolCalls: () => Promise<{ results: ({ event_id: string; timestamp: string; tool_name: string; intent: string; is_error: boolean; error_message: string; duration_ms: number | null })[]; has_next: boolean }>; /** * Aggregate counters, top tools, agent clients, and the most recent tool calls for the last 30 days, computed in one request. Powers the dashboard's activity view; always computed fresh so polling callers watch data arrive. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsSessionsActivityOverview() */ environmentsMcpAnalyticsSessionsActivityOverview: () => Promise<{ stats: { total_calls: number; distinct_tools: number; distinct_sessions: number; distinct_clients: number; calls_with_intent: number; error_calls: number; missing_capability_reports: number }; top_tools: ({ tool: string; calls: number; errors: number })[]; clients: ({ client: string; calls: number })[]; recent_calls: ({ timestamp: string; tool: string; intent: string | null; is_error: boolean; error_message: string | null; duration_ms: number | null; client_name: string | null })[] }>; /** * Generate (or return the cached) LLM digest of what agents are trying to do with this MCP server, derived from the most recent recorded $mcp_intents across all sessions. Content-addressed cache: only regenerates when new intents arrive. Powers the dashboard's low-volume activity stage. * Tags: mcp_analytics * Access as: posthog.environmentsMcpAnalyticsSessionsIntentDigest() */ environmentsMcpAnalyticsSessionsIntentDigest: () => Promise<{ digest: string | null; intent_count: number }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsList() */ environmentsMcpServerInstallationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null })[] }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsCreate() */ environmentsMcpServerInstallationsCreate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsRetrieve() */ environmentsMcpServerInstallationsRetrieve: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsUpdate() */ environmentsMcpServerInstallationsUpdate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsPartialUpdate() */ environmentsMcpServerInstallationsPartialUpdate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsDestroy() */ environmentsMcpServerInstallationsDestroy: () => Promise; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsProxyCreate() */ environmentsMcpServerInstallationsProxyCreate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * Escalate a personal installation to a team-wide shared one. Owner-only AND admin-only: sharing exposes the owner's credential to every project member and all autonomous agents, so it carries the same gate as creating a shared install outright. * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsShareCreate() */ environmentsMcpServerInstallationsShareCreate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsToolsRetrieve() */ environmentsMcpServerInstallationsToolsRetrieve: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; tool_name: string; display_name: string; description: string; input_schema: unknown; approval_state?: "approved" | "needs_approval" | "do_not_use"; last_seen_at: string; removed_at: string | null; created_at: string; updated_at: string | null })[] }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsToolsPartialUpdate() */ environmentsMcpServerInstallationsToolsPartialUpdate: () => Promise<{ id: string; tool_name: string; display_name: string; description: string; input_schema: unknown; approval_state?: "approved" | "needs_approval" | "do_not_use"; last_seen_at: string; removed_at: string | null; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsToolsRefreshCreate() */ environmentsMcpServerInstallationsToolsRefreshCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; tool_name: string; display_name: string; description: string; input_schema: unknown; approval_state?: "approved" | "needs_approval" | "do_not_use"; last_seen_at: string; removed_at: string | null; created_at: string; updated_at: string | null })[] }>; /** * De-escalate a shared installation back to personal. Allowed for the credential owner OR a project admin (the reclaim path for shared credentials). The row always stays owned by the ORIGINAL owner — an admin unsharing someone else's install must not capture their credential. * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsUnshareCreate() */ environmentsMcpServerInstallationsUnshareCreate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * Start (or re-start) an OAuth flow. Pass ``template_id`` to (re)connect a catalog template, or ``installation_id`` to reconnect an existing custom install using its cached metadata and per-user DCR creds. * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsAuthorizeRetrieve() */ environmentsMcpServerInstallationsAuthorizeRetrieve: () => Promise; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsInstallCustomCreate() */ environmentsMcpServerInstallationsInstallCustomCreate: () => Promise<{ redirect_url: string }>; /** * * Tags: mcp_server_installations * Access as: posthog.environmentsMcpServerInstallationsInstallTemplateCreate() */ environmentsMcpServerInstallationsInstallTemplateCreate: () => Promise<{ redirect_url: string }>; /** * Lists curated MCP server templates that users can install with one click. Templates are seeded by PostHog operators and carry shared, encrypted OAuth client credentials. Inactive templates are hidden from the catalog. * Tags: mcp_servers * Access as: posthog.environmentsMcpServersList() */ environmentsMcpServersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; url: string; docs_url?: string; description?: string; auth_type?: "api_key" | "oauth"; icon_key?: string; category?: "business" | "data" | "design" | "dev" | "infra" | "productivity" })[] }>; /** * Invoke an MCP tool by name. This endpoint allows MCP callers to invoke Max AI tools directly without going through the full LangChain conversation flow. Scopes are resolved dynamically per tool via dangerously_get_required_scopes. * Tags: mcp_tools * Access as: posthog.environmentsMcpToolsCreate() */ environmentsMcpToolsCreate: () => Promise<{ [key: string]: unknown }>; /** * Search PostHog documentation * Tags: docs, mcp_tools * Access as: posthog.environmentsDocsSearch() */ environmentsDocsSearch: () => Promise<{ content: string }>; /** * * Tags: messaging_templates * Access as: posthog.environmentsMessagingTemplatesList() */ environmentsMessagingTemplatesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean })[] }>; /** * * Tags: messaging_templates * Access as: posthog.environmentsMessagingTemplatesCreate() */ environmentsMessagingTemplatesCreate: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * * Tags: messaging_templates * Access as: posthog.environmentsMessagingTemplatesRetrieve() */ environmentsMessagingTemplatesRetrieve: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * * Tags: messaging_templates * Access as: posthog.environmentsMessagingTemplatesUpdate() */ environmentsMessagingTemplatesUpdate: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * * Tags: messaging_templates * Access as: posthog.environmentsMessagingTemplatesPartialUpdate() */ environmentsMessagingTemplatesPartialUpdate: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: messaging_templates * Access as: posthog.environmentsMessagingTemplatesDestroy() */ environmentsMessagingTemplatesDestroy: () => Promise; /** * * Tags: messaging_templates * Access as: posthog.environmentsMessagingTemplatesDesignPartialUpdate() */ environmentsMessagingTemplatesDesignPartialUpdate: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * Observed values for one metric attribute key, most frequent first. Backs the filter bar's value autocomplete. * Tags: metrics, metrics * Access as: posthog.environmentsMetricsAttributeValuesRetrieve() */ environmentsMetricsAttributeValuesRetrieve: () => Promise<{ results: ({ id: string; name: string; count: number })[] }>; /** * Distinct attribute keys seen on the team's metrics (datapoint and resource attributes merged), most frequent first. Backs the filter bar's key autocomplete. * Tags: metrics, metrics * Access as: posthog.environmentsMetricsAttributesRetrieve() */ environmentsMetricsAttributesRetrieve: () => Promise<{ results: ({ name: string })[]; count: number }>; /** * Characterize a metric anomaly: compare an anomaly window against a baseline, find the onset, and rank which label values moved. * Tags: metrics, metrics * Access as: posthog.environmentsMetricsCharacterizeCreate() */ environmentsMetricsCharacterizeCreate: () => Promise<{ metric_name: string; aggregation: string; interval: string; baseline_from: string; baseline_to: string; anomaly_from: string; anomaly_to: string; baseline_mean: number; baseline_stddev: number; anomaly_mean: number; anomaly_peak: number; change_ratio: number; direction: "up" | "down" | "flat"; onset_time: string | null; top_movers: ({ key: string; label: string; baseline_value: number; anomaly_value: number; change_ratio: number })[]; series: { labels: { [key: string]: string | undefined }; points: ({ time: string; value: number | null })[]; metric_name?: string | null; clause?: string | null } }>; /** * * Tags: metrics, metrics * Access as: posthog.environmentsMetricsHasMetricsRetrieve() */ environmentsMetricsHasMetricsRetrieve: () => Promise<{ hasMetrics: boolean }>; /** * * Tags: metrics, metrics * Access as: posthog.environmentsMetricsQueryCreate() */ environmentsMetricsQueryCreate: () => Promise<{ results: ({ labels: { [key: string]: string | undefined }; points: ({ time: string; value: number | null })[]; metric_name?: string | null; clause?: string | null })[] }>; /** * Raw individual emissions for a metric (the events model), newest first — backs the Samples view and the metric->trace pivot. * Tags: metrics, metrics * Access as: posthog.environmentsMetricsSamplesCreate() */ environmentsMetricsSamplesCreate: () => Promise<{ results: ({ timestamp: string; metric_name: string; metric_type: string; value: number; count: number; unit: string; aggregation_temporality: string; is_monotonic: boolean; service_name: string; trace_id: string; span_id: string; attributes: { [key: string]: string | undefined }; resource_attributes: { [key: string]: string | undefined } })[] }>; /** * Distinct metric names for the team. Backs the picker UI. * Tags: metrics, metrics * Access as: posthog.environmentsMetricsValuesRetrieve() */ environmentsMetricsValuesRetrieve: () => Promise<{ results: ({ name: string; metric_type: string })[] }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsList() */ environmentsPersonsList: () => Promise<{ next?: string | null; previous?: string | null; count?: number; results?: ({ id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null })[] }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsRetrieve() */ environmentsPersonsRetrieve: () => Promise<{ id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }>; /** * Only for setting properties on the person. "properties" from the request data will be updated via a "$set" event. This means that only the properties listed will be updated, but other properties won't be removed nor updated. If you would like to remove a property use the `delete_property` endpoint. * Tags: persons * Access as: posthog.environmentsPersonsUpdate() */ environmentsPersonsUpdate: () => Promise<{ id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsPartialUpdate() */ environmentsPersonsPartialUpdate: () => Promise<{ id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsActivityRetrieve() */ environmentsPersonsActivityRetrieve: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsDeletePropertyCreate() */ environmentsPersonsDeletePropertyCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsEmailsList() */ environmentsPersonsEmailsList: () => Promise<({ invocation_id: string; action_id: string; function_id: string; function_name: string; parent_run_id: string; kind: string; distinct_id: string; person_id: string; recipient: string; subject: string; status: string; sent_at: string })[]>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsPropertiesTimelineRetrieve() */ environmentsPersonsPropertiesTimelineRetrieve: () => Promise; /** * Split distinct_ids off a merged person. Two mutually exclusive modes: - **`distinct_ids_to_split`** (recommended for surgical edits): moves only the listed distinct_ids off this person onto new single-id persons. The original person keeps every other distinct_id and its properties. - **`main_distinct_id`**: keeps only the specified distinct_id on this person; moves every *other* distinct_id off onto its own new person. If omitted, the first distinct_id is kept. The original person always retains its properties. To clear individual properties afterward, use the `delete_property` endpoint. The split runs asynchronously: a 201 response means the task was enqueued. Newly-created split-off persons get a deterministic UUID derived from `(team_id, distinct_id)`, so they can be located client-side without polling. If you need to delete a split-off person after this call, prefer looking it up by that deterministic UUID rather than by distinct_id, since the latter still resolves to the original merged person until the async task completes. * Tags: persons * Access as: posthog.environmentsPersonsSplitCreate() */ environmentsPersonsSplitCreate: () => Promise<{ success: boolean }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsUpdatePropertyCreate() */ environmentsPersonsUpdatePropertyCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsAllActivityRetrieve() */ environmentsPersonsAllActivityRetrieve: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsBatchByDistinctIdsCreate() */ environmentsPersonsBatchByDistinctIdsCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsBatchByUuidsCreate() */ environmentsPersonsBatchByUuidsCreate: () => Promise; /** * This endpoint allows you to bulk delete persons, either by the PostHog person IDs or by distinct IDs. You can pass in a maximum of 1000 IDs per call. Only events captured before the request will be deleted. * Tags: persons * Access as: posthog.environmentsPersonsBulkDeleteCreate() */ environmentsPersonsBulkDeleteCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsCohortsRetrieve() */ environmentsPersonsCohortsRetrieve: () => Promise; /** * List the status of queued event deletions for persons. When you delete a person with `delete_events=true`, an async deletion is queued. Use this endpoint to check whether those deletions are still pending or have been completed. * Tags: persons * Access as: posthog.environmentsPersonsDeletionStatusList() */ environmentsPersonsDeletionStatusList: () => Promise<{ next?: string | null; previous?: string | null; count?: number; results?: ({ person_uuid: string; created_at: string; status: string; delete_verified_at: string | null })[] }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsFunnelRetrieve() */ environmentsPersonsFunnelRetrieve: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsFunnelCreate() */ environmentsPersonsFunnelCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsLifecycleRetrieve() */ environmentsPersonsLifecycleRetrieve: () => Promise; /** * Get person properties as they existed at a specific point in time. This endpoint reconstructs person properties by querying ClickHouse events for $set and $set_once operations up to the specified timestamp. Query parameters: - distinct_id: The distinct_id of the person - timestamp: ISO datetime string for the point in time (e.g., "2023-06-15T14:30:00Z") - include_set_once: Whether to handle $set_once operations (default: false) * Tags: persons, persons * Access as: posthog.environmentsPersonsPropertiesAtTimeRetrieve() */ environmentsPersonsPropertiesAtTimeRetrieve: () => Promise<{ id: number; name: string; distinct_ids: (string)[]; properties: { [key: string]: string | null | undefined }; created_at: string; uuid: string; last_seen_at: string | null; point_in_time_metadata: { queried_timestamp: string; include_set_once: boolean; distinct_id_used: string | null; person_id_used: string | null; query_mode: string; distinct_ids_queried: (string)[]; distinct_ids_count: number } }>; /** * Reset a distinct_id for a deleted person. This allows the distinct_id to be used again. * Tags: persons * Access as: posthog.environmentsPersonsResetPersonDistinctIdCreate() */ environmentsPersonsResetPersonDistinctIdCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsTrendsRetrieve() */ environmentsPersonsTrendsRetrieve: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.environmentsPersonsValuesRetrieve() */ environmentsPersonsValuesRetrieve: () => Promise; /** * * Tags: plugin_configs * Access as: posthog.environmentsPluginConfigsLogsList() */ environmentsPluginConfigsLogsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; team_id: number; plugin_id: number; plugin_config_id: number; timestamp: string; source: "SYSTEM" | "PLUGIN" | "CONSOLE"; type: "DEBUG" | "LOG" | "INFO" | "WARN" | "ERROR"; message: string; instance_id: string })[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.environmentsProjectSecretApiKeysList() */ environmentsProjectSecretApiKeysList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] })[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.environmentsProjectSecretApiKeysCreate() */ environmentsProjectSecretApiKeysCreate: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.environmentsProjectSecretApiKeysRetrieve() */ environmentsProjectSecretApiKeysRetrieve: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.environmentsProjectSecretApiKeysUpdate() */ environmentsProjectSecretApiKeysUpdate: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.environmentsProjectSecretApiKeysPartialUpdate() */ environmentsProjectSecretApiKeysPartialUpdate: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.environmentsProjectSecretApiKeysDestroy() */ environmentsProjectSecretApiKeysDestroy: () => Promise; /** * Roll a project secret API key * Tags: project_secret_api_keys * Access as: posthog.environmentsProjectSecretApiKeysRollCreate() */ environmentsProjectSecretApiKeysRollCreate: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * Get all property access control rules for a property definition. * Tags: property_access_controls * Access as: posthog.environmentsPropertyAccessControlsRetrieve() */ environmentsPropertyAccessControlsRetrieve: () => Promise<{ access_controls: ({ id: string; access_level: "read_write" | "read" | "none"; organization_member: string | null; role: string | null; created_by: number | null; created_at: string; updated_at: string })[]; available_access_levels: (string)[]; default_access_level: string }>; /** * Create or update a property access control rule. * Tags: property_access_controls * Access as: posthog.environmentsPropertyAccessControlsCreate() */ environmentsPropertyAccessControlsCreate: () => Promise<{ id: string; access_level: "read_write" | "read" | "none"; organization_member: string | null; role: string | null; created_by: number | null; created_at: string; updated_at: string }>; /** * Delete a property access control rule. The rule is identified by `property_definition_id` plus an optional `organization_member` or `role` query parameter. Omitting both targets deletes the default rule. * Tags: property_access_controls * Access as: posthog.environmentsPropertyAccessControlsDestroy() */ environmentsPropertyAccessControlsDestroy: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: query * Access as: posthog.environmentsQueryCreate() */ environmentsQueryCreate: () => Promise<{ [key: string]: unknown }>; /** * (Experimental) * Tags: query * Access as: posthog.environmentsQueryRetrieve() */ environmentsQueryRetrieve: () => Promise<{ query_status: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } }>; /** * (Experimental) * Tags: query * Access as: posthog.environmentsQueryDestroy() */ environmentsQueryDestroy: () => Promise; /** * Get query log details from query_log_archive table for a specific query_id, the query must have been issued in last 24 hours. * Tags: query * Access as: posthog.environmentsQueryLogRetrieve() */ environmentsQueryLogRetrieve: () => Promise<{ [key: string]: unknown }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: query * Access as: posthog.environmentsQueryCreateWithKind() */ environmentsQueryCreateWithKind: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: query * Access as: posthog.environmentsQueryCheckAuthForAsyncCreate() */ environmentsQueryCheckAuthForAsyncCreate: () => Promise<{ [key: string]: unknown }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: query * Access as: posthog.environmentsQueryDraftSqlRetrieve() */ environmentsQueryDraftSqlRetrieve: () => Promise<{ [key: string]: unknown }>; /** * Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version. * Tags: query * Access as: posthog.environmentsQueryUpgradeCreate() */ environmentsQueryUpgradeCreate: () => Promise<{ query: { custom_name?: string | null; event?: string | null; fixedProperties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null } | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null } | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null } | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: ({ type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ((unknown)[])[]; timings?: ({ k: string; t: number })[] | null; types: (string)[]; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: ({ k: string; t: number })[] | null; types?: (string)[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; series?: number | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | unknown)[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value" | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | unknown | { kind?: string; response?: { breakdown?: ({ label: string; value: string | number })[] | null; breakdowns?: ({ values: ({ label: string; value: string | number })[] })[] | null; compare?: ({ label: string; value: string })[] | null; day?: ({ label: string; value: string | string | number })[] | null; interval?: ({ label: string; value: number })[] | null; series?: ({ label: string; value: number })[] | null; status?: ({ label: string; value: string })[] | null; warnings?: (unknown)[] | null } | null; source: unknown | unknown | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: unknown; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: unknown | unknown | unknown | unknown; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: unknown | null; breakdown_results?: ({ baseline: unknown; breakdown_value: (string | number | number)[]; variants: (unknown)[] | (unknown)[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: unknown | unknown | unknown | unknown | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value" | null; significant?: boolean | null; stats_version?: number | null; variant_results?: (unknown)[] | (unknown)[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null }; version?: number | null } | { after?: string | null; before?: string | null; kind?: string; modifiers?: unknown | null; personId?: string | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ events: ({ distinct_id: string; elements: ({ attr_class?: (string)[] | null; attr_id?: string | null; attributes: { [key: string]: string | undefined }; href?: string | null; nth_child?: number | null; nth_of_type?: number | null; order?: number | null; tag_name: string; text?: string | null })[]; elements_chain?: string | null; event: string; id: string; person?: { distinct_ids: (string)[]; is_identified?: boolean | null; properties: { [key: string]: unknown } } | null; person_id?: string | null; person_mode?: string | null; properties: { [key: string]: unknown }; timestamp: string; uuid?: string | null })[]; recording_duration_s?: number | null; sessionId?: string | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | { connectionId?: string | null; debug?: boolean | null; filters?: unknown | null; globals?: { [key: string]: unknown } | null; kind?: string; language: "hog" | "hogJson" | "hogQL" | "hogQLExpr" | "hogTemplate" | "liquid"; modifiers?: unknown | null; query: string; response?: unknown | null; sourceQuery?: unknown | unknown | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: unknown | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: unknown | null; search?: string | null; select?: (string)[] | null; source?: unknown | unknown | unknown | unknown | unknown | unknown | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | unknown | { kind?: string; response?: { breakdown?: (unknown)[] | null; breakdowns?: ({ values: (unknown)[] })[] | null; compare?: ({ label: string; value: string })[] | null; day?: ({ label: string; value: string | string | number })[] | null; interval?: ({ label: string; value: number })[] | null; series?: ({ label: string; value: number })[] | null; status?: ({ label: string; value: string })[] | null; warnings?: (unknown)[] | null } | null; source: unknown | unknown | unknown | unknown | unknown; version?: number | null } | { after?: string | null; before?: string | null; kind?: string; modifiers?: unknown | null; personId?: string | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ events: ({ distinct_id: string; elements: ({ attr_class?: (string)[] | null; attr_id?: string | null; attributes: { [key: string]: string | undefined }; href?: string | null; nth_child?: number | null; nth_of_type?: number | null; order?: number | null; tag_name: string; text?: string | null })[]; elements_chain?: string | null; event: string; id: string; person?: { distinct_ids: (string)[]; is_identified?: boolean | null; properties: { [key: string]: unknown } } | null; person_id?: string | null; person_mode?: string | null; properties: { [key: string]: unknown }; timestamp: string; uuid?: string | null })[]; recording_duration_s?: number | null; sessionId?: string | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | unknown | { connectionId?: string | null; debug?: boolean | null; filters?: unknown | null; globals?: { [key: string]: unknown } | null; kind?: string; language: "hog" | "hogJson" | "hogQL" | "hogQLExpr" | "hogTemplate" | "liquid"; modifiers?: unknown | null; query: string; response?: unknown | null; sourceQuery?: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { connectionId?: string | null; endPosition: number; filters?: unknown | null; globals?: { [key: string]: unknown } | null; kind?: string; language: unknown; modifiers?: unknown | null; query: string; response?: { incomplete_list: boolean; suggestions: ({ detail?: string | null; documentation?: string | null; insertText: string; kind: "Method" | "Function" | "Constructor" | "Field" | "Variable" | "Class" | "Struct" | "Interface" | "Module" | "Property" | "Event" | "Operator" | "Unit" | "Value" | "Constant" | "Enum" | "EnumMember" | "Keyword" | "Text" | "Color" | "File" | "Reference" | "Customcolor" | "Folder" | "TypeParameter" | "User" | "Issue" | "Snippet"; label: string })[]; timings?: (unknown)[] | null } | null; sourceQuery?: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; drillDownLevel?: unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: unknown | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | unknown)[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: unknown | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ url: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; searchTerm?: string | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { dateRange: unknown; kind?: string; properties: (unknown | unknown | unknown | unknown)[]; response?: { data: { [key: string]: unknown }; error?: { code: "platform_access_required" | "query_execution_failed"; detail: string } | null; status: "success" | "error" } | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ current_value: number; dimension_type: string; dimension_value: string; impact_score: number; metric: string; percent_change: number; previous_value: number })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { assignee?: { id: string | number; type: "user" | "role" } | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { dateRange?: unknown | null; issueId: string; kind?: string; limit?: number | null; maxDistance?: number | null; modelName?: "text-embedding-3-small-1536" | "text-embedding-3-large-3072" | null; modifiers?: unknown | null; offset?: number | null; rendering?: string | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ description: string; distance: number; first_seen: string; id: string; library?: string | null; name: string; status: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownProperties: (string)[]; dateRange?: unknown | null; filterTestAccounts?: boolean | null; issueId: string; kind?: string; maxValuesPerProperty?: number | null; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { total_count: number; values: ({ count: number; value: string })[] } | undefined }; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { after?: string | null; customColumns?: (string)[] | null; dateRange: unknown; excludeAttributes?: boolean | null; filterGroup: unknown; kind?: string; limit?: number | null; liveLogsCheckpoint?: string | null; modifiers?: unknown | null; offset?: number | null; orderBy?: "latest" | "earliest" | null; resourceFingerprint?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; serviceNames: (string)[]; severityLevels: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; sparklineBreakdownBy?: "severity" | "service" | null; tags?: unknown | null; version?: number | null } | { attributeType: string; dateRange?: unknown | null; filterGroup?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { count: number; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ matchedOn: "key" | "value"; matchedValue?: string | null; name: string; propertyFilterType: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; searchValues?: boolean | null; serviceNames?: (string)[] | null; severityLevels?: (unknown)[] | null; tags?: unknown | null; version?: number | null } | { attributeKey: string; attributeType: string; dateRange?: unknown | null; filterGroup?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ count?: number | null; id: string; name: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; serviceNames?: (string)[] | null; severityLevels?: (unknown)[] | null; tags?: unknown | null; version?: number | null } | { clauses: ({ aggregation: "sum" | "avg" | "count" | "min" | "max" | "quantile" | "rate" | "increase" | "histogram_quantile"; filters?: ({ key: string; op: "eq" | "neq" | "regex" | "not_regex"; scope?: "resource" | "attribute" | "auto" | null; value: string })[] | null; groupBy?: ({ key: string; scope?: unknown | null })[] | null; metricName: string; metricType?: "gauge" | "sum" | "histogram" | "exponential_histogram" | "summary" | null; name: string; quantile?: number | null })[]; dateRange?: unknown | null; formula?: string | null; interval?: string | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ clause?: string | null; labels: { [key: string]: string | undefined }; metricName?: string | null; points: ({ time: string; value: number })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { after?: string | null; dateRange: unknown; excludeAttributes?: boolean | null; filterGroup?: unknown | null; flatSpans?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: "timestamp" | "duration" | null; orderDirection?: unknown | null; prefetchSpans?: number | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; rootSpans?: boolean | null; serviceNames?: (string)[] | null; statusCodes?: (number)[] | null; tags?: unknown | null; traceId?: string | null; version?: number | null } | { compareFilter?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { compare?: ({ avg_duration_nano: number; count: number; error_count: number; name: string; p50_duration_nano: number; p95_duration_nano: number; p999_duration_nano: number; p99_duration_nano: number; service_name: string; total_duration_nano: number })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { compare?: ({ avg_duration_nano: number; avg_start_offset_nano: number; calls_per_parent_invocation?: number | null; count: number; error_count: number; name: string; p50_duration_nano: number; p95_duration_nano: number; p999_duration_nano: number; p99_duration_nano: number; parent_name: string; parent_service: string; service_name: string; total_duration_nano: number })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceName: string; serviceNames?: (string)[] | null; spanName: string; tags?: unknown | null; version?: number | null } | { breakdownKey: string; breakdownType: "span" | "span_attribute" | "span_resource_attribute"; compareFilter?: unknown | null; dateRange: unknown; excludeBreakdownFilter?: boolean | null; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: "count" | "error_count" | null; response?: { compare?: ({ count: number; error_count: number; p50_duration_nano: number; p95_duration_nano: number; value: string })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { aggregation_group_type_index?: number | null; calendarHeatmapFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { allAggregations: number; columnAggregations: ({ column: number; value: number })[]; data: ({ column: number; row: number; value: number })[]; rowAggregations: ({ row: number; value: number })[] }; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; tags?: unknown | null; version?: number | null } | { actions?: ({ [key: string]: unknown })[] | null; after?: string | null; comment_text?: unknown | null; console_log_filters?: (unknown)[] | null; date_from?: string | null; date_to?: string | null; distinct_ids?: (string)[] | null; events?: ({ [key: string]: unknown })[] | null; filter_test_accounts?: boolean | null; having_predicates?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; hide_viewed_recordings?: "current-user" | "any-user" | null | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; operand?: unknown | null; order?: "duration" | "recording_duration" | "inactive_seconds" | "active_seconds" | "start_time" | "console_error_count" | "click_count" | "keypress_count" | "mouse_activity_count" | "activity_score" | "recording_ttl" | "surfacing_score" | null; order_direction?: "ASC" | "DESC" | null; person_uuid?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { error?: string | null; has_next: boolean; hogql?: string | null; modifiers?: unknown | null; next_cursor?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ active_seconds?: number | null; activity_score?: number | null; click_count?: number | null; console_error_count?: number | null; console_log_count?: number | null; console_warn_count?: number | null; distinct_id?: string | null; email?: string | null; end_time: string; expiry_time?: string | null; external_references?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: unknown }; issue_id: string; metadata?: { [key: string]: string | undefined } | null; title: string })[] | null; has_summary?: boolean | null; id: string; inactive_seconds?: number | null; keypress_count?: number | null; matches_filters?: boolean | null; matching_events?: ({ events: ({ timestamp: string; uuid: string })[]; session_id?: string | null })[] | null; mouse_activity_count?: number | null; ongoing?: boolean | null; person?: { created_at?: string | null; distinct_ids: (string)[]; id?: string | null; is_identified?: boolean | null; last_seen_at?: string | null; name?: string | null; properties: { [key: string]: unknown }; uuid?: string | null } | null; recording_duration: number; recording_ttl?: number | null; retention_period_days?: number | null; snapshot_library?: string | null; snapshot_source: "web" | "mobile" | "unknown"; start_time: string; start_url?: string | null; summary?: string | null; summary_outcome?: { description?: string | null; success?: boolean | null } | null; viewed: boolean; viewers: (string)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; session_ids?: (string)[] | null; session_recording_id?: string | null; tags?: unknown | null; user_modified_filters?: { [key: string]: unknown } | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { newerTimestamp?: string | null; newerTraceId?: string | null; olderTimestamp?: string | null; olderTraceId?: string | null; timings?: (unknown)[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; timestamp: string; traceId: string; version?: number | null } | { embedding: (number)[]; embeddingVersion?: number | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ distance: number; id: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { group_key?: string | null; group_type_index?: number | null; kind?: string; modifiers?: unknown | null; person_id?: string | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ change_from_previous_pct?: number | null; display: "number" | "sparkline"; format: "numeric" | "currency"; id: string; interval: number; name: string; previous: number; timeseries?: (number)[] | null; timeseries_labels?: (string)[] | null; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; key: "total_requests" | "total_bytes_read" | "total_cpu_seconds" | "avg_query_duration_ms" | "p95_query_duration_ms" | "error_rate" | "materialized_requests" | "inline_requests"; previous?: number | null; value?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: unknown | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownBy?: unknown | null; compareFilter?: unknown | null; dateRange?: unknown | null; endpointNames?: (string)[] | null; interval?: unknown | null; kind?: string; materializationType?: unknown | null; metric: "bytes_read" | "cpu_seconds" | "requests" | "query_duration" | "error_rate"; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ error_rate_pct: number; errors: number; harness: string; sessions: number; total_calls: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName?: string | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; distinct_id: string; error_rate_pct: number; errors: number; harnesses: (string)[]; last_seen: string; person_properties: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ harnesses: (string)[]; last_seen: string; message: string; occurrences: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; conversations: number; errors: number; p50_ms?: number | null; p95_ms?: number | null; users: number; with_intent: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; day: string; errors: number; p50: number; p95: number; sessions: number; users: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ description: string; last_seen: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ harness: string; intent: string; intent_source: string; timestamp: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; neighborDirection: "before" | "after"; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ co_occurrences: number; neighbor_tool: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | null; startPosition: number; tags?: unknown | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | null; tags?: unknown | null; variables?: { [key: string]: unknown | undefined } | null; version?: number | null } | { connectionId?: string | null; endPosition: number; filters?: unknown | null; globals?: { [key: string]: unknown } | null; kind?: string; language: unknown; modifiers?: unknown | null; query: string; response?: { incomplete_list: boolean; suggestions: ({ detail?: string | null; documentation?: string | null; insertText: string; kind: "Method" | "Function" | "Constructor" | "Field" | "Variable" | "Class" | "Struct" | "Interface" | "Module" | "Property" | "Event" | "Operator" | "Unit" | "Value" | "Constant" | "Enum" | "EnumMember" | "Keyword" | "Text" | "Color" | "File" | "Reference" | "Customcolor" | "Folder" | "TypeParameter" | "User" | "Issue" | "Snippet"; label: string })[]; timings?: (unknown)[] | null } | null; sourceQuery?: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; drillDownLevel?: unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: unknown | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | unknown)[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: unknown | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ url: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; searchTerm?: string | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { dateRange: unknown; kind?: string; properties: (unknown | unknown | unknown | unknown)[]; response?: { data: { [key: string]: unknown }; error?: { code: "platform_access_required" | "query_execution_failed"; detail: string } | null; status: "success" | "error" } | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ current_value: number; dimension_type: string; dimension_value: string; impact_score: number; metric: string; percent_change: number; previous_value: number })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { assignee?: { id: string | number; type: "user" | "role" } | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { dateRange?: unknown | null; issueId: string; kind?: string; limit?: number | null; maxDistance?: number | null; modelName?: "text-embedding-3-small-1536" | "text-embedding-3-large-3072" | null; modifiers?: unknown | null; offset?: number | null; rendering?: string | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ description: string; distance: number; first_seen: string; id: string; library?: string | null; name: string; status: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownProperties: (string)[]; dateRange?: unknown | null; filterTestAccounts?: boolean | null; issueId: string; kind?: string; maxValuesPerProperty?: number | null; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { total_count: number; values: ({ count: number; value: string })[] } | undefined }; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { after?: string | null; customColumns?: (string)[] | null; dateRange: unknown; excludeAttributes?: boolean | null; filterGroup: unknown; kind?: string; limit?: number | null; liveLogsCheckpoint?: string | null; modifiers?: unknown | null; offset?: number | null; orderBy?: "latest" | "earliest" | null; resourceFingerprint?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; serviceNames: (string)[]; severityLevels: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; sparklineBreakdownBy?: "severity" | "service" | null; tags?: unknown | null; version?: number | null } | { attributeType: string; dateRange?: unknown | null; filterGroup?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { count: number; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ matchedOn: "key" | "value"; matchedValue?: string | null; name: string; propertyFilterType: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; searchValues?: boolean | null; serviceNames?: (string)[] | null; severityLevels?: (unknown)[] | null; tags?: unknown | null; version?: number | null } | { attributeKey: string; attributeType: string; dateRange?: unknown | null; filterGroup?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ count?: number | null; id: string; name: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; serviceNames?: (string)[] | null; severityLevels?: (unknown)[] | null; tags?: unknown | null; version?: number | null } | { clauses: ({ aggregation: "sum" | "avg" | "count" | "min" | "max" | "quantile" | "rate" | "increase" | "histogram_quantile"; filters?: ({ key: string; op: "eq" | "neq" | "regex" | "not_regex"; scope?: "resource" | "attribute" | "auto" | null; value: string })[] | null; groupBy?: ({ key: string; scope?: unknown | null })[] | null; metricName: string; metricType?: "gauge" | "sum" | "histogram" | "exponential_histogram" | "summary" | null; name: string; quantile?: number | null })[]; dateRange?: unknown | null; formula?: string | null; interval?: string | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ clause?: string | null; labels: { [key: string]: string | undefined }; metricName?: string | null; points: ({ time: string; value: number })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { after?: string | null; dateRange: unknown; excludeAttributes?: boolean | null; filterGroup?: unknown | null; flatSpans?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: "timestamp" | "duration" | null; orderDirection?: unknown | null; prefetchSpans?: number | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; rootSpans?: boolean | null; serviceNames?: (string)[] | null; statusCodes?: (number)[] | null; tags?: unknown | null; traceId?: string | null; version?: number | null } | { compareFilter?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { compare?: ({ avg_duration_nano: number; count: number; error_count: number; name: string; p50_duration_nano: number; p95_duration_nano: number; p999_duration_nano: number; p99_duration_nano: number; service_name: string; total_duration_nano: number })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { compare?: ({ avg_duration_nano: number; avg_start_offset_nano: number; calls_per_parent_invocation?: number | null; count: number; error_count: number; name: string; p50_duration_nano: number; p95_duration_nano: number; p999_duration_nano: number; p99_duration_nano: number; parent_name: string; parent_service: string; service_name: string; total_duration_nano: number })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceName: string; serviceNames?: (string)[] | null; spanName: string; tags?: unknown | null; version?: number | null } | { breakdownKey: string; breakdownType: "span" | "span_attribute" | "span_resource_attribute"; compareFilter?: unknown | null; dateRange: unknown; excludeBreakdownFilter?: boolean | null; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: "count" | "error_count" | null; response?: { compare?: ({ count: number; error_count: number; p50_duration_nano: number; p95_duration_nano: number; value: string })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { aggregation_group_type_index?: number | null; calendarHeatmapFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { allAggregations: number; columnAggregations: ({ column: number; value: number })[]; data: ({ column: number; row: number; value: number })[]; rowAggregations: ({ row: number; value: number })[] }; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; tags?: unknown | null; version?: number | null } | { actions?: ({ [key: string]: unknown })[] | null; after?: string | null; comment_text?: unknown | null; console_log_filters?: (unknown)[] | null; date_from?: string | null; date_to?: string | null; distinct_ids?: (string)[] | null; events?: ({ [key: string]: unknown })[] | null; filter_test_accounts?: boolean | null; having_predicates?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; hide_viewed_recordings?: "current-user" | "any-user" | null | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; operand?: unknown | null; order?: "duration" | "recording_duration" | "inactive_seconds" | "active_seconds" | "start_time" | "console_error_count" | "click_count" | "keypress_count" | "mouse_activity_count" | "activity_score" | "recording_ttl" | "surfacing_score" | null; order_direction?: "ASC" | "DESC" | null; person_uuid?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { error?: string | null; has_next: boolean; hogql?: string | null; modifiers?: unknown | null; next_cursor?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ active_seconds?: number | null; activity_score?: number | null; click_count?: number | null; console_error_count?: number | null; console_log_count?: number | null; console_warn_count?: number | null; distinct_id?: string | null; email?: string | null; end_time: string; expiry_time?: string | null; external_references?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: unknown }; issue_id: string; metadata?: { [key: string]: string | undefined } | null; title: string })[] | null; has_summary?: boolean | null; id: string; inactive_seconds?: number | null; keypress_count?: number | null; matches_filters?: boolean | null; matching_events?: ({ events: ({ timestamp: string; uuid: string })[]; session_id?: string | null })[] | null; mouse_activity_count?: number | null; ongoing?: boolean | null; person?: { created_at?: string | null; distinct_ids: (string)[]; id?: string | null; is_identified?: boolean | null; last_seen_at?: string | null; name?: string | null; properties: { [key: string]: unknown }; uuid?: string | null } | null; recording_duration: number; recording_ttl?: number | null; retention_period_days?: number | null; snapshot_library?: string | null; snapshot_source: "web" | "mobile" | "unknown"; start_time: string; start_url?: string | null; summary?: string | null; summary_outcome?: { description?: string | null; success?: boolean | null } | null; viewed: boolean; viewers: (string)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; session_ids?: (string)[] | null; session_recording_id?: string | null; tags?: unknown | null; user_modified_filters?: { [key: string]: unknown } | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { newerTimestamp?: string | null; newerTraceId?: string | null; olderTimestamp?: string | null; olderTraceId?: string | null; timings?: (unknown)[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; timestamp: string; traceId: string; version?: number | null } | { embedding: (number)[]; embeddingVersion?: number | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ distance: number; id: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { group_key?: string | null; group_type_index?: number | null; kind?: string; modifiers?: unknown | null; person_id?: string | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ change_from_previous_pct?: number | null; display: "number" | "sparkline"; format: "numeric" | "currency"; id: string; interval: number; name: string; previous: number; timeseries?: (number)[] | null; timeseries_labels?: (string)[] | null; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; key: "total_requests" | "total_bytes_read" | "total_cpu_seconds" | "avg_query_duration_ms" | "p95_query_duration_ms" | "error_rate" | "materialized_requests" | "inline_requests"; previous?: number | null; value?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: unknown | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownBy?: unknown | null; compareFilter?: unknown | null; dateRange?: unknown | null; endpointNames?: (string)[] | null; interval?: unknown | null; kind?: string; materializationType?: unknown | null; metric: "bytes_read" | "cpu_seconds" | "requests" | "query_duration" | "error_rate"; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ error_rate_pct: number; errors: number; harness: string; sessions: number; total_calls: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName?: string | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; distinct_id: string; error_rate_pct: number; errors: number; harnesses: (string)[]; last_seen: string; person_properties: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ harnesses: (string)[]; last_seen: string; message: string; occurrences: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; conversations: number; errors: number; p50_ms?: number | null; p95_ms?: number | null; users: number; with_intent: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; day: string; errors: number; p50: number; p95: number; sessions: number; users: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ description: string; last_seen: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ harness: string; intent: string; intent_source: string; timestamp: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; neighborDirection: "before" | "after"; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ co_occurrences: number; neighbor_tool: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | null; startPosition: number; tags?: unknown | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | null; tags?: unknown | null; variables?: { [key: string]: unknown | undefined } | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { end_date?: string | null; experiment_id?: number | null; experiment_name: string; exposure_criteria?: { exposure_config?: unknown | unknown | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: unknown | null } | null; feature_flag: { [key: string]: unknown }; holdout?: { created_at?: string | null; created_by?: { distinct_id: string; email: string; first_name: string; hedgehog_config?: { accessories?: ("beret" | "cap" | "chef" | "cowboy" | "eyepatch" | "flag" | "glasses" | "graduation" | "parrot" | "party" | "pineapple" | "sunglasses" | "tophat" | "xmas-hat" | "xmas-antlers" | "xmas-scarf")[] | null; color?: "green" | "red" | "blue" | "purple" | "dark" | "light" | "greyscale" | "sepia" | "invert" | "rainbow" | null; skin?: "default" | "spiderhog" | "robohog" | "hogzilla" | "ghost" | null; use_as_profile: boolean } | null; id: number; is_email_verified?: unknown; last_name?: string | null; role_at_organization?: string | null; uuid: string } | null; description?: string | null; filters: ({ aggregation_group_type_index?: number | null; description?: string | null; exposure_frozen?: boolean | null; exposure_frozen_cohort?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; rollout_percentage?: number | null; sort_key?: string | null; users_affected?: number | null; variant?: string | null })[]; id: number; name: string; updated_at?: string | null; user_access_level?: "none" | "member" | "admin" | "viewer" | "editor" | "manager" | null } | null; kind?: string; modifiers?: unknown | null; response?: { bias_risk?: { multiple_variant_percentage: number } | null; date_range: unknown; kind?: string; sample_ratio_mismatch?: { expected: { [key: string]: number | undefined }; p_value: number } | null; timeseries: ({ days: (string)[]; exposure_counts: (number)[]; variant: string })[]; total_exposures: { [key: string]: number | undefined }; warnings?: (unknown)[] | null } | null; start_date?: string | null; tags?: unknown | null; version?: number | null } | { dateRange: unknown; distance_func: "L1Distance" | "L2Distance" | "cosineDistance"; document_types: (string)[]; kind?: string; limit?: number | null; model: string; modifiers?: unknown | null; offset?: number | null; order_by: "distance" | "timestamp"; order_direction: "asc" | "desc"; origin: { document_id: string; document_type: string; product: string; timestamp: string }; products: (string)[]; renderings: (string)[]; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ distance: number; origin?: { document_id: string; document_type: string; model_name: unknown; product: string; rendering: string; timestamp: string } | null; result: { document_id: string; document_type: string; model_name: unknown; product: string; rendering: string; timestamp: string } })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; threshold?: number | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; version?: number | null } | { allowSorting?: boolean | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; propertiesViaUrl?: boolean | null; shortId: string; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCorrelationTable?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showHogQLEditor?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResults?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTable?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { connectionId?: string | null; kind?: string; modifiers?: unknown | null; response?: { joins: ({ created_at?: string | null; created_by?: { distinct_id: string; email: string; first_name: string; hedgehog_config?: { accessories?: ("beret" | "cap" | "chef" | "cowboy" | "eyepatch" | "flag" | "glasses" | "graduation" | "parrot" | "party" | "pineapple" | "sunglasses" | "tophat" | "xmas-hat" | "xmas-antlers" | "xmas-scarf")[] | null; color?: "green" | "red" | "blue" | "purple" | "dark" | "light" | "greyscale" | "sepia" | "invert" | "rainbow" | null; skin?: "default" | "spiderhog" | "robohog" | "hogzilla" | "ghost" | null; use_as_profile: boolean } | null; id: number; is_email_verified?: unknown; last_name?: string | null; role_at_organization?: string | null; uuid: string } | null; field_name?: string | null; id: string; joining_table_key?: string | null; joining_table_name?: string | null; source_table_key?: string | null; source_table_name?: string | null })[]; tables: { [key: string]: { fields: { [key: string]: { chain?: (string | number)[] | null; fields?: (string)[] | null; hogql_value: string; id?: string | null; name: string; schema_valid: boolean; table?: string | null; type: "integer" | "float" | "decimal" | "string" | "datetime" | "date" | "boolean" | "array" | "json" | "lazy_table" | "virtual_table" | "field_traverser" | "expression" | "view" | "materialized_view" | "unknown" } | undefined }; id: string; name: string; row_count?: number | null; type?: string } | { fields: { [key: string]: { chain?: (string | number)[] | null; fields?: (string)[] | null; hogql_value: string; id?: string | null; name: string; schema_valid: boolean; table?: string | null; type: "integer" | "float" | "decimal" | "string" | "datetime" | "date" | "boolean" | "array" | "json" | "lazy_table" | "virtual_table" | "field_traverser" | "expression" | "view" | "materialized_view" | "unknown" } | undefined }; id: string; name: string; row_count?: number | null; type?: string } | { fields: { [key: string]: unknown | undefined }; format: string; id: string; name: string; row_count?: number | null; schema?: { id: string; incremental: boolean; last_synced_at?: string | null; name: string; should_sync: boolean; status?: string | null } | null; search_aliases?: (string)[] | null; source?: { access_method?: string | null; id: string; last_synced_at?: string | null; prefix: string; source_type: string; status: string } | null; type?: string; url_pattern: string } | { fields: { [key: string]: unknown | undefined }; id: string; name: string; query: unknown; row_count?: number | null; type?: string } | { fields: { [key: string]: unknown | undefined }; id: string; kind: "revenue_analytics_charge" | "revenue_analytics_customer" | "revenue_analytics_mrr" | "revenue_analytics_product" | "revenue_analytics_revenue_item" | "revenue_analytics_subscription"; name: string; query: unknown; row_count?: number | null; source_id?: string | null; type?: string } | { fields: { [key: string]: unknown | undefined }; id: string; name: string; row_count?: number | null; type?: string } | { fields: { [key: string]: unknown | undefined }; id: string; last_run_at?: string | null; name: string; query: unknown; row_count?: number | null; status?: string | null; type?: string } | { fields: { [key: string]: unknown | undefined }; id: string; name: string; query: unknown; row_count?: number | null; status?: string | null; type?: string } | undefined } } | null; tags?: unknown | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { kind?: string; modifiers?: unknown | null; response?: { questions: (string)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ count: number; event: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; event?: string | null; kind?: string; limit?: number | null; maxPropertyValues?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (string)[] | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ property: string; sample_count: number; sample_values: (string)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { groupTypeIndex?: number | null; kind?: string; maxPropertyValues?: number | null; modifiers?: unknown | null; properties: (string)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { sample_count: number; sample_values: (string | number | boolean | number)[] } | ({ sample_count: number; sample_values: (string | number | boolean | number)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { event_names?: (string)[] | null; is_column?: boolean | null; kind?: string; modifiers?: unknown | null; property_key: string; property_type: "event" | "person"; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ count?: number | null; name?: string | number | boolean | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search_value?: string | null; tags?: unknown | null; version?: number | null } }>; /** * List saved heatmaps for the project. A saved heatmap pins a page URL and a set of viewport widths, and (for type 'screenshot') renders the page so heatmap data can be overlaid on it. * Tags: saved * Access as: posthog.environmentsSavedList() */ environmentsSavedList: () => Promise<({ results: ({ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null })[]; count: number })[]>; /** * Create a saved heatmap for a page URL. For type 'screenshot' (the default) this enqueues a headless render of the page at each target width; poll the saved heatmap or its content endpoint until status is 'completed'. Provide 'widths' to control which viewport widths are rendered. * Tags: saved * Access as: posthog.environmentsSavedCreate() */ environmentsSavedCreate: () => Promise<{ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null }>; /** * Get a single saved heatmap by its short_id, including per-width render status. * Tags: saved * Access as: posthog.environmentsSavedRetrieve() */ environmentsSavedRetrieve: () => Promise<{ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null }>; /** * Update a saved heatmap (e.g. rename, change widths, or soft-delete via 'deleted'). Changing the URL of a 'screenshot' heatmap triggers a re-render. * Tags: saved * Access as: posthog.environmentsSavedPartialUpdate() */ environmentsSavedPartialUpdate: () => Promise<{ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: saved * Access as: posthog.environmentsSavedDestroy() */ environmentsSavedDestroy: () => Promise; /** * Re-run screenshot generation for a saved heatmap of type 'screenshot'. Clears existing renders and re-renders at every target width; status returns to 'processing'. * Tags: saved * Access as: posthog.environmentsSavedRegenerateCreate() */ environmentsSavedRegenerateCreate: () => Promise<{ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null }>; /** * Override list to include synthetic playlists. Synthetics have no DB row, so we compute each one's position in the merged sort and split the requested page between synthetics and a DB queryset slice. The merge/rank/sort is all in-memory, so each phase is wrapped in a span and the input sizes are recorded as span attributes — a slow response on a team with many playlists then shows up as a wide span against a large db_count. * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsList() */ environmentsSessionRecordingPlaylistsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string })[] }>; /** * * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsCreate() */ environmentsSessionRecordingPlaylistsCreate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string }>; /** * * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsRetrieve() */ environmentsSessionRecordingPlaylistsRetrieve: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string }>; /** * * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsUpdate() */ environmentsSessionRecordingPlaylistsUpdate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string }>; /** * * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsPartialUpdate() */ environmentsSessionRecordingPlaylistsPartialUpdate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsDestroy() */ environmentsSessionRecordingPlaylistsDestroy: () => Promise; /** * * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsRecordingsRetrieve() */ environmentsSessionRecordingPlaylistsRecordingsRetrieve: () => Promise; /** * * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsRecordingsCreate() */ environmentsSessionRecordingPlaylistsRecordingsCreate: () => Promise; /** * * Tags: replay, session_recording_playlists * Access as: posthog.environmentsSessionRecordingPlaylistsRecordingsDestroy() */ environmentsSessionRecordingPlaylistsRecordingsDestroy: () => Promise; /** * * Tags: replay, session_recordings * Access as: posthog.environmentsSessionRecordingsList() */ environmentsSessionRecordingsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; distinct_id: string | null; viewed: boolean; viewers: (string)[]; recording_duration: number; active_seconds: number | null; inactive_seconds: number | null; start_time: string | null; end_time: string | null; click_count: number | null; keypress_count: number | null; mouse_activity_count: number | null; console_log_count: number | null; console_warn_count: number | null; console_error_count: number | null; start_url: string | null; person?: { id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }; retention_period_days: number | null; expiry_time: string | null; recording_ttl: number | null; snapshot_source: string | null; snapshot_library: string | null; ongoing: boolean; activity_score: number | null; has_summary: boolean; summary_outcome: { description?: string | null; success?: boolean | null } | null; external_references: ({ [key: string]: unknown })[]; matches_filters: boolean })[] }>; /** * * Tags: replay, session_recordings * Access as: posthog.environmentsSessionRecordingsRetrieve() */ environmentsSessionRecordingsRetrieve: () => Promise<{ id: string; distinct_id: string | null; viewed: boolean; viewers: (string)[]; recording_duration: number; active_seconds: number | null; inactive_seconds: number | null; start_time: string | null; end_time: string | null; click_count: number | null; keypress_count: number | null; mouse_activity_count: number | null; console_log_count: number | null; console_warn_count: number | null; console_error_count: number | null; start_url: string | null; person?: { id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }; retention_period_days: number | null; expiry_time: string | null; recording_ttl: number | null; snapshot_source: string | null; snapshot_library: string | null; ongoing: boolean; activity_score: number | null; has_summary: boolean; summary_outcome: { description?: string | null; success?: boolean | null } | null; external_references: ({ [key: string]: unknown })[]; matches_filters: boolean }>; /** * * Tags: replay, session_recordings * Access as: posthog.environmentsSessionRecordingsUpdate() */ environmentsSessionRecordingsUpdate: () => Promise<{ id: string; distinct_id: string | null; viewed: boolean; viewers: (string)[]; recording_duration: number; active_seconds: number | null; inactive_seconds: number | null; start_time: string | null; end_time: string | null; click_count: number | null; keypress_count: number | null; mouse_activity_count: number | null; console_log_count: number | null; console_warn_count: number | null; console_error_count: number | null; start_url: string | null; person?: { id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }; retention_period_days: number | null; expiry_time: string | null; recording_ttl: number | null; snapshot_source: string | null; snapshot_library: string | null; ongoing: boolean; activity_score: number | null; has_summary: boolean; summary_outcome: { description?: string | null; success?: boolean | null } | null; external_references: ({ [key: string]: unknown })[]; matches_filters: boolean }>; /** * * Tags: replay, session_recordings * Access as: posthog.environmentsSessionRecordingsPartialUpdate() */ environmentsSessionRecordingsPartialUpdate: () => Promise<{ id: string; distinct_id: string | null; viewed: boolean; viewers: (string)[]; recording_duration: number; active_seconds: number | null; inactive_seconds: number | null; start_time: string | null; end_time: string | null; click_count: number | null; keypress_count: number | null; mouse_activity_count: number | null; console_log_count: number | null; console_warn_count: number | null; console_error_count: number | null; start_url: string | null; person?: { id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }; retention_period_days: number | null; expiry_time: string | null; recording_ttl: number | null; snapshot_source: string | null; snapshot_library: string | null; ongoing: boolean; activity_score: number | null; has_summary: boolean; summary_outcome: { description?: string | null; success?: boolean | null } | null; external_references: ({ [key: string]: unknown })[]; matches_filters: boolean }>; /** * * Tags: replay, session_recordings * Access as: posthog.environmentsSessionRecordingsDestroy() */ environmentsSessionRecordingsDestroy: () => Promise; /** * * Tags: session_recordings * Access as: posthog.environmentsSessionRecordingsSharingList() */ environmentsSessionRecordingsSharingList: () => Promise<({ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] })[]>; /** * Create a new password for the sharing configuration. * Tags: session_recordings * Access as: posthog.environmentsSessionRecordingsSharingPasswordsCreate() */ environmentsSessionRecordingsSharingPasswordsCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a password from the sharing configuration. * Tags: session_recordings * Access as: posthog.environmentsSessionRecordingsSharingPasswordsDestroy() */ environmentsSessionRecordingsSharingPasswordsDestroy: () => Promise; /** * * Tags: session_recordings * Access as: posthog.environmentsSessionRecordingsSharingRefreshCreate() */ environmentsSessionRecordingsSharingRefreshCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a batch of session recordings by session ID. Deletion is permanent and cannot be undone. IDs that don't match an existing recording are skipped and counted in `total_requested` but not `deleted_count`. * Tags: replay, session_recordings * Access as: posthog.environmentsSessionRecordingsBulkDeleteCreate() */ environmentsSessionRecordingsBulkDeleteCreate: () => Promise<{ success: boolean; deleted_count: number; total_requested: number; failed_ids: (string)[] }>; /** * Retrieve the team's session summaries configuration (product context used to tailor single-session replay summaries). * Tags: session_summaries * Access as: posthog.environmentsRetrieveSessionSummariesConfig() */ environmentsRetrieveSessionSummariesConfig: () => Promise<{ product_context?: string; custom_tags?: { [key: string]: string | undefined } }>; /** * Update the team's session summaries configuration (product context used to tailor single-session replay summaries). * Tags: session_summaries * Access as: posthog.environmentsUpdateSessionSummariesConfig() */ environmentsUpdateSessionSummariesConfig: () => Promise<{ product_context?: string; custom_tags?: { [key: string]: string | undefined } }>; /** * Generate AI summary for a group of session recordings to find patterns and generate a notebook. * Tags: session_summaries * Access as: posthog.environmentsCreateSessionSummaries() */ environmentsCreateSessionSummaries: () => Promise<{ session_ids: (string)[]; focus_area?: string }>; /** * Generate AI individual summary for each session, without grouping. * Tags: replay, session_summaries * Access as: posthog.environmentsCreateSessionSummariesIndividually() */ environmentsCreateSessionSummariesIndividually: () => Promise<{ session_ids: (string)[]; focus_area?: string }>; /** * * Tags: sessions * Access as: posthog.environmentsSessionsPropertyDefinitionsRetrieve() */ environmentsSessionsPropertyDefinitionsRetrieve: () => Promise; /** * * Tags: sessions * Access as: posthog.environmentsSessionsValuesRetrieve() */ environmentsSessionsValuesRetrieve: () => Promise; /** * * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsList() */ environmentsSubscriptionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string })[] }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsCreate() */ environmentsSubscriptionsCreate: () => Promise<{ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsRetrieve() */ environmentsSubscriptionsRetrieve: () => Promise<{ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsUpdate() */ environmentsSubscriptionsUpdate: () => Promise<{ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsPartialUpdate() */ environmentsSubscriptionsPartialUpdate: () => Promise<{ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsDestroy() */ environmentsSubscriptionsDestroy: () => Promise; /** * * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsTestDeliveryCreate() */ environmentsSubscriptionsTestDeliveryCreate: () => Promise; /** * List subscription deliveries * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsDeliveriesList() */ environmentsSubscriptionsDeliveriesList: () => Promise<{ next?: string | null; previous?: string | null; results: ({ id: string; subscription: number; temporal_workflow_id: string; idempotency_key: string; trigger_type: string; scheduled_at: string | null; target_type: string; target_value: string; exported_asset_ids: (number)[]; content_snapshot: unknown; recipient_results: unknown; status: "starting" | "completed" | "failed" | "skipped"; error: unknown; created_at: string; last_updated_at: string; finished_at: string | null; change_summary: string | null; ai_report: string | null; ai_report_diagnostics: unknown[] | null; ai_report_prompt: string | null })[] }>; /** * Retrieve subscription delivery * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsDeliveriesRetrieve() */ environmentsSubscriptionsDeliveriesRetrieve: () => Promise<{ id: string; subscription: number; temporal_workflow_id: string; idempotency_key: string; trigger_type: string; scheduled_at: string | null; target_type: string; target_value: string; exported_asset_ids: (number)[]; content_snapshot: unknown; recipient_results: unknown; status: "starting" | "completed" | "failed" | "skipped"; error: unknown; created_at: string; last_updated_at: string; finished_at: string | null; change_summary: string | null; ai_report: string | null; ai_report_diagnostics: unknown[] | null; ai_report_prompt: string | null }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.environmentsSubscriptionsSummaryQuotaRetrieve() */ environmentsSubscriptionsSummaryQuotaRetrieve: () => Promise<{ active_count: number; limit: number | null; at_limit: boolean }>; /** * * Tags: taggers * Access as: posthog.environmentsTaggersList() */ environmentsTaggersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean })[] }>; /** * * Tags: taggers * Access as: posthog.environmentsTaggersCreate() */ environmentsTaggersCreate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: taggers * Access as: posthog.environmentsTaggersRetrieve() */ environmentsTaggersRetrieve: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: taggers * Access as: posthog.environmentsTaggersUpdate() */ environmentsTaggersUpdate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: taggers * Access as: posthog.environmentsTaggersPartialUpdate() */ environmentsTaggersPartialUpdate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: taggers * Access as: posthog.environmentsTaggersDestroy() */ environmentsTaggersDestroy: () => Promise; /** * Test Hog tagger code against sample events without saving. * Tags: taggers * Access as: posthog.environmentsTaggersTestHogCreate() */ environmentsTaggersTestHogCreate: () => Promise<{ results: ({ event_uuid: string; trace_id?: string | null; input_preview: string; output_preview: string; tags: (string)[]; reasoning: string; error?: string | null })[]; message?: string }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansAggregateCreate() */ environmentsTracingSpansAggregateCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansAttributeBreakdownCreate() */ environmentsTracingSpansAttributeBreakdownCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansAttributesRetrieve() */ environmentsTracingSpansAttributesRetrieve: () => Promise<{ results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansCountCreate() */ environmentsTracingSpansCountCreate: () => Promise<{ count: number; traceCount: number }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansDurationHistogramCreate() */ environmentsTracingSpansDurationHistogramCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansHasSpansRetrieve() */ environmentsTracingSpansHasSpansRetrieve: () => Promise<{ hasSpans: boolean }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansQueryCreate() */ environmentsTracingSpansQueryCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansServiceNamesRetrieve() */ environmentsTracingSpansServiceNamesRetrieve: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansSparklineCreate() */ environmentsTracingSpansSparklineCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansSymbolStatsCreate() */ environmentsTracingSpansSymbolStatsCreate: () => Promise<{ results: ({ count: number; error_count: number; sum_duration_nano: number; p50_duration_nano: number; p95_duration_nano: number; p99_duration_nano: number; busy_count: number; p50_busy_nano: number; p95_busy_nano: number; p99_busy_nano: number; line: number; name?: string | null; end_line?: number | null; previous: { count: number; error_count: number; sum_duration_nano: number; p50_duration_nano: number; p95_duration_nano: number; p99_duration_nano: number; busy_count: number; p50_busy_nano: number; p95_busy_nano: number; p99_busy_nano: number }; count_pct_change: number | null; p95_duration_pct_change: number | null })[]; granularity: "line" | "symbol" }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansTraceCreate() */ environmentsTracingSpansTraceCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansTreeCreate() */ environmentsTracingSpansTreeCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingSpansValuesRetrieve() */ environmentsTracingSpansValuesRetrieve: () => Promise; /** * * Tags: tracing * Access as: posthog.environmentsTracingViewsList() */ environmentsTracingViewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null })[] }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingViewsCreate() */ environmentsTracingViewsCreate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingViewsRetrieve() */ environmentsTracingViewsRetrieve: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingViewsUpdate() */ environmentsTracingViewsUpdate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingViewsPartialUpdate() */ environmentsTracingViewsPartialUpdate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null }>; /** * * Tags: tracing * Access as: posthog.environmentsTracingViewsDestroy() */ environmentsTracingViewsDestroy: () => Promise; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsList() */ environmentsUserInterviewTopicsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string })[] }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsCreate() */ environmentsUserInterviewTopicsCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsRetrieve() */ environmentsUserInterviewTopicsRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsUpdate() */ environmentsUserInterviewTopicsUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsPartialUpdate() */ environmentsUserInterviewTopicsPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsDestroy() */ environmentsUserInterviewTopicsDestroy: () => Promise; /** * Add a single interviewee to this topic. Email-shaped identifiers (including the `Display Name ` form) are appended to `interviewee_emails`; everything else is appended to `interviewee_distinct_ids`. Idempotent — adding an identifier that's already present leaves the topic unchanged. Returns the updated topic. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsAddIntervieweeCreate() */ environmentsUserInterviewTopicsAddIntervieweeCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Generate one public interview link per targeted interviewee. Materializes an IntervieweeContext row for every identifier on the topic (without overwriting existing per-person context), and an enabled SharingConfiguration with a unique access token. The URL resolves to the public interview viewer with no PostHog auth required. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsGenerateLinksCreate() */ environmentsUserInterviewTopicsGenerateLinksCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ interviewee_identifier: string; user_name: string; interview_url: string; agent_context: string })[] }>; /** * Same materialization as generate_links, returned as a downloadable CSV. Intended for users who want to mail-merge the per-person interview links into their own email tooling. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsLinksCsvCreate() */ environmentsUserInterviewTopicsLinksCsvCreate: () => Promise; /** * Render the invite email exactly as a specific targeted interviewee would receive it — personalized subject and body — without sending anything and without creating or reading any share links. Pass `interviewee_identifier` to preview for a particular person, or omit it to preview for the first targeted interviewee. The body always shows an illustrative placeholder link (`is_preview_link: true`), never a live interview URL. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsPreviewInviteCreate() */ environmentsUserInterviewTopicsPreviewInviteCreate: () => Promise<{ interviewee_identifier: string; user_name: string; email: string | null; subject: string; html: string; interview_url: string; emailable: boolean; is_preview_link: boolean }>; /** * Remove an interviewee from this topic. Drops the identifier from both `interviewee_emails` and `interviewee_distinct_ids`, and disables any active SharingConfiguration linked to an IntervieweeContext for that identifier on this topic so the removed person can no longer open their interview link. Idempotent — removing an identifier that isn't present is a no-op. Returns the updated topic. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsRemoveIntervieweeCreate() */ environmentsUserInterviewTopicsRemoveIntervieweeCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Generate (if needed) and email a personalized public interview link to every targeted interviewee on this topic whose identifier is an email address. Distinct-ID-only interviewees are skipped and surfaced in the response. Each invite is keyed on the underlying SharingConfiguration so re-runs after token rotation produce a fresh send. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsSendInvitesCreate() */ environmentsUserInterviewTopicsSendInvitesCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ interviewee_identifier: string; email?: string | null; interview_url: string; sent: boolean; reason?: string })[] }>; /** * Return the calling user's personal dogfood interview link for this topic, plus the latest test interview they have recorded against it. Lazily get-or-creates a per-caller IntervieweeContext + enabled SharingConfiguration the first time it's called, then returns the same stable URL on subsequent calls. The caller's identifier is intentionally not added to the topic's targeting arrays — each user dogfoods under their own row, so test calls never mint a public share token on someone else's behalf. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsTestLinkRetrieve() */ environmentsUserInterviewTopicsTestLinkRetrieve: () => Promise<{ interview_url: string; latest_test_interview: { completed_at: string; transcript: string; summary: string } | null }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsIntervieweesList() */ environmentsUserInterviewTopicsIntervieweesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string })[] }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsIntervieweesCreate() */ environmentsUserInterviewTopicsIntervieweesCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsIntervieweesRetrieve() */ environmentsUserInterviewTopicsIntervieweesRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsIntervieweesUpdate() */ environmentsUserInterviewTopicsIntervieweesUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsIntervieweesPartialUpdate() */ environmentsUserInterviewTopicsIntervieweesPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsIntervieweesDestroy() */ environmentsUserInterviewTopicsIntervieweesDestroy: () => Promise; /** * Create up to 500 interviewee context rows for a topic in a single request. Rows whose (topic, interviewee_identifier) already exists are skipped — the response surfaces an `inserted_count`, a `skipped_count`, and the `skipped_identifiers` so the caller can reconcile. Items must have unique `interviewee_identifier` values within the batch. * Tags: user_interview_topics * Access as: posthog.environmentsUserInterviewTopicsIntervieweesBulkCreate() */ environmentsUserInterviewTopicsIntervieweesBulkCreate: () => Promise<{ inserted_count: number; skipped_count: number; skipped_identifiers: (string)[] }>; /** * * Tags: user_interviews * Access as: posthog.environmentsUserInterviewsList() */ environmentsUserInterviewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string })[] }>; /** * * Tags: user_interviews * Access as: posthog.environmentsUserInterviewsCreate() */ environmentsUserInterviewsCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string }>; /** * * Tags: user_interviews * Access as: posthog.environmentsUserInterviewsRetrieve() */ environmentsUserInterviewsRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string }>; /** * * Tags: user_interviews * Access as: posthog.environmentsUserInterviewsUpdate() */ environmentsUserInterviewsUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string }>; /** * * Tags: user_interviews * Access as: posthog.environmentsUserInterviewsPartialUpdate() */ environmentsUserInterviewsPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string }>; /** * * Tags: user_interviews * Access as: posthog.environmentsUserInterviewsDestroy() */ environmentsUserInterviewsDestroy: () => Promise; /** * Search interview responses by semantic similarity * Tags: user_interviews * Access as: posthog.environmentsUserInterviewsSearchCreate() */ environmentsUserInterviewsSearchCreate: () => Promise<({ interview_id: string; document_type: "transcript" | "summary"; similarity: number; content_snippet: string; interviewee_identifier: string; topic_id: string | null; created_at: string })[]>; /** * Read-only access to a session's observations across every scanner the caller can read, for the replay-page dock. * Tags: vision * Access as: posthog.environmentsVisionObservationsList() */ environmentsVisionObservationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; scanner_id: string; session_id: string; status: "pending" | "running" | "succeeded" | "failed" | "ineligible"; error_reason: string; workflow_id: string; scanner_snapshot: { name: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_version: number; model: string; provider: string; emits_signals: boolean; scanner_config: unknown } | null; scanner_result: { model_output: unknown; signals_count: number } | null; triggered_by: "schedule" | "on_demand" | "retry"; triggered_by_user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; distinct_id: string | null; recording_subject_email: string | null; previous_observation_id: string | null; next_observation_id: string | null; label: { is_correct: boolean; feedback?: string } | null; started_at?: string | null; completed_at?: string | null; created_at: string })[] }>; /** * Retrieve one observation. Any list filters passed along (status, tags, order_by, …) scope the `previous_observation_id`/`next_observation_id` navigation to the matching, identically-ordered set — so prev/next from a filtered table stays within that filtered list. * Tags: vision * Access as: posthog.environmentsVisionObservationsRetrieve() */ environmentsVisionObservationsRetrieve: () => Promise<{ id: string; scanner_id: string; session_id: string; status: "pending" | "running" | "succeeded" | "failed" | "ineligible"; error_reason: string; workflow_id: string; scanner_snapshot: { name: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_version: number; model: string; provider: string; emits_signals: boolean; scanner_config: unknown } | null; scanner_result: { model_output: unknown; signals_count: number } | null; triggered_by: "schedule" | "on_demand" | "retry"; triggered_by_user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; distinct_id: string | null; recording_subject_email: string | null; previous_observation_id: string | null; next_observation_id: string | null; label: { is_correct: boolean; feedback?: string } | null; started_at?: string | null; completed_at?: string | null; created_at: string }>; /** * Set or update the observation's shared label: whether the scanner scored the session correctly, plus optional feedback on what it got wrong. One label per observation, shared across the team; these labels feed prompt improvement. Requires session recording edit access. * Tags: vision * Access as: posthog.environmentsVisionObservationsLabelCreate() */ environmentsVisionObservationsLabelCreate: () => Promise<{ is_correct: boolean; feedback?: string }>; /** * Remove the observation's shared label. Requires session recording edit access. * Tags: vision * Access as: posthog.environmentsVisionObservationsLabelDestroy() */ environmentsVisionObservationsLabelDestroy: () => Promise; /** * Delete a failed observation and re-run its scanner on the same recording. Returns 202 with the workflow handle. * Tags: vision * Access as: posthog.environmentsVisionObservationsRetryCreate() */ environmentsVisionObservationsRetryCreate: () => Promise; /** * * Tags: vision * Access as: posthog.environmentsEnvironmentVisionQuotaRetrieve() */ environmentsEnvironmentVisionQuotaRetrieve: () => Promise<{ credit_limit: number | null; credits_used: number; remaining: number | null; exhausted: boolean; period_start: string; period_end: string; projected_monthly_credits: number }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.environmentsVisionScannersList() */ environmentsVisionScannersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_config: unknown; query?: unknown; sampling_rate?: number; sampling_mode?: "focused" | "balanced" | "comprehensive"; provider?: "google"; model: "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3.5-flash"; enabled?: boolean; emits_signals?: boolean; scanner_version: number; estimated_monthly_observations: number | null; credits_per_observation: number; estimated_monthly_credits: number | null; last_swept_at: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string; feedback_themes: { themes: ({ theme: string; count: number; examples: (string)[]; sessions: ({ observation_id: string; session_id: string })[] })[]; feedback_count: number; generated_at: string } | null })[] }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.environmentsVisionScannersCreate() */ environmentsVisionScannersCreate: () => Promise<{ id: string; name: string; description?: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_config: unknown; query?: unknown; sampling_rate?: number; sampling_mode?: "focused" | "balanced" | "comprehensive"; provider?: "google"; model: "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3.5-flash"; enabled?: boolean; emits_signals?: boolean; scanner_version: number; estimated_monthly_observations: number | null; credits_per_observation: number; estimated_monthly_credits: number | null; last_swept_at: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string; feedback_themes: { themes: ({ theme: string; count: number; examples: (string)[]; sessions: ({ observation_id: string; session_id: string })[] })[]; feedback_count: number; generated_at: string } | null }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.environmentsVisionScannersRetrieve() */ environmentsVisionScannersRetrieve: () => Promise<{ id: string; name: string; description?: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_config: unknown; query?: unknown; sampling_rate?: number; sampling_mode?: "focused" | "balanced" | "comprehensive"; provider?: "google"; model: "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3.5-flash"; enabled?: boolean; emits_signals?: boolean; scanner_version: number; estimated_monthly_observations: number | null; credits_per_observation: number; estimated_monthly_credits: number | null; last_swept_at: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string; feedback_themes: { themes: ({ theme: string; count: number; examples: (string)[]; sessions: ({ observation_id: string; session_id: string })[] })[]; feedback_count: number; generated_at: string } | null }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.environmentsVisionScannersPartialUpdate() */ environmentsVisionScannersPartialUpdate: () => Promise<{ id: string; name: string; description?: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_config: unknown; query?: unknown; sampling_rate?: number; sampling_mode?: "focused" | "balanced" | "comprehensive"; provider?: "google"; model: "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3.5-flash"; enabled?: boolean; emits_signals?: boolean; scanner_version: number; estimated_monthly_observations: number | null; credits_per_observation: number; estimated_monthly_credits: number | null; last_swept_at: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string; feedback_themes: { themes: ({ theme: string; count: number; examples: (string)[]; sessions: ({ observation_id: string; session_id: string })[] })[]; feedback_count: number; generated_at: string } | null }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.environmentsVisionScannersDestroy() */ environmentsVisionScannersDestroy: () => Promise; /** * Apply this scanner to one specific session, on demand. Returns 202 with the workflow handle. * Tags: vision * Access as: posthog.environmentsVisionScannersObserveCreate() */ environmentsVisionScannersObserveCreate: () => Promise; /** * Read-only access to observations produced by a scanner. * Tags: vision * Access as: posthog.environmentsVisionScannersObservationsList() */ environmentsVisionScannersObservationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; scanner_id: string; session_id: string; status: "pending" | "running" | "succeeded" | "failed" | "ineligible"; error_reason: string; workflow_id: string; scanner_snapshot: { name: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_version: number; model: string; provider: string; emits_signals: boolean; scanner_config: unknown } | null; scanner_result: { model_output: unknown; signals_count: number } | null; triggered_by: "schedule" | "on_demand" | "retry"; triggered_by_user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; distinct_id: string | null; recording_subject_email: string | null; previous_observation_id: string | null; next_observation_id: string | null; label: { is_correct: boolean; feedback?: string } | null; started_at?: string | null; completed_at?: string | null; created_at: string })[] }>; /** * Retrieve one observation. Any list filters passed along (status, tags, order_by, …) scope the `previous_observation_id`/`next_observation_id` navigation to the matching, identically-ordered set — so prev/next from a filtered table stays within that filtered list. * Tags: vision * Access as: posthog.environmentsVisionScannersObservationsRetrieve() */ environmentsVisionScannersObservationsRetrieve: () => Promise<{ id: string; scanner_id: string; session_id: string; status: "pending" | "running" | "succeeded" | "failed" | "ineligible"; error_reason: string; workflow_id: string; scanner_snapshot: { name: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_version: number; model: string; provider: string; emits_signals: boolean; scanner_config: unknown } | null; scanner_result: { model_output: unknown; signals_count: number } | null; triggered_by: "schedule" | "on_demand" | "retry"; triggered_by_user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; distinct_id: string | null; recording_subject_email: string | null; previous_observation_id: string | null; next_observation_id: string | null; label: { is_correct: boolean; feedback?: string } | null; started_at?: string | null; completed_at?: string | null; created_at: string }>; /** * Set or update the observation's shared label: whether the scanner scored the session correctly, plus optional feedback on what it got wrong. One label per observation, shared across the team; these labels feed prompt improvement. Requires session recording edit access. * Tags: vision * Access as: posthog.environmentsVisionScannersObservationsLabelCreate() */ environmentsVisionScannersObservationsLabelCreate: () => Promise<{ is_correct: boolean; feedback?: string }>; /** * Remove the observation's shared label. Requires session recording edit access. * Tags: vision * Access as: posthog.environmentsVisionScannersObservationsLabelDestroy() */ environmentsVisionScannersObservationsLabelDestroy: () => Promise; /** * Delete a failed observation and re-run its scanner on the same recording. Returns 202 with the workflow handle. * Tags: vision * Access as: posthog.environmentsVisionScannersObservationsRetryCreate() */ environmentsVisionScannersObservationsRetryCreate: () => Promise; /** * Aggregate counts and per-scanner-type distributions over the filtered observation set. Same filters as the list endpoint apply. * Tags: vision * Access as: posthog.environmentsVisionScannersObservationsStatsRetrieve() */ environmentsVisionScannersObservationsStatsRetrieve: () => Promise<{ status_counts: { total: number; succeeded: number; failed: number; ineligible: number; in_flight: number; success_rate: number | null }; coverage: { recent_sessions: number; total_sessions: number; recent_days: number }; labels: { up_total: number; down_total: number; by_day: ({ date: string; up: number; down: number })[]; by_rating_day: ({ date: string; up: number; down: number })[]; version_markers: ({ date: string; version: number; prompt: string; up: number; down: number; total: number })[] }; available_tags: (string)[]; monitor: { yes_total: number; no_total: number; inconclusive_total: number } | null; classifier: { fixed_ranked: ({ tag: string; count: number })[]; freeform_ranked: ({ tag: string; count: number })[]; total_with_tags: number } | null; scorer: { summary: { min: number; p25: number; median: number; mean: number; p75: number; max: number; count: number } | null; histogram: { labels: (string)[]; counts: (number)[] } | null } | null }>; /** * AI prompt-rewrite suggestions for a scanner, generated from the team's thumbs up/down ratings. * Tags: vision * Access as: posthog.environmentsVisionScannersPromptSuggestionsList() */ environmentsVisionScannersPromptSuggestionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null })[] }>; /** * Apply this suggestion: write its prompt to the scanner (bumping the scanner version) and mark the suggestion applied. Only the current pending suggestion can be applied. Requires session recording edit access. * Tags: vision * Access as: posthog.environmentsVisionScannersPromptSuggestionsApplyCreate() */ environmentsVisionScannersPromptSuggestionsApplyCreate: () => Promise<{ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null }>; /** * Dismiss this suggestion without applying it. Only the current pending suggestion can be dismissed. Requires session recording edit access. * Tags: vision * Access as: posthog.environmentsVisionScannersPromptSuggestionsDismissCreate() */ environmentsVisionScannersPromptSuggestionsDismissCreate: () => Promise<{ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null }>; /** * Test this suggestion before applying it: re-run the scanner with the suggested prompt against already-rated sessions in the background and compare each fresh output with the stored one. Results land on the suggestion's `evaluation` field. Poll `current` while status is running. `session_limit` controls how many rated sessions are re-run (thumbs-down prioritized, up to `evaluation_session_cap`). Each successful re-run charges credits like a normal observation of the same model. The request is refused with 402 when the planned credits exceed what is left of the monthly limit. Only monitor and classifier scanners are supported. Requires session recording edit access. * Tags: vision * Access as: posthog.environmentsVisionScannersPromptSuggestionsEvaluateCreate() */ environmentsVisionScannersPromptSuggestionsEvaluateCreate: () => Promise<{ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null }>; /** * The scanner's newest prompt suggestion plus whether it is stale (the ratings changed since it was generated) and how many rated observations are available. * Tags: vision * Access as: posthog.environmentsVisionScannersPromptSuggestionsCurrentRetrieve() */ environmentsVisionScannersPromptSuggestionsCurrentRetrieve: () => Promise<{ suggestion: { id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null } | null; stale: boolean; rated_count: number; evaluation_session_cap: number }>; /** * Generate a fresh prompt suggestion from the team's current ratings. The previous pending suggestion becomes history (superseded). Requires at least one rated observation and session recording edit access. * Tags: vision * Access as: posthog.environmentsVisionScannersPromptSuggestionsGenerateCreate() */ environmentsVisionScannersPromptSuggestionsGenerateCreate: () => Promise<{ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null }>; /** * Distinct creators across the team's scanners — feeds the `Created by` filter dropdown. * Tags: vision * Access as: posthog.environmentsVisionScannersCreatorsRetrieve() */ environmentsVisionScannersCreatorsRetrieve: () => Promise<{ creators: ({ id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null })[] }>; /** * Estimate the observation volume a proposed scanner would generate, for the pre-save cost preview. * Tags: vision * Access as: posthog.environmentsVisionScannersEstimateCreate() */ environmentsVisionScannersEstimateCreate: () => Promise<{ matched_sessions_in_window: number; window_days: number; estimated_observations_per_month: number; credits_per_observation: number; estimated_credits_per_month: number; other_enabled_scanners_monthly_credits: number; sampling_rate: number }>; /** * Team-wide scanner counts — independent of list filters, so the overview stays stable. * Tags: vision * Access as: posthog.environmentsVisionScannersStatsRetrieve() */ environmentsVisionScannersStatsRetrieve: () => Promise<{ total: number; enabled: number; by_type: { monitor: { enabled: number; total: number }; classifier: { enabled: number; total: number }; scorer: unknown; summarizer: unknown } }>; /** * Suggest classifier tags grounded in the scanner's own observations and the org's product data. * Tags: vision * Access as: posthog.environmentsVisionScannersSuggestTagsCreate() */ environmentsVisionScannersSuggestTagsCreate: () => Promise<{ suggestions: ({ tag: string; rationale: string; source: "observed" | "product" | "prompt" })[] }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesList() */ environmentsWarehouseSavedQueriesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; deleted: boolean | null; name: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description: string; sync_frequency: string | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | null; last_run_at: string | null; managed_viewset_kind: string | null; folder_id: string | null; folder_name: string | null; latest_error: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test: boolean; expires_at: string | null; user_access_level: string | null })[] }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesCreate() */ environmentsWarehouseSavedQueriesCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesRetrieve() */ environmentsWarehouseSavedQueriesRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesUpdate() */ environmentsWarehouseSavedQueriesUpdate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesPartialUpdate() */ environmentsWarehouseSavedQueriesPartialUpdate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesDestroy() */ environmentsWarehouseSavedQueriesDestroy: () => Promise; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesActivityRetrieve() */ environmentsWarehouseSavedQueriesActivityRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Return the ancestors of this saved query. By default, we return the immediate parents. The `level` parameter can be used to look further back into the ancestor tree. If `level` overshoots (i.e. points to only ancestors beyond the root), we return an empty list. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesAncestorsCreate() */ environmentsWarehouseSavedQueriesAncestorsCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Cancel a running saved query workflow. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesCancelCreate() */ environmentsWarehouseSavedQueriesCancelCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Return the count of immediate upstream and downstream dependencies for this saved query. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesDependenciesRetrieve() */ environmentsWarehouseSavedQueriesDependenciesRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Return the descendants of this saved query. By default, we return the immediate children. The `level` parameter can be used to look further ahead into the descendants tree. If `level` overshoots (i.e. points to only descendants further than a leaf), we return an empty list. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesDescendantsCreate() */ environmentsWarehouseSavedQueriesDescendantsCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Enable materialization for this saved query with a 24-hour sync frequency. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesMaterializeCreate() */ environmentsWarehouseSavedQueriesMaterializeCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Undo materialization, revert back to the original view. (i.e. delete the materialized table and the schedule) * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesRevertMaterializationCreate() */ environmentsWarehouseSavedQueriesRevertMaterializationCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Run this saved query. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesRunCreate() */ environmentsWarehouseSavedQueriesRunCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Return the recent run history (up to 5 most recent) for this materialized view. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesRunHistoryRetrieve() */ environmentsWarehouseSavedQueriesRunHistoryRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Resume paused materialization schedules for multiple matviews. Accepts a list of view IDs in the request body: {"view_ids": ["id1", "id2", ...]} This endpoint is idempotent - calling it on already running or non-existent schedules is safe. * Tags: warehouse_saved_queries * Access as: posthog.environmentsWarehouseSavedQueriesResumeSchedulesCreate() */ environmentsWarehouseSavedQueriesResumeSchedulesCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.environmentsWarehouseSavedQueryFoldersList() */ environmentsWarehouseSavedQueryFoldersList: () => Promise<({ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; view_count: number; user_access_level: string | null })[]>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.environmentsWarehouseSavedQueryFoldersCreate() */ environmentsWarehouseSavedQueryFoldersCreate: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; view_count: number; user_access_level: string | null }>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.environmentsWarehouseSavedQueryFoldersRetrieve() */ environmentsWarehouseSavedQueryFoldersRetrieve: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; view_count: number; user_access_level: string | null }>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.environmentsWarehouseSavedQueryFoldersPartialUpdate() */ environmentsWarehouseSavedQueryFoldersPartialUpdate: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; view_count: number; user_access_level: string | null }>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.environmentsWarehouseSavedQueryFoldersDestroy() */ environmentsWarehouseSavedQueryFoldersDestroy: () => Promise; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesList() */ environmentsWarehouseTablesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null })[] }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesCreate() */ environmentsWarehouseTablesCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesRetrieve() */ environmentsWarehouseTablesRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesUpdate() */ environmentsWarehouseTablesUpdate: () => Promise<{ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesPartialUpdate() */ environmentsWarehouseTablesPartialUpdate: () => Promise<{ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesDestroy() */ environmentsWarehouseTablesDestroy: () => Promise; /** * Refresh table schema from source * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesRefreshSchemaCreate() */ environmentsWarehouseTablesRefreshSchemaCreate: () => Promise; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesUpdateSchemaCreate() */ environmentsWarehouseTablesUpdateSchemaCreate: () => Promise; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.environmentsWarehouseTablesFileCreate() */ environmentsWarehouseTablesFileCreate: () => Promise; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.environmentsWarehouseViewLinkList() */ environmentsWarehouseViewLinkList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown })[] }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.environmentsWarehouseViewLinkCreate() */ environmentsWarehouseViewLinkCreate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.environmentsWarehouseViewLinkRetrieve() */ environmentsWarehouseViewLinkRetrieve: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.environmentsWarehouseViewLinkUpdate() */ environmentsWarehouseViewLinkUpdate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.environmentsWarehouseViewLinkPartialUpdate() */ environmentsWarehouseViewLinkPartialUpdate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.environmentsWarehouseViewLinkDestroy() */ environmentsWarehouseViewLinkDestroy: () => Promise; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.environmentsWarehouseViewLinkValidateCreate() */ environmentsWarehouseViewLinkValidateCreate: () => Promise; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.environmentsWarehouseViewLinksList() */ environmentsWarehouseViewLinksList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown })[] }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.environmentsWarehouseViewLinksCreate() */ environmentsWarehouseViewLinksCreate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.environmentsWarehouseViewLinksRetrieve() */ environmentsWarehouseViewLinksRetrieve: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.environmentsWarehouseViewLinksUpdate() */ environmentsWarehouseViewLinksUpdate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.environmentsWarehouseViewLinksPartialUpdate() */ environmentsWarehouseViewLinksPartialUpdate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.environmentsWarehouseViewLinksDestroy() */ environmentsWarehouseViewLinksDestroy: () => Promise; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.environmentsWarehouseViewLinksValidateCreate() */ environmentsWarehouseViewLinksValidateCreate: () => Promise; /** * Weekly web analytics recap * Tags: web_analytics, web_analytics * Access as: posthog.environmentsWebAnalyticsRecap() */ environmentsWebAnalyticsRecap: () => Promise<{ visitors: { current: number; previous: number | null; change: { percent: number; direction: "Up" | "Down"; color: string; text: string; long_text: string } | null }; pageviews: { current: number; previous: number | null; change: { percent: number; direction: "Up" | "Down"; color: string; text: string; long_text: string } | null }; sessions: unknown; bounce_rate: unknown; avg_session_duration: { current: string; previous: string | null; change: unknown | null }; top_pages: ({ host: string; path: string; visitors: number; change: unknown | null })[]; top_sources: ({ name: string; visitors: number; change: unknown | null })[]; goals: ({ name: string; conversions: number; change: unknown | null })[]; dashboard_url: string; persona: { id: string; name: string; emoji: string; blurb: string; color: string }; highlights: ({ id: string; emoji: string; title: string; value: string; detail: string })[]; period_label: string; period_start: string; period_end: string; project_name: string; recap_url: string }>; /** * Summarize web analytics * Tags: web_analytics, web_analytics * Access as: posthog.environmentsWebAnalyticsWeeklyDigest() */ environmentsWebAnalyticsWeeklyDigest: () => Promise<{ visitors: { current: number; previous: number | null; change: { percent: number; direction: "Up" | "Down"; color: string; text: string; long_text: string } | null }; pageviews: { current: number; previous: number | null; change: { percent: number; direction: "Up" | "Down"; color: string; text: string; long_text: string } | null }; sessions: unknown; bounce_rate: unknown; avg_session_duration: { current: string; previous: string | null; change: unknown | null }; top_pages: ({ host: string; path: string; visitors: number; change: unknown | null })[]; top_sources: ({ name: string; visitors: number; change: unknown | null })[]; goals: ({ name: string; conversions: number; change: unknown | null })[]; dashboard_url: string }>; /** * Get web vitals for a specific pathname. Toolbar accesses this via OAuth (handled by TeamAndOrgViewSetMixin.get_authenticators). * Tags: web_vitals * Access as: posthog.environmentsWebVitalsRetrieve() */ environmentsWebVitalsRetrieve: () => Promise<{ [key: string]: unknown }>; /** * Return a structured personal LLM spend analysis for the requesting user. Pass `date_from` / `date_to` (absolute like `2026-04-23` or relative like `-7d`) to bound the window — defaults to the last 30 days, max 90 days. The `product=` query param is required and scopes the tool / model / day / trace breakdowns to a single product; supported values: posthog_code. `by_product` is always returned for cross-product visibility. `by_day` returns a day-ascending spend series for the scoped product. Use `refresh=true` to bypass the 5-minute response cache. * Tags: AI observability, llm_analytics * Access as: posthog.llmAnalyticsPersonalSpendList() */ llmAnalyticsPersonalSpendList: () => Promise<({ summary: { date_from: string; date_to: string; product: string; total_cost_usd: number; event_count: number; scoped_cost_usd: number; scoped_event_count: number }; by_product: { items: ({ product: string | null; event_count: number; cost_usd: number })[]; truncated: boolean }; by_tool: { items: ({ tool: string | null; generation_count: number; cost_usd: number; share_of_scoped: number; avg_input_tokens: number })[]; truncated: boolean }; by_model: { items: ({ model: string | null; generation_count: number; cost_usd: number; input_tokens: number; output_tokens: number })[]; truncated: boolean }; by_day: { items: ({ day: string; event_count: number; cost_usd: number })[]; truncated: boolean }; top_traces: { items: ({ trace_id: string | null; generation_count: number; cost_usd: number; started_at: string | null })[]; truncated: boolean } })[]>; /** * * Tags: organizations, organizations * Access as: posthog.list() */ list: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null })[] }>; /** * * Tags: organizations, organizations * Access as: posthog.create() */ create: () => Promise<{ id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }>; /** * * Tags: organizations, organizations * Access as: posthog.retrieve() */ retrieve: () => Promise<{ id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }>; /** * * Tags: organizations, organizations * Access as: posthog.update() */ update: () => Promise<{ id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }>; /** * * Tags: organizations, organizations * Access as: posthog.partialUpdate() */ partialUpdate: () => Promise<{ id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }>; /** * * Tags: organizations, organizations * Access as: posthog.destroy() */ destroy: () => Promise; /** * Notify organization admins that a member is requesting PostHog AI be enabled. * Tags: organizations, request_ai_access * Access as: posthog.requestAiAccessCreate() */ requestAiAccessCreate: () => Promise<{ success: boolean }>; /** * Organization-wide view of activity logs across every project in the organization. Mounted at /api/organizations//advanced_activity_logs/. Restricted to organization admins and owners. * Tags: activity_logs, advanced_activity_logs * Access as: posthog.orgOrganizationsAdvancedActivityLogsList() */ orgOrganizationsAdvancedActivityLogsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; unread: boolean; team_id?: number | null; organization_id?: string | null; was_impersonated?: boolean | null; is_system?: boolean | null; client?: string | null; ip_address?: string | null; activity: string; item_id?: string | null; scope: string; detail?: unknown; created_at?: string })[] }>; /** * Organization-wide view of activity logs across every project in the organization. Mounted at /api/organizations//advanced_activity_logs/. Restricted to organization admins and owners. * Tags: activity_logs, advanced_activity_logs * Access as: posthog.orgOrganizationsAdvancedActivityLogsAvailableFiltersRetrieve() */ orgOrganizationsAdvancedActivityLogsAvailableFiltersRetrieve: () => Promise<{ static_filters: { users: ({ [key: string]: unknown })[]; scopes: ({ [key: string]: unknown })[]; activities: ({ [key: string]: unknown })[]; clients: ({ [key: string]: unknown })[] }; detail_fields: { [key: string]: unknown } }>; /** * Organization-wide view of activity logs across every project in the organization. Mounted at /api/organizations//advanced_activity_logs/. Restricted to organization admins and owners. * Tags: activity_logs, advanced_activity_logs * Access as: posthog.orgOrganizationsAdvancedActivityLogsExportCreate() */ orgOrganizationsAdvancedActivityLogsExportCreate: () => Promise<{ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; unread: boolean; team_id?: number | null; organization_id?: string | null; was_impersonated?: boolean | null; is_system?: boolean | null; client?: string | null; ip_address?: string | null; activity: string; item_id?: string | null; scope: string; detail?: unknown; created_at?: string }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsList() */ orgOrganizationsBatchExportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null })[] }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsCreate() */ orgOrganizationsBatchExportsCreate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsRetrieve() */ orgOrganizationsBatchExportsRetrieve: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsUpdate() */ orgOrganizationsBatchExportsUpdate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsPartialUpdate() */ orgOrganizationsBatchExportsPartialUpdate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsDestroy() */ orgOrganizationsBatchExportsDestroy: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsLogsRetrieve() */ orgOrganizationsBatchExportsLogsRetrieve: () => Promise; /** * Pause a BatchExport. * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsPauseCreate() */ orgOrganizationsBatchExportsPauseCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsRunTestStepCreate() */ orgOrganizationsBatchExportsRunTestStepCreate: () => Promise; /** * Unpause a BatchExport. * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsUnpauseCreate() */ orgOrganizationsBatchExportsUnpauseCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsRunTestStepNewCreate() */ orgOrganizationsBatchExportsRunTestStepNewCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.orgOrganizationsBatchExportsTestRetrieve() */ orgOrganizationsBatchExportsTestRetrieve: () => Promise; /** * Manage CIMD verification tokens for an organization. A partner embeds the plaintext token in their CIMD metadata document as `verification_token` inside the `com.posthog` object (the legacy top-level `posthog_verification_token` field still works as a fallback). When PostHog fetches the metadata, matching the token links the partner app to this organization and grants a higher default rate limit for account provisioning. The plaintext value is only available on creation; we store a hash. * Tags: organizations, cimd_verification_tokens * Access as: posthog.cimdVerificationTokensList() */ cimdVerificationTokensList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; label: string; mask_value: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; last_used_at: string | null })[] }>; /** * Manage CIMD verification tokens for an organization. A partner embeds the plaintext token in their CIMD metadata document as `verification_token` inside the `com.posthog` object (the legacy top-level `posthog_verification_token` field still works as a fallback). When PostHog fetches the metadata, matching the token links the partner app to this organization and grants a higher default rate limit for account provisioning. The plaintext value is only available on creation; we store a hash. * Tags: organizations, cimd_verification_tokens * Access as: posthog.cimdVerificationTokensCreate() */ cimdVerificationTokensCreate: () => Promise<{ id: string; label: string; mask_value: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; last_used_at: string | null; value: string }>; /** * Manage CIMD verification tokens for an organization. A partner embeds the plaintext token in their CIMD metadata document as `verification_token` inside the `com.posthog` object (the legacy top-level `posthog_verification_token` field still works as a fallback). When PostHog fetches the metadata, matching the token links the partner app to this organization and grants a higher default rate limit for account provisioning. The plaintext value is only available on creation; we store a hash. * Tags: organizations, cimd_verification_tokens * Access as: posthog.cimdVerificationTokensRetrieve() */ cimdVerificationTokensRetrieve: () => Promise<{ id: string; label: string; mask_value: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; last_used_at: string | null }>; /** * Manage CIMD verification tokens for an organization. A partner embeds the plaintext token in their CIMD metadata document as `verification_token` inside the `com.posthog` object (the legacy top-level `posthog_verification_token` field still works as a fallback). When PostHog fetches the metadata, matching the token links the partner app to this organization and grants a higher default rate limit for account provisioning. The plaintext value is only available on creation; we store a hash. * Tags: organizations, cimd_verification_tokens * Access as: posthog.cimdVerificationTokensDestroy() */ cimdVerificationTokensDestroy: () => Promise; /** * * Tags: organizations, domains * Access as: posthog.domainsList() */ domainsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; domain: string; is_verified: boolean; verified_at: string | null; verification_challenge: string; jit_provisioning_enabled?: boolean; sso_enforcement?: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_base_url: string | null; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[]; identity_provider_config?: string | null })[] }>; /** * * Tags: organizations, domains * Access as: posthog.domainsCreate() */ domainsCreate: () => Promise<{ id: string; domain: string; is_verified: boolean; verified_at: string | null; verification_challenge: string; jit_provisioning_enabled?: boolean; sso_enforcement?: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_base_url: string | null; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[]; identity_provider_config?: string | null }>; /** * * Tags: organizations, domains * Access as: posthog.domainsRetrieve() */ domainsRetrieve: () => Promise<{ id: string; domain: string; is_verified: boolean; verified_at: string | null; verification_challenge: string; jit_provisioning_enabled?: boolean; sso_enforcement?: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_base_url: string | null; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[]; identity_provider_config?: string | null }>; /** * * Tags: organizations, domains * Access as: posthog.domainsUpdate() */ domainsUpdate: () => Promise<{ id: string; domain: string; is_verified: boolean; verified_at: string | null; verification_challenge: string; jit_provisioning_enabled?: boolean; sso_enforcement?: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_base_url: string | null; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[]; identity_provider_config?: string | null }>; /** * * Tags: organizations, domains * Access as: posthog.domainsPartialUpdate() */ domainsPartialUpdate: () => Promise<{ id: string; domain: string; is_verified: boolean; verified_at: string | null; verification_challenge: string; jit_provisioning_enabled?: boolean; sso_enforcement?: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_base_url: string | null; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[]; identity_provider_config?: string | null }>; /** * * Tags: organizations, domains * Access as: posthog.domainsDestroy() */ domainsDestroy: () => Promise; /** * * Tags: organizations, domains * Access as: posthog.domainsScimLogsRetrieve() */ domainsScimLogsRetrieve: () => Promise; /** * Regenerate SCIM bearer token. * Tags: organizations, domains * Access as: posthog.domainsScimTokenCreate() */ domainsScimTokenCreate: () => Promise; /** * * Tags: organizations, domains * Access as: posthog.domainsVerifyCreate() */ domainsVerifyCreate: () => Promise; /** * * Tags: organizations, identity_provider_configs * Access as: posthog.identityProviderConfigsList() */ identityProviderConfigsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name?: string; created_at: string; updated_at: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[] })[] }>; /** * * Tags: organizations, identity_provider_configs * Access as: posthog.identityProviderConfigsCreate() */ identityProviderConfigsCreate: () => Promise<{ id: string; name?: string; created_at: string; updated_at: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[] }>; /** * * Tags: organizations, identity_provider_configs * Access as: posthog.identityProviderConfigsRetrieve() */ identityProviderConfigsRetrieve: () => Promise<{ id: string; name?: string; created_at: string; updated_at: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[] }>; /** * * Tags: organizations, identity_provider_configs * Access as: posthog.identityProviderConfigsUpdate() */ identityProviderConfigsUpdate: () => Promise<{ id: string; name?: string; created_at: string; updated_at: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[] }>; /** * * Tags: organizations, identity_provider_configs * Access as: posthog.identityProviderConfigsPartialUpdate() */ identityProviderConfigsPartialUpdate: () => Promise<{ id: string; name?: string; created_at: string; updated_at: string; has_saml: boolean; saml_entity_id?: string | null; saml_acs_url?: string | null; saml_x509_cert?: string | null; has_scim: boolean; scim_enabled?: boolean; scim_bearer_token: string | null; has_id_jag: boolean; id_jag_issuer_url?: string | null; id_jag_jwks_url?: string | null; id_jag_allowed_clients?: (string)[] }>; /** * * Tags: organizations, identity_provider_configs * Access as: posthog.identityProviderConfigsDestroy() */ identityProviderConfigsDestroy: () => Promise; /** * Regenerate the SCIM bearer token for this IdP config. * Tags: organizations, identity_provider_configs * Access as: posthog.identityProviderConfigsScimTokenCreate() */ identityProviderConfigsScimTokenCreate: () => Promise<{ scim_enabled: boolean; scim_bearer_token: string }>; /** * ViewSet for organization-level integrations. Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc. Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint. * Tags: organizations, integrations * Access as: posthog.orgOrganizationsIntegrationsList() */ orgOrganizationsIntegrationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; kind: "vercel"; integration_id: string | null; config: unknown; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * ViewSet for organization-level integrations. Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc. Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint. * Tags: organizations, integrations * Access as: posthog.orgOrganizationsIntegrationsRetrieve() */ orgOrganizationsIntegrationsRetrieve: () => Promise<{ id: string; kind: "vercel"; integration_id: string | null; config: unknown; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * ViewSet for organization-level integrations. Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc. Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint. * Tags: organizations, integrations * Access as: posthog.orgOrganizationIntegrationsDestroy() */ orgOrganizationIntegrationsDestroy: () => Promise; /** * ViewSet for organization-level integrations. Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc. Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint. * Tags: organizations, integrations * Access as: posthog.integrationsEnvironmentMappingPartialUpdate() */ integrationsEnvironmentMappingPartialUpdate: () => Promise<{ id: string; kind: "vercel"; integration_id: string | null; config: unknown; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: organizations, invites * Access as: posthog.invitesList() */ invitesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; target_email: string; first_name?: string; emailing_attempt_made: boolean; level?: 1 | 8 | 15; is_expired: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; message?: string | null; private_project_access?: unknown; send_email?: boolean; combine_pending_invites?: boolean })[] }>; /** * * Tags: organizations, invites * Access as: posthog.invitesCreate() */ invitesCreate: () => Promise<{ id: string; target_email: string; first_name?: string; emailing_attempt_made: boolean; level?: 1 | 8 | 15; is_expired: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; message?: string | null; private_project_access?: unknown; send_email?: boolean; combine_pending_invites?: boolean }>; /** * * Tags: organizations, invites * Access as: posthog.invitesDestroy() */ invitesDestroy: () => Promise; /** * * Tags: organizations, invites * Access as: posthog.invitesBulkCreate() */ invitesBulkCreate: () => Promise; /** * Create an onboarding delegation invite: an admin-level invite flagged as a setup delegation. Sends a single dedicated delegation email and records the inviting user as having delegated. * Tags: organizations, invites * Access as: posthog.invitesDelegateCreate() */ invitesDelegateCreate: () => Promise<{ id: string; target_email: string; first_name?: string; emailing_attempt_made: boolean; level?: 1 | 8 | 15; is_expired: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; message?: string | null; private_project_access?: unknown; send_email?: boolean; combine_pending_invites?: boolean }>; /** * * Tags: organizations, legal_documents * Access as: posthog.legalDocumentsList() */ legalDocumentsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; document_type: string; company_name: string; representative_email: string; status: string; created_by: { first_name: string; email: string } | null; created_at: string })[] }>; /** * * Tags: organizations, legal_documents * Access as: posthog.legalDocumentsCreate() */ legalDocumentsCreate: () => Promise<{ id: string; document_type: string; company_name: string; representative_email: string; status: string; created_by: { first_name: string; email: string } | null; created_at: string }>; /** * * Tags: organizations, legal_documents * Access as: posthog.legalDocumentsRetrieve() */ legalDocumentsRetrieve: () => Promise<{ id: string; document_type: string; company_name: string; representative_email: string; status: string; created_by: { first_name: string; email: string } | null; created_at: string }>; /** * Delete an unsigned legal document. The PandaDoc envelope is voided first so the original signer can no longer complete it; only if that succeeds is the row removed, freeing the unique-per-org-per-type constraint so a fresh document can be generated. Returns 503 if the PandaDoc void fails — the row stays in that case and the frontend should prompt the user to retry. Returns 403 for signed documents (legal artifacts; staff can still delete signed rows from Django admin). * Tags: organizations, legal_documents * Access as: posthog.legalDocumentsDestroy() */ legalDocumentsDestroy: () => Promise; /** * Short-lived redirect to the signed PDF in object storage. 404 while the envelope is still out for signature (or if the upload hasn't completed yet). The underlying presigned URL expires in ~60s; clients should hit this endpoint each time they want to view the PDF rather than caching. * Tags: organizations, legal_documents * Access as: posthog.legalDocumentsDownloadRetrieve() */ legalDocumentsDownloadRetrieve: () => Promise; /** * * Tags: organizations, members * Access as: posthog.membersList() */ membersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level?: 1 | 8 | 15; joined_at: string; updated_at: string; is_2fa_enabled: boolean; has_social_auth: boolean; last_login: string; search_match_type: "exact" | "similar" | null })[] }>; /** * * Tags: organizations, members * Access as: posthog.membersUpdate() */ membersUpdate: () => Promise<{ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level?: 1 | 8 | 15; joined_at: string; updated_at: string; is_2fa_enabled: boolean; has_social_auth: boolean; last_login: string; search_match_type: "exact" | "similar" | null }>; /** * * Tags: organizations, members * Access as: posthog.membersPartialUpdate() */ membersPartialUpdate: () => Promise<{ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level?: 1 | 8 | 15; joined_at: string; updated_at: string; is_2fa_enabled: boolean; has_social_auth: boolean; last_login: string; search_match_type: "exact" | "similar" | null }>; /** * * Tags: organizations, members * Access as: posthog.membersDestroy() */ membersDestroy: () => Promise; /** * * Tags: organizations, members * Access as: posthog.membersGithubLoginRetrieve() */ membersGithubLoginRetrieve: () => Promise<{ github_login: string | null }>; /** * * Tags: organizations, members * Access as: posthog.membersScopedApiKeysRetrieve() */ membersScopedApiKeysRetrieve: () => Promise<{ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level?: 1 | 8 | 15; joined_at: string; updated_at: string; is_2fa_enabled: boolean; has_social_auth: boolean; last_login: string; search_match_type: "exact" | "similar" | null }>; /** * ViewSet for listing OAuth applications at the organization level (read-only). * Tags: organizations, oauth_applications * Access as: posthog.oauthApplicationsList() */ oauthApplicationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name?: string; client_id?: string; redirect_uris_list: (string)[]; is_verified?: boolean; created: string; updated: string })[] }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsList() */ organizationsProjectsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; uuid: string; organization: string; project_id: number; api_token: string; name: string; completed_snippet_onboarding: boolean; has_completed_onboarding_for: unknown; ingested_event: boolean; is_demo: boolean; timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; access_control: boolean })[] }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsCreate() */ organizationsProjectsCreate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Retrieve a project and its settings. * Tags: organizations, projects * Access as: posthog.organizationsProjectsRetrieve() */ organizationsProjectsRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Replace a project and its settings. Prefer the PATCH endpoint for partial updates — PUT requires every writable field to be provided. * Tags: organizations, projects * Access as: posthog.organizationsProjectsUpdate() */ organizationsProjectsUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Update one or more of a project's settings. Only the fields included in the request body are changed. * Tags: organizations, projects * Access as: posthog.organizationsProjectsPartialUpdate() */ organizationsProjectsPartialUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsDestroy() */ organizationsProjectsDestroy: () => Promise; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsActivityRetrieve() */ organizationsProjectsActivityRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsAddProductIntentPartialUpdate() */ organizationsProjectsAddProductIntentPartialUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsChangeOrganizationCreate() */ organizationsProjectsChangeOrganizationCreate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsCompleteProductOnboardingPartialUpdate() */ organizationsProjectsCompleteProductOnboardingPartialUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Manage default evaluation contexts for a project. * Tags: organizations, projects * Access as: posthog.organizationsProjectsDefaultEvaluationContextsRetrieve() */ organizationsProjectsDefaultEvaluationContextsRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Manage default evaluation contexts for a project. * Tags: organizations, projects * Access as: posthog.organizationsProjectsDefaultEvaluationContextsCreate() */ organizationsProjectsDefaultEvaluationContextsCreate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Manage default evaluation contexts for a project. * Tags: organizations, projects * Access as: posthog.organizationsProjectsDefaultEvaluationContextsDestroy() */ organizationsProjectsDefaultEvaluationContextsDestroy: () => Promise; /** * Manage default release conditions for new feature flags in this project. * Tags: organizations, projects * Access as: posthog.organizationsProjectsDefaultReleaseConditionsRetrieve() */ organizationsProjectsDefaultReleaseConditionsRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Manage default release conditions for new feature flags in this project. * Tags: organizations, projects * Access as: posthog.organizationsProjectsDefaultReleaseConditionsUpdate() */ organizationsProjectsDefaultReleaseConditionsUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsDeleteSecretTokenBackupPartialUpdate() */ organizationsProjectsDeleteSecretTokenBackupPartialUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Hide an evaluation context name from the flag editor's suggestion list, or restore it. POST hides the name; DELETE restores it. The underlying context row and any flags already using it are never modified — this only controls what gets suggested. * Tags: organizations, projects * Access as: posthog.organizationsProjectsEvaluationContextSuggestionsCreate() */ organizationsProjectsEvaluationContextSuggestionsCreate: () => Promise<{ success: boolean; name: string; hidden_from_suggestions: boolean }>; /** * Hide an evaluation context name from the flag editor's suggestion list, or restore it. POST hides the name; DELETE restores it. The underlying context row and any flags already using it are never modified — this only controls what gets suggested. * Tags: organizations, projects * Access as: posthog.organizationsProjectsEvaluationContextSuggestionsDestroy() */ organizationsProjectsEvaluationContextSuggestionsDestroy: () => Promise<{ success: boolean; name: string; hidden_from_suggestions: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsEventIngestionRestrictionsRetrieve() */ organizationsProjectsEventIngestionRestrictionsRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Manage experiment configuration for this project. * Tags: organizations, projects * Access as: posthog.organizationsProjectsExperimentsConfigRetrieve() */ organizationsProjectsExperimentsConfigRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Manage experiment configuration for this project. * Tags: organizations, projects * Access as: posthog.organizationsProjectsExperimentsConfigPartialUpdate() */ organizationsProjectsExperimentsConfigPartialUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsGenerateConversationsPublicTokenCreate() */ organizationsProjectsGenerateConversationsPublicTokenCreate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsIsGeneratingDemoDataRetrieve() */ organizationsProjectsIsGeneratingDemoDataRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Manage logs product configuration for this project's canonical environment. Mirrors the env-router action so /api/projects/:id/logs_config/ resolves alongside the legacy /api/environments/:id/logs_config/ alias. * Tags: organizations, projects * Access as: posthog.organizationsProjectsLogsConfigRetrieve() */ organizationsProjectsLogsConfigRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Manage logs product configuration for this project's canonical environment. Mirrors the env-router action so /api/projects/:id/logs_config/ resolves alongside the legacy /api/environments/:id/logs_config/ alias. * Tags: organizations, projects * Access as: posthog.organizationsProjectsLogsConfigPartialUpdate() */ organizationsProjectsLogsConfigPartialUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsResetTokenPartialUpdate() */ organizationsProjectsResetTokenPartialUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * Projects for the current organization. * Tags: organizations, projects * Access as: posthog.organizationsProjectsRotateSecretTokenPartialUpdate() */ organizationsProjectsRotateSecretTokenPartialUpdate: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * 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 * Tags: organizations, projects * Access as: posthog.organizationsProjectsSettingsAsOfRetrieve() */ organizationsProjectsSettingsAsOfRetrieve: () => Promise<{ id: number; organization: string; name?: string; product_description?: string | null; created_at: string; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; updated_at: string | null; uuid: string; api_token: string; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; ingested_event: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; access_control?: boolean; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; person_on_events_querying_enabled: boolean; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; default_modifiers: { [key: string]: unknown }; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; product_intents: ({ product_type?: string; created_at?: string; onboarding_completed_at?: string | null; updated_at?: string })[]; flags_persistence_default?: boolean | null; secret_api_token: string | null; secret_api_token_backup: string | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | null; conversations_enabled?: boolean | null; conversations_settings?: unknown; logs_settings?: unknown; proactive_tasks_enabled?: boolean | null; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; is_pending_deletion: boolean | null; project_id: number; user_access_level: string | null; managed_viewsets: { [key: string]: boolean | undefined }; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; workflows_config?: { capture_workflows_engagement_events?: boolean }; base_currency?: "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"; capture_dead_clicks?: boolean | null; cookieless_server_hash_mode?: 0 | 1 | 2 | unknown; human_friendly_comparison_periods?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; default_data_theme?: number | null; onboarding_tasks?: unknown; web_analytics_pre_aggregated_tables_enabled?: boolean | null; event_retention_months: number; events_retention_enforced: boolean }>; /** * List all reverse proxies configured for the organization. Returns proxy records along with the maximum number allowed by the current plan. * Tags: reverse_proxy, proxy_records * Access as: posthog.proxyRecordsList() */ proxyRecordsList: () => Promise<({ results: ({ id: string; domain: string; target_cname: string; status: "waiting" | "issuing" | "valid" | "warning" | "erroring" | "deleting" | "timed_out"; message: string | null; created_at: string; updated_at: string; created_by: number })[]; max_proxy_records: number })[]>; /** * Create a new managed reverse proxy. Provide the domain you want to proxy through. The response includes the CNAME target you need to add as a DNS record. Once the CNAME is configured, the proxy will be automatically verified and provisioned. * Tags: reverse_proxy, proxy_records * Access as: posthog.proxyRecordsCreate() */ proxyRecordsCreate: () => Promise<{ id: string; domain: string; target_cname: string; status: "waiting" | "issuing" | "valid" | "warning" | "erroring" | "deleting" | "timed_out"; message: string | null; created_at: string; updated_at: string; created_by: number }>; /** * Get details of a specific reverse proxy by ID. Returns the full configuration including domain, CNAME target, and current provisioning status. * Tags: reverse_proxy, proxy_records * Access as: posthog.proxyRecordsRetrieve() */ proxyRecordsRetrieve: () => Promise<{ id: string; domain: string; target_cname: string; status: "waiting" | "issuing" | "valid" | "warning" | "erroring" | "deleting" | "timed_out"; message: string | null; created_at: string; updated_at: string; created_by: number }>; /** * Delete a reverse proxy. For proxies in 'waiting', 'erroring', or 'timed_out' status, the record is deleted immediately. For active proxies, a deletion workflow is started to clean up the provisioned infrastructure. * Tags: reverse_proxy, proxy_records * Access as: posthog.proxyRecordsDestroy() */ proxyRecordsDestroy: () => Promise; /** * Run a deep diagnostic on a reverse proxy. Inspects DNS CNAME alignment, the certificate provider's hostname state, CAA records walked up the customer's DNS tree, HTTP-01 challenge reachability, a live event probe, and certificate expiry. Returns a structured report with each check's status and concrete remediation steps (e.g. exact DNS records to add). Use this to debug why a proxy is stuck or erroring. * Tags: reverse_proxy, proxy_records * Access as: posthog.proxyRecordsDiagnoseCreate() */ proxyRecordsDiagnoseCreate: () => Promise<{ ran_at: string; summary: { status: "healthy" | "warn" | "fail"; primary_issue: string | null; next_action: string | null }; checks: ({ id: string; name: string; status: "passed" | "warned" | "failed" | "skipped"; detail: string; remediation?: { type: "dns" | "config" | "wait" | "retry"; summary: string; records: ({ name: string; type: string; value: string })[] } | null })[] }>; /** * Retry provisioning a failed reverse proxy. Only available for proxies in 'erroring' or 'timed_out' status. Resets the proxy to 'waiting' status and restarts the provisioning workflow. * Tags: reverse_proxy, proxy_records * Access as: posthog.proxyRecordsRetryCreate() */ proxyRecordsRetryCreate: () => Promise<{ id: string; domain: string; target_cname: string; status: "waiting" | "issuing" | "valid" | "warning" | "erroring" | "deleting" | "timed_out"; message: string | null; created_at: string; updated_at: string; created_by: number }>; /** * * Tags: organizations, role_external_references * Access as: posthog.roleExternalReferencesList() */ roleExternalReferencesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; provider: string; provider_organization_id: string; provider_role_id: string; provider_role_slug?: string | null; provider_role_name: string; role: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * * Tags: organizations, role_external_references * Access as: posthog.roleExternalReferencesCreate() */ roleExternalReferencesCreate: () => Promise<{ id: string; provider: string; provider_organization_id: string; provider_role_id: string; provider_role_slug?: string | null; provider_role_name: string; role: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: organizations, role_external_references * Access as: posthog.roleExternalReferencesDestroy() */ roleExternalReferencesDestroy: () => Promise; /** * * Tags: organizations, role_external_references * Access as: posthog.roleExternalReferencesLookupRetrieve() */ roleExternalReferencesLookupRetrieve: () => Promise<{ reference: { id: string; provider: string; provider_organization_id: string; provider_role_id: string; provider_role_slug?: string | null; provider_role_name: string; role: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } } | null }>; /** * * Tags: organizations, roles * Access as: posthog.rolesList() */ rolesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; members: ({ [key: string]: unknown })[]; is_default: boolean })[] }>; /** * * Tags: organizations, roles * Access as: posthog.rolesCreate() */ rolesCreate: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; members: ({ [key: string]: unknown })[]; is_default: boolean }>; /** * * Tags: organizations, roles * Access as: posthog.rolesRetrieve() */ rolesRetrieve: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; members: ({ [key: string]: unknown })[]; is_default: boolean }>; /** * * Tags: organizations, roles * Access as: posthog.rolesUpdate() */ rolesUpdate: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; members: ({ [key: string]: unknown })[]; is_default: boolean }>; /** * * Tags: organizations, roles * Access as: posthog.rolesPartialUpdate() */ rolesPartialUpdate: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; members: ({ [key: string]: unknown })[]; is_default: boolean }>; /** * * Tags: organizations, roles * Access as: posthog.rolesDestroy() */ rolesDestroy: () => Promise; /** * * Tags: organizations, roles * Access as: posthog.rolesRoleMembershipsList() */ rolesRoleMembershipsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; role_id: string; organization_member: { id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level?: 1 | 8 | 15; joined_at: string; updated_at: string; is_2fa_enabled: boolean; has_social_auth: boolean; last_login: string; search_match_type: "exact" | "similar" | null }; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown }; joined_at: string; updated_at: string; user_uuid: string })[] }>; /** * * Tags: organizations, roles * Access as: posthog.rolesRoleMembershipsCreate() */ rolesRoleMembershipsCreate: () => Promise<{ id: string; role_id: string; organization_member: { id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level?: 1 | 8 | 15; joined_at: string; updated_at: string; is_2fa_enabled: boolean; has_social_auth: boolean; last_login: string; search_match_type: "exact" | "similar" | null }; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown }; joined_at: string; updated_at: string; user_uuid: string }>; /** * * Tags: organizations, roles * Access as: posthog.rolesRoleMembershipsRetrieve() */ rolesRoleMembershipsRetrieve: () => Promise<{ id: string; role_id: string; organization_member: { id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level?: 1 | 8 | 15; joined_at: string; updated_at: string; is_2fa_enabled: boolean; has_social_auth: boolean; last_login: string; search_match_type: "exact" | "similar" | null }; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown }; joined_at: string; updated_at: string; user_uuid: string }>; /** * * Tags: organizations, roles * Access as: posthog.rolesRoleMembershipsDestroy() */ rolesRoleMembershipsDestroy: () => Promise; /** * Aggregated payload for the invited-user welcome screen. * Tags: organizations, welcome * Access as: posthog.welcomeCurrentRetrieve() */ welcomeCurrentRetrieve: () => Promise<{ organization_name: string; inviter: { name: string; email: string } | null; team_members: ({ name: string; email: string; avatar: string | null; role: string; last_active: "today" | "this_week" | "inactive" | "never" })[]; recent_activity: ({ type: string; actor_name: string; entity_name: string; entity_url: string | null; timestamp: string })[]; popular_dashboards: ({ id: number; name: string; description: string; team_id: number; url: string })[]; products_in_use: (string)[]; suggested_next_steps: ({ label: string; href: string; reason: string; docs_href?: string; product_key?: string })[]; is_organization_first_user: boolean }>; /** * * Tags: customer_analytics, account_notes * Access as: posthog.accountNotesList() */ accountNotesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ short_id: string; title: string | null; created_at: string; last_modified_at: string; account_id: string; account_name: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null })[] }>; /** * * Tags: account_relationship_definitions * Access as: posthog.accountRelationshipDefinitionsList() */ accountRelationshipDefinitionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string | null; is_single_holder?: boolean })[] }>; /** * * Tags: account_relationship_definitions * Access as: posthog.accountRelationshipDefinitionsCreate() */ accountRelationshipDefinitionsCreate: () => Promise<{ id: string; name: string; description?: string | null; is_single_holder?: boolean }>; /** * * Tags: account_relationship_definitions * Access as: posthog.accountRelationshipDefinitionsRetrieve() */ accountRelationshipDefinitionsRetrieve: () => Promise<{ id: string; name: string; description?: string | null; is_single_holder?: boolean }>; /** * * Tags: account_relationship_definitions * Access as: posthog.accountRelationshipDefinitionsUpdate() */ accountRelationshipDefinitionsUpdate: () => Promise<{ id: string; name: string; description?: string | null; is_single_holder?: boolean }>; /** * * Tags: account_relationship_definitions * Access as: posthog.accountRelationshipDefinitionsPartialUpdate() */ accountRelationshipDefinitionsPartialUpdate: () => Promise<{ id: string; name: string; description?: string | null; is_single_holder?: boolean }>; /** * * Tags: account_relationship_definitions * Access as: posthog.accountRelationshipDefinitionsDestroy() */ accountRelationshipDefinitionsDestroy: () => Promise; /** * * Tags: accounts * Access as: posthog.accountsList() */ accountsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null })[] }>; /** * * Tags: accounts * Access as: posthog.accountsCreate() */ accountsCreate: () => Promise<{ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsCustomPropertyValuesList() */ accountsCustomPropertyValuesList: () => Promise<({ id: string; account_id: string; definition_id: string; value: string | number | boolean; created_at: string; created_by_id: number | null })[]>; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsCustomPropertyValuesCreate() */ accountsCustomPropertyValuesCreate: () => Promise<{ id: string; account_id: string; definition_id: string; value: string | number | boolean; created_at: string; created_by_id: number | null }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsNotebooksList() */ accountsNotebooksList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsNotebooksCreate() */ accountsNotebooksCreate: () => Promise<{ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsNotebooksRetrieve() */ accountsNotebooksRetrieve: () => Promise<{ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsNotebooksDestroy() */ accountsNotebooksDestroy: () => Promise; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsRelationshipsList() */ accountsRelationshipsList: () => Promise<({ id: string; definition: { id: string; name: string; description?: string | null; is_single_holder?: boolean }; user: { id: number; email: string } | null; started_at: string; ended_at: string | null })[]>; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsRelationshipsCreate() */ accountsRelationshipsCreate: () => Promise<{ id: string; definition: { id: string; name: string; description?: string | null; is_single_holder?: boolean }; user: { id: number; email: string } | null; started_at: string; ended_at: string | null }>; /** * * Tags: customer_analytics, accounts * Access as: posthog.accountsRelationshipsEndCreate() */ accountsRelationshipsEndCreate: () => Promise<{ id: string; definition: { id: string; name: string; description?: string | null; is_single_holder?: boolean }; user: { id: number; email: string } | null; started_at: string; ended_at: string | null }>; /** * * Tags: accounts * Access as: posthog.accountsRetrieve() */ accountsRetrieve: () => Promise<{ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: accounts * Access as: posthog.accountsUpdate() */ accountsUpdate: () => Promise<{ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: accounts * Access as: posthog.accountsPartialUpdate() */ accountsPartialUpdate: () => Promise<{ id: string; name: string; external_id?: string | null; properties?: { [key: string]: unknown } | null; tags?: (string)[]; notebooks: (string)[]; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: accounts * Access as: posthog.accountsDestroy() */ accountsDestroy: () => Promise; /** * * Tags: actions * Access as: posthog.actionsList() */ actionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name?: string | null; description?: string; tags?: (unknown)[]; post_to_slack?: boolean; slack_message_format?: string; steps?: ({ event?: string | null; properties?: unknown[] | null; selector?: string | null; selector_regex: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "regex" | "exact" | null; href?: string | null; href_matching?: "contains" | "regex" | "exact" | null; url?: string | null; url_matching?: unknown | unknown })[]; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown }; deleted?: boolean; is_calculating: boolean; last_calculated_at?: string; team_id: number; is_action: boolean; bytecode_error: string | null; pinned_at?: string | null; creation_context: string | null; _create_in_folder?: string; user_access_level: string | null })[] }>; /** * * Tags: actions * Access as: posthog.actionsCreate() */ actionsCreate: () => Promise<{ id: number; name?: string | null; description?: string; tags?: (unknown)[]; post_to_slack?: boolean; slack_message_format?: string; steps?: ({ event?: string | null; properties?: unknown[] | null; selector?: string | null; selector_regex: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "regex" | "exact" | null; href?: string | null; href_matching?: "contains" | "regex" | "exact" | null; url?: string | null; url_matching?: unknown | unknown })[]; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown }; deleted?: boolean; is_calculating: boolean; last_calculated_at?: string; team_id: number; is_action: boolean; bytecode_error: string | null; pinned_at?: string | null; creation_context: string | null; _create_in_folder?: string; user_access_level: string | null }>; /** * * Tags: actions * Access as: posthog.actionsRetrieve() */ actionsRetrieve: () => Promise<{ id: number; name?: string | null; description?: string; tags?: (unknown)[]; post_to_slack?: boolean; slack_message_format?: string; steps?: ({ event?: string | null; properties?: unknown[] | null; selector?: string | null; selector_regex: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "regex" | "exact" | null; href?: string | null; href_matching?: "contains" | "regex" | "exact" | null; url?: string | null; url_matching?: unknown | unknown })[]; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown }; deleted?: boolean; is_calculating: boolean; last_calculated_at?: string; team_id: number; is_action: boolean; bytecode_error: string | null; pinned_at?: string | null; creation_context: string | null; _create_in_folder?: string; user_access_level: string | null }>; /** * * Tags: actions * Access as: posthog.actionsUpdate() */ actionsUpdate: () => Promise<{ id: number; name?: string | null; description?: string; tags?: (unknown)[]; post_to_slack?: boolean; slack_message_format?: string; steps?: ({ event?: string | null; properties?: unknown[] | null; selector?: string | null; selector_regex: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "regex" | "exact" | null; href?: string | null; href_matching?: "contains" | "regex" | "exact" | null; url?: string | null; url_matching?: unknown | unknown })[]; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown }; deleted?: boolean; is_calculating: boolean; last_calculated_at?: string; team_id: number; is_action: boolean; bytecode_error: string | null; pinned_at?: string | null; creation_context: string | null; _create_in_folder?: string; user_access_level: string | null }>; /** * * Tags: actions * Access as: posthog.actionsPartialUpdate() */ actionsPartialUpdate: () => Promise<{ id: number; name?: string | null; description?: string; tags?: (unknown)[]; post_to_slack?: boolean; slack_message_format?: string; steps?: ({ event?: string | null; properties?: unknown[] | null; selector?: string | null; selector_regex: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "regex" | "exact" | null; href?: string | null; href_matching?: "contains" | "regex" | "exact" | null; url?: string | null; url_matching?: unknown | unknown })[]; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown }; deleted?: boolean; is_calculating: boolean; last_calculated_at?: string; team_id: number; is_action: boolean; bytecode_error: string | null; pinned_at?: string | null; creation_context: string | null; _create_in_folder?: string; user_access_level: string | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: actions * Access as: posthog.actionsDestroy() */ actionsDestroy: () => Promise; /** * * Tags: actions * Access as: posthog.actionsReferencesList() */ actionsReferencesList: () => Promise<({ type: string; id: string; name: string; url: string; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null })[]>; /** * Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list * Tags: actions * Access as: posthog.actionsBulkUpdateTagsCreate() */ actionsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: number; tags: (string)[] })[]; skipped: ({ id: number; reason: string })[] }>; /** * * Tags: activity_logs, activity_log * Access as: posthog.activityLogList() */ activityLogList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; unread: boolean; team_id?: number | null; organization_id?: string | null; was_impersonated?: boolean | null; is_system?: boolean | null; client?: string | null; ip_address?: string | null; activity: string; item_id?: string | null; scope: string; detail?: unknown; created_at?: string })[] }>; /** * * Tags: advanced_activity_logs * Access as: posthog.advancedActivityLogsList() */ advancedActivityLogsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; unread: boolean; team_id?: number | null; organization_id?: string | null; was_impersonated?: boolean | null; is_system?: boolean | null; client?: string | null; ip_address?: string | null; activity: string; item_id?: string | null; scope: string; detail?: unknown; created_at?: string })[] }>; /** * * Tags: advanced_activity_logs * Access as: posthog.advancedActivityLogsAvailableFiltersRetrieve() */ advancedActivityLogsAvailableFiltersRetrieve: () => Promise<{ static_filters: { users: ({ [key: string]: unknown })[]; scopes: ({ [key: string]: unknown })[]; activities: ({ [key: string]: unknown })[]; clients: ({ [key: string]: unknown })[] }; detail_fields: { [key: string]: unknown } }>; /** * * Tags: advanced_activity_logs * Access as: posthog.advancedActivityLogsExportCreate() */ advancedActivityLogsExportCreate: () => Promise<{ id: string; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; unread: boolean; team_id?: number | null; organization_id?: string | null; was_impersonated?: boolean | null; is_system?: boolean | null; client?: string | null; ip_address?: string | null; activity: string; item_id?: string | null; scope: string; detail?: unknown; created_at?: string }>; /** * Agent applications — the deployable unit of the platform. URLs: GET /api/projects//agent_applications/ list POST /api/projects//agent_applications/ create GET /api/projects//agent_applications// retrieve PATCH /api/projects//agent_applications// update DELETE /api/projects//agent_applications// archive POST /api/projects//agent_applications//set_env/ bulk replace env GET /api/projects//agent_applications//env_keys/ list set keys GET /api/projects//agent_applications//env_keys// is one key set? PUT /api/projects//agent_applications//env_keys// set one key DELETE /api/projects//agent_applications//env_keys// clear one key * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsList() */ agentApplicationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; team_id: number; name: string; slug?: string; description?: string; live_revision: string | null; archived?: boolean; archived_at: string | null; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string; slack_events_url: string | null; slack_interactivity_url: string | null; ingress_base_url: string | null })[] }>; /** * Agent applications — the deployable unit of the platform. URLs: GET /api/projects//agent_applications/ list POST /api/projects//agent_applications/ create GET /api/projects//agent_applications// retrieve PATCH /api/projects//agent_applications// update DELETE /api/projects//agent_applications// archive POST /api/projects//agent_applications//set_env/ bulk replace env GET /api/projects//agent_applications//env_keys/ list set keys GET /api/projects//agent_applications//env_keys// is one key set? PUT /api/projects//agent_applications//env_keys// set one key DELETE /api/projects//agent_applications//env_keys// clear one key * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsCreate() */ agentApplicationsCreate: () => Promise<{ id: string; team_id: number; name: string; slug?: string; description?: string; live_revision: string | null; archived?: boolean; archived_at: string | null; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string; slack_events_url: string | null; slack_interactivity_url: string | null; ingress_base_url: string | null }>; /** * List memory file headers under the agent's prefix. Headers only — no bodies. * Tags: agent_platform, agent_applications * Access as: posthog.agentMemoryListFiles() */ agentMemoryListFiles: () => Promise<{ count: number; entries: ({ path: string; description: string; tags: (string)[]; created_at: string | null; updated_at: string | null })[] }>; /** * Create a memory file. Fails if the path already exists — use the update endpoint to overwrite. * Tags: agent_platform, agent_applications * Access as: posthog.agentMemoryCreateFile() */ agentMemoryCreateFile: () => Promise<{ content: string }>; /** * Read one memory file in full (frontmatter + markdown body). * Tags: agent_platform, agent_applications * Access as: posthog.agentMemoryGetFile() */ agentMemoryGetFile: () => Promise<{ content: string }>; /** * Update a memory file. Any field omitted is preserved from the existing file. * Tags: agent_platform, agent_applications * Access as: posthog.agentMemoryUpdateFile() */ agentMemoryUpdateFile: () => Promise<{ content: string }>; /** * Hard-delete a memory file. Activity log captures the action against the agent. * Tags: agent_platform, agent_applications * Access as: posthog.agentMemoryDeleteFile() */ agentMemoryDeleteFile: () => Promise; /** * BM25 search across the agent's memory files. Ranks by description+tags+path+body with field weighting. * Tags: agent_platform, agent_applications * Access as: posthog.agentMemorySearch() */ agentMemorySearch: () => Promise<{ cue: string; count: number; results: ({ path: string; description: string; tags: (string)[]; score: number; snippet: string | null })[] }>; /** * List the agent's tabular-reference tables (the @posthog/table-* JSONL tables): name + byte size. * Tags: agent_platform, agent_applications * Access as: posthog.agentMemoryListTables() */ agentMemoryListTables: () => Promise<{ count: number; tables: ({ name: string; size: number })[] }>; /** * Read rows from one tabular-reference table (capped via ?limit). * Tags: agent_platform, agent_applications * Access as: posthog.agentMemoryReadTable() */ agentMemoryReadTable: () => Promise<{ name: string; total: number; returned: number; limit: number; rows: ({ [key: string]: unknown })[] }>; /** * Pre-aggregated folder tree of memory files. Saves the frontend re-derivation work. * Tags: agent_platform, agent_applications * Access as: posthog.agentMemoryTree() */ agentMemoryTree: () => Promise<{ root: { [key: string]: unknown } }>; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsList() */ agentApplicationsRevisionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string })[] }>; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsCreate() */ agentApplicationsRevisionsCreate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsRetrieve() */ agentApplicationsRevisionsRetrieve: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Spec edits are only allowed while state='draft'. Once promoted to ready/live the spec is frozen — change requires a new revision. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsUpdate() */ agentApplicationsRevisionsUpdate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsPartialUpdate() */ agentApplicationsRevisionsPartialUpdate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsDestroy() */ agentApplicationsRevisionsDestroy: () => Promise; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsAgentMdUpdate() */ agentApplicationsRevisionsAgentMdUpdate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Mark a revision archived. If it was the live one, clear the application's live_revision pointer (the app effectively has no deployable version until another revision is promoted). * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsArchiveCreate() */ agentApplicationsRevisionsArchiveCreate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Read the full typed bundle: `{ agent_md, skills, tools, spec }`. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsBundleRetrieve() */ agentApplicationsRevisionsBundleRetrieve: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Full-replace the typed bundle. Anything not in the payload is deleted. Tool sources are AST-checked + esbuild-compiled by the janitor before any S3 writes. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsBundleUpdate() */ agentApplicationsRevisionsBundleUpdate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Update one `.md` file on a draft revision. `agent.md` writes go to the draft bundle. `skills//SKILL.md` writes are store-backed — skills are materialized from the skill store at freeze, so the edit publishes a new version of the referenced store skill and re-pins the draft's `skill_refs` entry to it. `` must be a ref alias on this revision; add new skills via `bundle/import/` or `skill_refs`. Tool source / schema editing is out of scope here — use the per-tool endpoints. Returns the updated revision so the caller can refresh in one round-trip. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsBundleFileUpdate() */ agentApplicationsRevisionsBundleFileUpdate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Bulk-merge a set of `.md` files into a draft revision. Sets `agent_md` on the draft bundle if present. `skills[]` are store-backed and merge by `id`: an id already referenced by the draft publishes a new version of its store skill; an unreferenced id attaches the store skill of that name (publishing the payload's body to it), or creates it when no such skill exists — and each ref is (re-)pinned to the published version. Skills not mentioned are left alone, so the import is safe to retry. Draft-only; non-draft revisions return 409 untouched. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsBundleImportCreate() */ agentApplicationsRevisionsBundleImportCreate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Copy every file from `source_revision_id` into this revision. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsCloneFromCreate() */ agentApplicationsRevisionsCloneFromCreate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Fire one cron job out-of-band — the same execution path the scheduler walks, but on demand. Authoring UX: the user iterates on a cron prompt by clicking 'Fire now' rather than waiting for the next scheduled firing. Without this, 'did my prompt do the right thing?' is unanswerable until the cron actually fires. Idempotent via `request_id`: repeat clicks with the same id resolve to the same session id rather than firing N times. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsCronFireCreate() */ agentApplicationsRevisionsCronFireCreate: () => Promise<{ ok: boolean; session_id: string; fired_at: string; idempotency_key: string; request_id: string }>; /** * List the names of secrets currently set on this revision. Returns names only — values stay server-side under `EncryptedTextField`. Use this to drive the "set / unset" badge next to a declared secret in the editor UI. * Tags: agent_platform, agent_applications * Access as: posthog.agentRevisionsEnvKeysList() */ agentRevisionsEnvKeysList: () => Promise<{ keys: (string)[] }>; /** * GET / PUT / DELETE one secret by name on this revision. - `GET` → `{ key, is_set }` (never returns the value). - `PUT` → upserts `{ value }` into the env block. - `DELETE` → removes the key. No-op when it wasn't set. Per-method scope: GET is treated as a write action so the single action name maps to one consistent scope; reading whether a secret is set is restricted to writers in any case. * Tags: agent_platform, agent_applications * Access as: posthog.agentRevisionsEnvKeysGet() */ agentRevisionsEnvKeysGet: () => Promise<{ key: string; is_set: boolean }>; /** * GET / PUT / DELETE one secret by name on this revision. - `GET` → `{ key, is_set }` (never returns the value). - `PUT` → upserts `{ value }` into the env block. - `DELETE` → removes the key. No-op when it wasn't set. Per-method scope: GET is treated as a write action so the single action name maps to one consistent scope; reading whether a secret is set is restricted to writers in any case. * Tags: agent_platform, agent_applications * Access as: posthog.agentRevisionsEnvKeysSet() */ agentRevisionsEnvKeysSet: () => Promise<{ key: string; is_set: boolean }>; /** * GET / PUT / DELETE one secret by name on this revision. - `GET` → `{ key, is_set }` (never returns the value). - `PUT` → upserts `{ value }` into the env block. - `DELETE` → removes the key. No-op when it wasn't set. Per-method scope: GET is treated as a write action so the single action name maps to one consistent scope; reading whether a secret is set is restricted to writers in any case. * Tags: agent_platform, agent_applications * Access as: posthog.agentRevisionsEnvKeysClear() */ agentRevisionsEnvKeysClear: () => Promise; /** * Freeze the bundle: draft → ready, stamps sha256 on the row. Django is a thin proxy here: resolve template refs into the bundle, ask the janitor to seal it (the janitor returns the sha + the spec it derived from the typed resources), then stamp the row. No `transaction.atomic()` — the janitor's freeze is idempotent (on retry it re-reads the existing `.frozen` marker + re-derives spec), so a partial failure here is recoverable by re-calling freeze, not by transactional rollback. Holding an atomic block across the janitor HTTP call previously deadlocked the agent_revision row against the janitor's spec write — that's moved off the janitor side as part of the same fix. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsFreezeCreate() */ agentApplicationsRevisionsFreezeCreate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * List every file in this revision's bundle (path, size, sha256). * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsManifestRetrieve() */ agentApplicationsRevisionsManifestRetrieve: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * ready → live. Sets the parent application's live_revision. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsPromoteCreate() */ agentApplicationsRevisionsPromoteCreate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Replace this revision's encrypted env block. The body is `{ "env": { "": "", ... } }`. The encrypted text is stored on `AgentRevision.encrypted_env`; the worker decrypts it at session start via the same Fernet schedule (see agent-shared/src/runtime/encryption.ts). * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsSetEnvCreate() */ agentApplicationsRevisionsSetEnvCreate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Full-replace the draft's store-skill references. They are resolved and materialized into the bundle at freeze, not here — this only records which skills (and pinned versions) the freeze should pull in. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsSkillRefsUpdate() */ agentApplicationsRevisionsSkillRefsUpdate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Build a Slack app manifest for this revision's slack trigger. Deterministic: the OAuth scopes and bot event subscriptions are derived from the slack trigger config (`mention_only` / `auto_resume_threads` / `ack_reaction`) and the agent's Slack tools, so the manifest already subscribes to exactly the events the config needs. 400 if the revision has no slack trigger. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsSlackManifest() */ agentApplicationsRevisionsSlackManifest: () => Promise<{ revision_id: string; manifest: unknown; notes: (string)[]; events_url: string | null; interactivity_url: string | null }>; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsSpecUpdate() */ agentApplicationsRevisionsSpecUpdate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Return the fully-assembled system prompt for this revision. Authoring tools call this to preview what the model will actually see at session start — the platform framework preamble plus the bundle's `agent.md` plus the skills index. Useful for debugging author-vs-framework precedence conflicts and verifying `spec.framework_prompt.omit` overrides took effect. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsSystemPrompt() */ agentApplicationsRevisionsSystemPrompt: () => Promise<{ revision_id: string; framework_prompt_version: number; system_prompt: string }>; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsToolsUpdate() */ agentApplicationsRevisionsToolsUpdate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions// retrieve PATCH .../revisions// update spec (draft only) Lifecycle: POST .../revisions//promote/ ready → live POST .../revisions//archive/ → archived POST .../revisions//freeze/ draft → ready (stamps sha256) POST .../revisions//clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions//manifest/ list paths + sha256 GET .../revisions//file/?path=… read one file PUT .../revisions//file/?path=… write one file (draft) DELETE .../revisions//file/?path=… delete one file (draft) GET .../revisions//bundle/ bulk pull all files PUT .../revisions//bundle/ bulk push (replace|merge) * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsToolsDestroy() */ agentApplicationsRevisionsToolsDestroy: () => Promise; /** * Execute one persisted custom tool in a single-shot sandbox. Authoring loop's "test this tool" button. The tool's source must already be PUT (compiled.js is what runs); this just invokes it with the caller-supplied args and a stubbed ctx. No real secrets leave Django — `mock_secrets` is a `{name → placeholder}` map. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsToolsDryRunCreate() */ agentApplicationsRevisionsToolsDryRunCreate: () => Promise<{ ok: boolean; tool_id: string; result?: unknown; error?: { code: string; message: string }; duration_ms: number }>; /** * Pre-flight checks before freeze + promote: agent.md exists, every native tool id is registered, every custom tool has its compiled.js + schema.json, every skill path exists, every declared secret has a value set in this revision's env block. Returns `{ ok, errors: [...] }`. Works on any revision state. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsValidateCreate() */ agentApplicationsRevisionsValidateCreate: () => Promise<{ ok: boolean; revision_id: string; revision_state: string; errors: ({ code: string; message: string; pointer: string })[]; resolved_natives: (string)[] }>; /** * Create a fresh draft revision under `application_id` and seed it from `source_revision_id`. Saves the MCP one round-trip vs the explicit create + clone_from sequence. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRevisionsNewDraftCreate() */ agentApplicationsRevisionsNewDraftCreate: () => Promise<{ id: string; application: string; parent_revision?: string | null; state: "draft" | "ready" | "live" | "archived"; bundle_uri?: string; bundle_sha256: string | null; spec?: unknown; skill_refs: ({ from_template: string; alias: string; version?: number })[]; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string }>; /** * Agent applications — the deployable unit of the platform. URLs: GET /api/projects//agent_applications/ list POST /api/projects//agent_applications/ create GET /api/projects//agent_applications// retrieve PATCH /api/projects//agent_applications// update DELETE /api/projects//agent_applications// archive POST /api/projects//agent_applications//set_env/ bulk replace env GET /api/projects//agent_applications//env_keys/ list set keys GET /api/projects//agent_applications//env_keys// is one key set? PUT /api/projects//agent_applications//env_keys// set one key DELETE /api/projects//agent_applications//env_keys// clear one key * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsRetrieve() */ agentApplicationsRetrieve: () => Promise<{ id: string; team_id: number; name: string; slug?: string; description?: string; live_revision: string | null; archived?: boolean; archived_at: string | null; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string; slack_events_url: string | null; slack_interactivity_url: string | null; ingress_base_url: string | null }>; /** * Agent applications — the deployable unit of the platform. URLs: GET /api/projects//agent_applications/ list POST /api/projects//agent_applications/ create GET /api/projects//agent_applications// retrieve PATCH /api/projects//agent_applications// update DELETE /api/projects//agent_applications// archive POST /api/projects//agent_applications//set_env/ bulk replace env GET /api/projects//agent_applications//env_keys/ list set keys GET /api/projects//agent_applications//env_keys// is one key set? PUT /api/projects//agent_applications//env_keys// set one key DELETE /api/projects//agent_applications//env_keys// clear one key * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsUpdate() */ agentApplicationsUpdate: () => Promise<{ id: string; team_id: number; name: string; slug?: string; description?: string; live_revision: string | null; archived?: boolean; archived_at: string | null; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string; slack_events_url: string | null; slack_interactivity_url: string | null; ingress_base_url: string | null }>; /** * Agent applications — the deployable unit of the platform. URLs: GET /api/projects//agent_applications/ list POST /api/projects//agent_applications/ create GET /api/projects//agent_applications// retrieve PATCH /api/projects//agent_applications// update DELETE /api/projects//agent_applications// archive POST /api/projects//agent_applications//set_env/ bulk replace env GET /api/projects//agent_applications//env_keys/ list set keys GET /api/projects//agent_applications//env_keys// is one key set? PUT /api/projects//agent_applications//env_keys// set one key DELETE /api/projects//agent_applications//env_keys// clear one key * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsPartialUpdate() */ agentApplicationsPartialUpdate: () => Promise<{ id: string; team_id: number; name: string; slug?: string; description?: string; live_revision: string | null; archived?: boolean; archived_at: string | null; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string; slack_events_url: string | null; slack_interactivity_url: string | null; ingress_base_url: string | null }>; /** * Agent applications — the deployable unit of the platform. URLs: GET /api/projects//agent_applications/ list POST /api/projects//agent_applications/ create GET /api/projects//agent_applications// retrieve PATCH /api/projects//agent_applications// update DELETE /api/projects//agent_applications// archive POST /api/projects//agent_applications//set_env/ bulk replace env GET /api/projects//agent_applications//env_keys/ list set keys GET /api/projects//agent_applications//env_keys// is one key set? PUT /api/projects//agent_applications//env_keys// set one key DELETE /api/projects//agent_applications//env_keys// clear one key * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsDestroy() */ agentApplicationsDestroy: () => Promise; /** * List approval-gated tool requests for this application. Team-admin only (per plan §6.1). Default returns all states — pass `?state=queued` for the inbox view. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsApprovalsList() */ agentApplicationsApprovalsList: () => Promise<{ results: ({ id: string; session_id: string; application_id: string; team_id: number; revision_id: string; turn: number; tool_call_id: string; tool_name: string; proposed_args: { [key: string]: unknown }; decided_args: { [key: string]: unknown } | null; assistant_message: { [key: string]: unknown }; approver_scope: { [key: string]: unknown }; state: "queued" | "approving" | "dispatched" | "dispatched_failed" | "rejected" | "expired"; decision_by: string | null; decision_at: string | null; decision_reason: string | null; dispatch_outcome: { [key: string]: unknown } | null; created_at: string; expires_at: string })[] }>; /** * Single approval request — full proposed args, assistant snapshot, decision metadata, dispatch outcome. Team-admin only (plan §6.1). * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsApprovalsRetrieve() */ agentApplicationsApprovalsRetrieve: () => Promise; /** * Approve or reject a queued `agent`-type tool-approval request. This is the OWNER decision surface — the only PostHog-authoritative one: team admins decide here, in the console. `principal`-type approvals are decided by the session principal at the ingress decision API, not here. The runtime side runs the tool platform-side on approve and wakes the session with a synthetic tool_result either way. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsApprovalsDecide() */ agentApplicationsApprovalsDecide: () => Promise<{ ok: boolean; state: string }>; /** * GET passthrough for the preview-proxy — used for `/listen` SSE. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsPreviewProxyGet() */ agentApplicationsPreviewProxyGet: () => Promise<{ id: string; team_id: number; name: string; slug?: string; description?: string; live_revision: string | null; archived?: boolean; archived_at: string | null; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string; slack_events_url: string | null; slack_interactivity_url: string | null; ingress_base_url: string | null }>; /** * Authoring-side proxy for invoking a *draft* (or any non-live) revision. Closes the anonymous-draft-invoke gap: the public ingress URL refuses non-live invokes that don't carry the `x-agent-preview-secret` header; this proxy attaches it after authenticating the Django caller. URL: `/api/projects//agent_applications//preview-proxy/` Auth: standard PAT / session — `agents:write` scope (POST run/send/cancel is a mutating invoke; the read-only `listen` GET is `agents:read`). * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsPreviewProxy() */ agentApplicationsPreviewProxy: () => Promise; /** * GET sibling of `preview_token_mint`. Same body and response shape — exists because `EventSource` can't set headers, so SSE callers fetch the token via GET and then attach `?preview_token=` to the ingress URL. Behind the same URL (`url_path="preview-token"`) thanks to DRF's `@.mapping.get`; DRF resolves it to a distinct `view.action`, but it is in `scope_object_write_actions` alongside the POST sibling — both return a usable credential, so both require `agents:write`. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsPreviewToken() */ agentApplicationsPreviewToken: () => Promise<{ token: string; expires_in: number; ingress_slug: string; endpoints: unknown; auth: unknown; preview_proxy: unknown }>; /** * Mint a short-lived JWT for talking to a non-live revision directly via the public ingress URL. The caller attaches it as the `x-agent-preview-token` header (or `?preview_token=` query param for `EventSource`). See `_mint_preview_jwt` for the payload + claim binding. The response also includes `endpoints`, `auth`, and `preview_proxy` blocks so the caller can wire a preview invocation without grepping the agent-ingress source for which path each trigger exposes or which header name carries the token. This is the "self-describing" half of preview-mode — every piece of info you need to hit ingress is in one response. POST is the canonical verb — minting credentials for downstream `run`/`send`/`cancel` is a write-class capability. A GET sibling exists at the same URL for `EventSource` callers (which can't set headers); it is also write-scoped, since it returns the same token. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsPreviewTokenMint() */ agentApplicationsPreviewTokenMint: () => Promise<{ token: string; expires_in: number; ingress_slug: string; endpoints: unknown; auth: unknown; preview_proxy: unknown }>; /** * List sessions for this application, most recently active first. Strips the conversation transcript from each summary, but includes a `preview` (last assistant text, ~120 chars) and `usage_total` (token + cost aggregate). Use `agent-applications-sessions-retrieve` for the full transcript of a single session. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsSessionsList() */ agentApplicationsSessionsList: () => Promise<{ results: ({ usage_total: { tokens_in: number; tokens_out: number; cache_read: number; cache_write: number; cost_input: number; cost_output: number; cost_cache_read: number; cost_cache_write: number; cost_total: number }; principal: { kind: "anonymous" | "service" | "internal" | "shared_secret" | "slack"; id?: string; team_id?: number } | null; id: string; application_id: string; revision_id: string; state: "queued" | "running" | "completed" | "closed" | "cancelled" | "failed"; external_key: string | null; trigger_metadata?: { [key: string]: unknown } | null; turns: number; preview: string | null; retry_count: number; created_at: string; updated_at: string })[]; count: number }>; /** * Fetch one session's state — full conversation by default, or just the trailing N messages with `?last_n=`. Always returns a `usage_total` block aggregated over the entire session, regardless of trim. The runner-side queue DB is the source of truth. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsSessionsRetrieve() */ agentApplicationsSessionsRetrieve: () => Promise<{ usage_total: { tokens_in: number; tokens_out: number; cache_read: number; cache_write: number; cost_input: number; cost_output: number; cost_cache_read: number; cost_cache_write: number; cost_total: number }; principal: { kind: "anonymous" | "service" | "internal" | "shared_secret" | "slack"; id?: string; team_id?: number } | null; id: string; application_id: string; revision_id: string; team_id: number; external_key: string | null; trigger_metadata?: { [key: string]: unknown } | null; state: "queued" | "running" | "completed" | "closed" | "cancelled" | "failed"; conversation: ({ role: "user"; content: unknown; timestamp: number } | { role: "assistant"; content: (unknown)[]; timestamp: number; api?: string; provider?: string; model?: string; usage?: { [key: string]: unknown }; stopReason?: "stop" | "length" | "toolUse" | "error" | "aborted"; errorMessage?: string } | { role: "toolResult"; toolCallId: string; toolName: string; content: (unknown)[]; isError: boolean; timestamp: number })[]; pending_inputs: ({ role: "user"; content: unknown; timestamp: number } | { role: "assistant"; content: (unknown)[]; timestamp: number; api?: string; provider?: string; model?: string; usage?: { [key: string]: unknown }; stopReason?: "stop" | "length" | "toolUse" | "error" | "aborted"; errorMessage?: string } | { role: "toolResult"; toolCallId: string; toolName: string; content: (unknown)[]; isError: boolean; timestamp: number })[]; retry_count: number; created_at: string; updated_at: string; conversation_trimmed: boolean; conversation_total_turns?: number }>; /** * Read the runner's structured event log for one session from ClickHouse. Filters (limit / after / before / level / search) match the shared `LogEntryMixin` helper used by hog_function + hog_flow. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsSessionLogs() */ agentApplicationsSessionLogs: () => Promise<{ results: ({ log_source_id: string; instance_id: string; timestamp: string; level: string; message: string })[] }>; /** * Roll-up stats for the agent — drives the agent-detail overview tiles. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsStats() */ agentApplicationsStats: () => Promise<{ liveCount: number; sessionsInWindowCount: number; spendInWindowUsd: number; lastActivityAt: string | null; failedInWindowCount: number; pendingApprovalsCount: number }>; /** * List this agent's end-users (the stable identities behind inbound principals) and each user's linked external connections. Connection metadata only — credential material is never returned. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsUsersList() */ agentApplicationsUsersList: () => Promise<{ count: number; results: ({ id: string; principal_kind: string; principal_id: string; metadata?: unknown; created_at: string; connections: ({ id: string; provider: string; scopes: (string)[]; state: string; subject?: string | null; access_expires_at?: string | null; created_at: string; updated_at: string; revoked_at?: string | null })[] })[] }>; /** * Revoke one of an end-user's linked connections. The credential is marked revoked (kept for audit), so the agent can no longer act as that user on the provider. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsUsersConnectionDelete() */ agentApplicationsUsersConnectionDelete: () => Promise; /** * Served-model catalog — each model's id, provider, context window, and USD-per-million-token pricing — plus the curated auto-level → model map. Project-agnostic; sourced from the AI gateway catalog. Powers the config UI model browser and the agent builder's model-choosing skill. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsModels() */ agentApplicationsModels: () => Promise<{ id: string; team_id: number; name: string; slug?: string; description?: string; live_revision: string | null; archived?: boolean; archived_at: string | null; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string; slack_events_url: string | null; slack_interactivity_url: string | null; ingress_base_url: string | null }>; /** * The canonical JSON Schema for an agent `spec` — every field, type, enum, default, and the discriminated unions for `models` / `triggers[]` / `tools[]`, each with an inline description. Emitted from the same source the runner validates against (fields with a default are optional on write), so read it BEFORE composing a spec for create / revisions-spec-update instead of guessing the shape. Pass `section` to fetch just one part. * Tags: agent_platform, agent_applications * Access as: posthog.agentApplicationsSpecSchema() */ agentApplicationsSpecSchema: () => Promise<{ id: string; team_id: number; name: string; slug?: string; description?: string; live_revision: string | null; archived?: boolean; archived_at: string | null; created_by_id: number | null; created_by: { [key: string]: unknown } | null; created_at: string; updated_at: string; slack_events_url: string | null; slack_interactivity_url: string | null; ingress_base_url: string | null }>; /** * Approval-gated tool requests across every agent in this team. Team-admin only. * Tags: agent_platform, agent_fleet * Access as: posthog.agentFleetApprovalsList() */ agentFleetApprovalsList: () => Promise; /** * Live (non-terminal) sessions across every agent owned by this team, newest activity first. * Tags: agent_platform, agent_fleet * Access as: posthog.agentFleetLiveSessions() */ agentFleetLiveSessions: () => Promise<{ results: ({ usage_total: { tokens_in: number; tokens_out: number; cache_read: number; cache_write: number; cost_input: number; cost_output: number; cost_cache_read: number; cost_cache_write: number; cost_total: number }; principal: { kind: "anonymous" | "service" | "internal" | "shared_secret" | "slack"; id?: string; team_id?: number } | null; id: string; application_id: string; revision_id: string; team_id: number; state: "queued" | "running" | "completed" | "closed" | "cancelled" | "failed"; external_key: string | null; trigger_metadata?: { [key: string]: unknown } | null; turns: number; preview: string | null; created_at: string; updated_at: string })[] }>; /** * Roll-up stats across every agent owned by this team. * Tags: agent_platform, agent_fleet * Access as: posthog.agentFleetStats() */ agentFleetStats: () => Promise<{ liveCount: number; sessionsInWindowCount: number; spendInWindowUsd: number; lastActivityAt: string | null; failedInWindowCount: number; pendingApprovalsCount: number }>; /** * Read-only catalog of every @posthog/* native tool the runner knows. * Tags: agent_platform, agent_native_tools * Access as: posthog.agentNativeToolsList() */ agentNativeToolsList: () => Promise<({ tools: ({ id: string; schema: { [key: string]: unknown } })[] })[]>; /** * * Tags: alerts * Access as: posthog.alertsList() */ alertsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown })[] }>; /** * * Tags: alerts * Access as: posthog.alertsCreate() */ alertsCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: alerts * Access as: posthog.alertsRetrieve() */ alertsRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: alerts * Access as: posthog.alertsUpdate() */ alertsUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: alerts * Access as: posthog.alertsPartialUpdate() */ alertsPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: alerts * Access as: posthog.alertsDestroy() */ alertsDestroy: () => Promise; /** * Simulate a detector on an insight's historical data. Read-only — no AlertCheck records are created. * Tags: alerts * Access as: posthog.alertsSimulateCreate() */ alertsSimulateCreate: () => Promise<{ data: (number)[]; dates: (string)[]; scores: (number | null)[]; triggered_indices: (number)[]; triggered_dates: (string)[]; interval: string | null; total_points: number; anomaly_count: number; sub_detector_scores?: ({ [key: string]: unknown })[]; breakdown_results?: ({ label: string; data: (number)[]; dates: (string)[]; scores: (number | null)[]; triggered_indices: (number)[]; triggered_dates: (string)[]; total_points: number; anomaly_count: number; sub_detector_scores?: ({ [key: string]: unknown })[] })[] }>; /** * Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. * Tags: annotations * Access as: posthog.annotationsList() */ annotationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; content?: string | null; date_marker?: string | null; creation_type?: "USR" | "GIT"; dashboard_item?: number | null; dashboard_id?: number | null; dashboard_name: string | null; insight_short_id: string | null; insight_name: string | null; insight_derived_name: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string; deleted?: boolean; scope?: "dashboard_item" | "dashboard" | "project" | "organization" | "recording"; emoji?: string | null; hidden_in_user_interface?: boolean | null })[] }>; /** * Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. * Tags: annotations * Access as: posthog.annotationsCreate() */ annotationsCreate: () => Promise<{ id: number; content?: string | null; date_marker?: string | null; creation_type?: "USR" | "GIT"; dashboard_item?: number | null; dashboard_id?: number | null; dashboard_name: string | null; insight_short_id: string | null; insight_name: string | null; insight_derived_name: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string; deleted?: boolean; scope?: "dashboard_item" | "dashboard" | "project" | "organization" | "recording"; emoji?: string | null; hidden_in_user_interface?: boolean | null }>; /** * Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. * Tags: annotations * Access as: posthog.annotationsRetrieve() */ annotationsRetrieve: () => Promise<{ id: number; content?: string | null; date_marker?: string | null; creation_type?: "USR" | "GIT"; dashboard_item?: number | null; dashboard_id?: number | null; dashboard_name: string | null; insight_short_id: string | null; insight_name: string | null; insight_derived_name: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string; deleted?: boolean; scope?: "dashboard_item" | "dashboard" | "project" | "organization" | "recording"; emoji?: string | null; hidden_in_user_interface?: boolean | null }>; /** * Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. * Tags: annotations * Access as: posthog.annotationsUpdate() */ annotationsUpdate: () => Promise<{ id: number; content?: string | null; date_marker?: string | null; creation_type?: "USR" | "GIT"; dashboard_item?: number | null; dashboard_id?: number | null; dashboard_name: string | null; insight_short_id: string | null; insight_name: string | null; insight_derived_name: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string; deleted?: boolean; scope?: "dashboard_item" | "dashboard" | "project" | "organization" | "recording"; emoji?: string | null; hidden_in_user_interface?: boolean | null }>; /** * Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations. * Tags: annotations * Access as: posthog.annotationsPartialUpdate() */ annotationsPartialUpdate: () => Promise<{ id: number; content?: string | null; date_marker?: string | null; creation_type?: "USR" | "GIT"; dashboard_item?: number | null; dashboard_id?: number | null; dashboard_name: string | null; insight_short_id: string | null; insight_name: string | null; insight_derived_name: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string; deleted?: boolean; scope?: "dashboard_item" | "dashboard" | "project" | "organization" | "recording"; emoji?: string | null; hidden_in_user_interface?: boolean | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: annotations * Access as: posthog.annotationsDestroy() */ annotationsDestroy: () => Promise; /** * * Tags: platform_features, approval_policies * Access as: posthog.approvalPoliciesList() */ approvalPoliciesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null })[] }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.approvalPoliciesCreate() */ approvalPoliciesCreate: () => Promise<{ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.approvalPoliciesRetrieve() */ approvalPoliciesRetrieve: () => Promise<{ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.approvalPoliciesUpdate() */ approvalPoliciesUpdate: () => Promise<{ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.approvalPoliciesPartialUpdate() */ approvalPoliciesPartialUpdate: () => Promise<{ id: string; action_key: string; conditions?: unknown; approver_config: unknown; allow_self_approve?: boolean; bypass_org_membership_levels?: unknown; bypass_roles?: (string)[]; expires_after?: string; enabled?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: platform_features, approval_policies * Access as: posthog.approvalPoliciesDestroy() */ approvalPoliciesDestroy: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsList() */ batchExportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null })[] }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsCreate() */ batchExportsCreate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them. * Tags: batch_exports * Access as: posthog.batchExportsBackfillsList() */ batchExportsBackfillsList: () => Promise<{ next?: string | null; previous?: string | null; results: ({ id: string; progress: { [key: string]: unknown } | null; start_at?: string | null; end_at?: string | null; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "Terminated" | "TimedOut" | "Running" | "Starting"; created_at: string; finished_at?: string | null; last_updated_at: string; total_records_count?: number | null; adjusted_start_at?: string | null; team: number; batch_export: string })[] }>; /** * Create a new backfill for a BatchExport. * Tags: batch_exports * Access as: posthog.batchExportsBackfillsCreate() */ batchExportsBackfillsCreate: () => Promise<{ id: string; progress: { [key: string]: unknown } | null; start_at?: string | null; end_at?: string | null; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "Terminated" | "TimedOut" | "Running" | "Starting"; created_at: string; finished_at?: string | null; last_updated_at: string; total_records_count?: number | null; adjusted_start_at?: string | null; team: number; batch_export: string }>; /** * ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them. * Tags: batch_exports * Access as: posthog.batchExportsBackfillsRetrieve() */ batchExportsBackfillsRetrieve: () => Promise<{ id: string; progress: { [key: string]: unknown } | null; start_at?: string | null; end_at?: string | null; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "Terminated" | "TimedOut" | "Running" | "Starting"; created_at: string; finished_at?: string | null; last_updated_at: string; total_records_count?: number | null; adjusted_start_at?: string | null; team: number; batch_export: string }>; /** * Cancel a batch export backfill. * Tags: batch_exports * Access as: posthog.batchExportsBackfillsCancelCreate() */ batchExportsBackfillsCancelCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsRunsList() */ batchExportsRunsList: () => Promise<{ next?: string | null; previous?: string | null; results: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[] }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsRunsRetrieve() */ batchExportsRunsRetrieve: () => Promise<{ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null }>; /** * Cancel a batch export run. * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsRunsCancelCreate() */ batchExportsRunsCancelCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsRunsLogsRetrieve() */ batchExportsRunsLogsRetrieve: () => Promise; /** * Retry a batch export run. We use the same underlying mechanism as when backfilling a batch export, as retrying a run is the same as backfilling one run. * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsRunsRetryCreate() */ batchExportsRunsRetryCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsRetrieve() */ batchExportsRetrieve: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsUpdate() */ batchExportsUpdate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsPartialUpdate() */ batchExportsPartialUpdate: () => Promise<{ id: string; team_id: number; name: string; model?: "events" | "persons" | "sessions" | "" | null; destination: { type: "S3" | "AwsS3" | "S3Compatible" | "Snowflake" | "Postgres" | "Redshift" | "BigQuery" | "Databricks" | "AzureBlob" | "Workflows" | "HTTP" | "NoOp" | "FileDownload"; config: { http_path: string; catalog: string; schema: string; table_name: string; use_variant_type?: boolean; use_automatic_schema_evolution?: boolean } | { container_name: string; prefix?: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | null; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null } | { dataset_id: string; table_id?: string; use_json_type?: boolean } | { database: string; schema?: string; table_name?: string; has_self_signed_cert?: boolean } | { bucket_name: string; region: string; prefix: string; compression?: "brotli" | "gzip" | "lz4" | "snappy" | "zstd" | unknown; file_format?: "Parquet" | "JSONLines"; max_file_size_mb?: number | null; encryption?: string | null; kms_key_id?: string | null } | { bucket_name: string; region: string; prefix: string; compression?: unknown | unknown; file_format?: unknown; max_file_size_mb?: number | null; use_virtual_style_addressing?: boolean }; integration?: number | null; integration_id?: number | null }; interval: "hour" | "day" | "week" | "every 5 minutes" | "every 15 minutes"; paused?: boolean; created_at: string; last_updated_at: string; last_paused_at?: string | null; start_at?: string | null; end_at?: string | null; latest_runs: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting"; records_completed?: number | null; records_failed?: number | null; latest_error?: string | null; data_interval_start?: string | null; data_interval_end: string; cursor?: string | null; created_at: string; finished_at?: string | null; last_updated_at: string; records_total_count?: number | null; bytes_exported?: number | null; batch_export: string | null; batch_export_on_demand?: string | null; backfill?: string | null })[]; hogql_query?: string; schema: unknown; filters?: unknown; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu" | unknown; offset_day?: number | null; offset_hour?: number | null }>; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsDestroy() */ batchExportsDestroy: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsLogsRetrieve() */ batchExportsLogsRetrieve: () => Promise; /** * Pause a BatchExport. * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsPauseCreate() */ batchExportsPauseCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsRunTestStepCreate() */ batchExportsRunTestStepCreate: () => Promise; /** * Unpause a BatchExport. * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsUnpauseCreate() */ batchExportsUnpauseCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsRunTestStepNewCreate() */ batchExportsRunTestStepNewCreate: () => Promise; /** * * Tags: batch_exports, batch_exports * Access as: posthog.batchExportsTestRetrieve() */ batchExportsTestRetrieve: () => Promise; /** * Read-only access to parsed knowledge documents. Exposes hybrid search (``search``) and a drill-down window (``window``) so an agent (PHAI or MCP) can find and explore business knowledge chunks. * Tags: business_knowledge * Access as: posthog.businessKnowledgeDocumentsWindowList() */ businessKnowledgeDocumentsWindowList: () => Promise<({ chunk_id: string; ordinal: number; content: string; heading_path: string; source_name: string; document_title: string })[]>; /** * Read-only access to parsed knowledge documents. Exposes hybrid search (``search``) and a drill-down window (``window``) so an agent (PHAI or MCP) can find and explore business knowledge chunks. * Tags: business_knowledge * Access as: posthog.businessKnowledgeDocumentsSearchList() */ businessKnowledgeDocumentsSearchList: () => Promise<({ chunk_id: string; document_id: string; ordinal: number; source_id: string; source_name: string; source_type: string; document_title: string; heading_path: string; content: string })[]>; /** * Surfaces topics the support AI couldn't answer from the knowledge base. Two list shapes controlled by the ``ticket_id`` query param: - **per-ticket** (``?ticket_id=``): individual gap rows for that ticket. - **aggregated** (no ``ticket_id``): gaps grouped by normalized topic with counts, for the Business knowledge suggestions panel. * Tags: business_knowledge * Access as: posthog.businessKnowledgeGapSuggestionsList() */ businessKnowledgeGapSuggestionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; ticket_id: string; topic: string; normalized_topic: string; ticket_type: string; outcome: string; status: string; resolved_source_id: string | null; created_at: string })[] }>; /** * Surfaces topics the support AI couldn't answer from the knowledge base. Two list shapes controlled by the ``ticket_id`` query param: - **per-ticket** (``?ticket_id=``): individual gap rows for that ticket. - **aggregated** (no ``ticket_id``): gaps grouped by normalized topic with counts, for the Business knowledge suggestions panel. * Tags: business_knowledge * Access as: posthog.businessKnowledgeGapSuggestionsAcceptCreate() */ businessKnowledgeGapSuggestionsAcceptCreate: () => Promise<{ id: string; ticket_id: string; topic: string; normalized_topic: string; ticket_type: string; outcome: string; status: string; resolved_source_id: string | null; created_at: string }>; /** * Surfaces topics the support AI couldn't answer from the knowledge base. Two list shapes controlled by the ``ticket_id`` query param: - **per-ticket** (``?ticket_id=``): individual gap rows for that ticket. - **aggregated** (no ``ticket_id``): gaps grouped by normalized topic with counts, for the Business knowledge suggestions panel. * Tags: business_knowledge * Access as: posthog.businessKnowledgeGapSuggestionsDismissCreate() */ businessKnowledgeGapSuggestionsDismissCreate: () => Promise<{ id: string; ticket_id: string; topic: string; normalized_topic: string; ticket_type: string; outcome: string; status: string; resolved_source_id: string | null; created_at: string }>; /** * Accept all pending suggestions for a normalized topic cluster. * Tags: business_knowledge * Access as: posthog.businessKnowledgeGapSuggestionsAcceptTopicCreate() */ businessKnowledgeGapSuggestionsAcceptTopicCreate: () => Promise<{ normalized_topic: string; updated: number }>; /** * Dismiss all pending suggestions for a normalized topic cluster. * Tags: business_knowledge * Access as: posthog.businessKnowledgeGapSuggestionsDismissTopicCreate() */ businessKnowledgeGapSuggestionsDismissTopicCreate: () => Promise<{ normalized_topic: string; updated: number }>; /** * * Tags: business_knowledge * Access as: posthog.businessKnowledgeSourcesList() */ businessKnowledgeSourcesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; team_id: number; name: string; source_type: "text" | "url" | "file"; status: "pending" | "processing" | "ready" | "error"; error_message: string; document_count: number; chunk_count: number; created_at: string; updated_at: string | null; source_url: string; last_refresh_at: string | null; last_refresh_status: "success" | "not_modified" | "error"; last_refresh_error: string; refresh_interval: "manual" | "1h" | "6h" | "24h" | "7d"; next_refresh_at: string | null; has_unsafe_documents: boolean; embedding_status: "pending" | "completed" | "disabled"; crawl_mode: "single" | "sitemap" | "same_origin" | "github_repo"; crawl_config: unknown; original_filename: string; file_content_type: string; file_size_bytes: number | null; always_include: boolean })[] }>; /** * * Tags: business_knowledge * Access as: posthog.businessKnowledgeSourcesCreate() */ businessKnowledgeSourcesCreate: () => Promise<{ id: string; team_id: number; name: string; source_type: "text" | "url" | "file"; status: "pending" | "processing" | "ready" | "error"; error_message: string; document_count: number; chunk_count: number; created_at: string; updated_at: string | null; source_url: string; last_refresh_at: string | null; last_refresh_status: "success" | "not_modified" | "error"; last_refresh_error: string; refresh_interval: "manual" | "1h" | "6h" | "24h" | "7d"; next_refresh_at: string | null; has_unsafe_documents: boolean; embedding_status: "pending" | "completed" | "disabled"; crawl_mode: "single" | "sitemap" | "same_origin" | "github_repo"; crawl_config: unknown; original_filename: string; file_content_type: string; file_size_bytes: number | null; always_include: boolean }>; /** * * Tags: business_knowledge * Access as: posthog.businessKnowledgeSourcesRetrieve() */ businessKnowledgeSourcesRetrieve: () => Promise<{ id: string; team_id: number; name: string; source_type: "text" | "url" | "file"; status: "pending" | "processing" | "ready" | "error"; error_message: string; document_count: number; chunk_count: number; created_at: string; updated_at: string | null; source_url: string; last_refresh_at: string | null; last_refresh_status: "success" | "not_modified" | "error"; last_refresh_error: string; refresh_interval: "manual" | "1h" | "6h" | "24h" | "7d"; next_refresh_at: string | null; has_unsafe_documents: boolean; embedding_status: "pending" | "completed" | "disabled"; crawl_mode: "single" | "sitemap" | "same_origin" | "github_repo"; crawl_config: unknown; original_filename: string; file_content_type: string; file_size_bytes: number | null; always_include: boolean }>; /** * * Tags: business_knowledge * Access as: posthog.businessKnowledgeSourcesPartialUpdate() */ businessKnowledgeSourcesPartialUpdate: () => Promise<{ id: string; team_id: number; name: string; source_type: "text" | "url" | "file"; status: "pending" | "processing" | "ready" | "error"; error_message: string; document_count: number; chunk_count: number; created_at: string; updated_at: string | null; source_url: string; last_refresh_at: string | null; last_refresh_status: "success" | "not_modified" | "error"; last_refresh_error: string; refresh_interval: "manual" | "1h" | "6h" | "24h" | "7d"; next_refresh_at: string | null; has_unsafe_documents: boolean; embedding_status: "pending" | "completed" | "disabled"; crawl_mode: "single" | "sitemap" | "same_origin" | "github_repo"; crawl_config: unknown; original_filename: string; file_content_type: string; file_size_bytes: number | null; always_include: boolean }>; /** * * Tags: business_knowledge * Access as: posthog.businessKnowledgeSourcesDestroy() */ businessKnowledgeSourcesDestroy: () => Promise; /** * * Tags: business_knowledge * Access as: posthog.businessKnowledgeSourcesRefreshCreate() */ businessKnowledgeSourcesRefreshCreate: () => Promise<{ id: string; team_id: number; name: string; source_type: "text" | "url" | "file"; status: "pending" | "processing" | "ready" | "error"; error_message: string; document_count: number; chunk_count: number; created_at: string; updated_at: string | null; source_url: string; last_refresh_at: string | null; last_refresh_status: "success" | "not_modified" | "error"; last_refresh_error: string; refresh_interval: "manual" | "1h" | "6h" | "24h" | "7d"; next_refresh_at: string | null; has_unsafe_documents: boolean; embedding_status: "pending" | "completed" | "disabled"; crawl_mode: "single" | "sitemap" | "same_origin" | "github_repo"; crawl_config: unknown; original_filename: string; file_content_type: string; file_size_bytes: number | null; always_include: boolean }>; /** * * Tags: business_knowledge * Access as: posthog.businessKnowledgeSourcesTextRetrieve() */ businessKnowledgeSourcesTextRetrieve: () => Promise<{ text?: string }>; /** * * Tags: platform_features, change_requests * Access as: posthog.changeRequestsList() */ changeRequestsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null })[] }>; /** * * Tags: platform_features, change_requests * Access as: posthog.changeRequestsRetrieve() */ changeRequestsRetrieve: () => Promise<{ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null }>; /** * Approve a change request. If quorum is reached, automatically applies the change immediately. * Tags: platform_features, change_requests * Access as: posthog.changeRequestsApproveCreate() */ changeRequestsApproveCreate: () => Promise<{ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null }>; /** * Cancel a change request. Only the requester can cancel their own pending change request. * Tags: platform_features, change_requests * Access as: posthog.changeRequestsCancelCreate() */ changeRequestsCancelCreate: () => Promise<{ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null }>; /** * Reject a change request. * Tags: platform_features, change_requests * Access as: posthog.changeRequestsRejectCreate() */ changeRequestsRejectCreate: () => Promise<{ id: string; action_key: string; action_version: number; resource_type: string; resource_id: string | null; intent: unknown; intent_display: unknown; policy_snapshot: unknown; validation_status: "valid" | "invalid" | "stale"; validation_errors: unknown; validated_at: string | null; state: "pending" | "approved" | "applied" | "rejected" | "expired" | "failed"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null; expires_at: string; applied_at: string | null; apply_error: string; result_data: unknown; approvals: ({ [key: string]: unknown })[]; can_approve: boolean; can_cancel: boolean; is_requester: boolean; user_decision: string | null }>; /** * * Tags: cohorts * Access as: posthog.cohortsList() */ cohortsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name?: string | null; description?: string; groups?: unknown; deleted?: boolean; filters?: { properties: { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | unknown)[] })[] } } | null; query?: unknown; version: number | null; pending_version: number | null; is_calculating: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; last_calculation: string | null; last_backfill_person_properties_at: string | null; errors_calculating: number; last_error_message: string | null; count: number | null; is_static?: boolean; cohort_type?: "static" | "person_property" | "behavioral" | "realtime" | "analytical" | "" | null; experiment_set: (number)[]; search_match_type: "exact" | "similar" | unknown; _create_in_folder?: string; _create_static_person_ids?: (string)[] })[] }>; /** * * Tags: cohorts * Access as: posthog.cohortsCreate() */ cohortsCreate: () => Promise<{ id: number; name?: string | null; description?: string; groups?: unknown; deleted?: boolean; filters?: { properties: { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | unknown)[] })[] } } | null; query?: unknown; version: number | null; pending_version: number | null; is_calculating: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; last_calculation: string | null; last_backfill_person_properties_at: string | null; errors_calculating: number; last_error_message: string | null; count: number | null; is_static?: boolean; cohort_type?: "static" | "person_property" | "behavioral" | "realtime" | "analytical" | "" | null; experiment_set: (number)[]; search_match_type: "exact" | "similar" | unknown; _create_in_folder?: string; _create_static_person_ids?: (string)[] }>; /** * * Tags: cohorts * Access as: posthog.cohortsRetrieve() */ cohortsRetrieve: () => Promise<{ id: number; name?: string | null; description?: string; groups?: unknown; deleted?: boolean; filters?: { properties: { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | unknown)[] })[] } } | null; query?: unknown; version: number | null; pending_version: number | null; is_calculating: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; last_calculation: string | null; last_backfill_person_properties_at: string | null; errors_calculating: number; last_error_message: string | null; count: number | null; is_static?: boolean; cohort_type?: "static" | "person_property" | "behavioral" | "realtime" | "analytical" | "" | null; experiment_set: (number)[]; search_match_type: "exact" | "similar" | unknown; _create_in_folder?: string; _create_static_person_ids?: (string)[] }>; /** * * Tags: cohorts * Access as: posthog.cohortsUpdate() */ cohortsUpdate: () => Promise<{ id: number; name?: string | null; description?: string; groups?: unknown; deleted?: boolean; filters?: { properties: { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | unknown)[] })[] } } | null; query?: unknown; version: number | null; pending_version: number | null; is_calculating: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; last_calculation: string | null; last_backfill_person_properties_at: string | null; errors_calculating: number; last_error_message: string | null; count: number | null; is_static?: boolean; cohort_type?: "static" | "person_property" | "behavioral" | "realtime" | "analytical" | "" | null; experiment_set: (number)[]; search_match_type: "exact" | "similar" | unknown; _create_in_folder?: string; _create_static_person_ids?: (string)[] }>; /** * * Tags: cohorts * Access as: posthog.cohortsPartialUpdate() */ cohortsPartialUpdate: () => Promise<{ id: number; name?: string | null; description?: string; groups?: unknown; deleted?: boolean; filters?: { properties: { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { type: "AND" | "OR"; values: ({ bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string | number; value: string; event_type: string; time_value?: number | null; time_interval?: string | null; negation?: boolean; operator?: string | null; operator_value?: number | null; seq_time_interval?: string | null; seq_time_value?: number | null; seq_event?: string | number | null; seq_event_type?: string | null; total_periods?: number | null; min_periods?: number | null; event_filters?: ({ type: "event" | "element"; key: string; value: unknown; operator?: string | null } | { type: string; key: string; value?: unknown })[] | null; explicit_datetime?: string | null; explicit_datetime_to?: string | null } | { bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; value: number; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | { operator?: string | null; value?: unknown; bytecode?: (unknown)[] | null; bytecode_error?: string | null; conditionHash?: string | null; type: string; key: string; negation?: boolean } | unknown)[] })[] } } | null; query?: unknown; version: number | null; pending_version: number | null; is_calculating: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; last_calculation: string | null; last_backfill_person_properties_at: string | null; errors_calculating: number; last_error_message: string | null; count: number | null; is_static?: boolean; cohort_type?: "static" | "person_property" | "behavioral" | "realtime" | "analytical" | "" | null; experiment_set: (number)[]; search_match_type: "exact" | "similar" | unknown; _create_in_folder?: string; _create_static_person_ids?: (string)[] }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: cohorts * Access as: posthog.cohortsDestroy() */ cohortsDestroy: () => Promise; /** * * Tags: cohorts * Access as: posthog.cohortsActivityRetrieve() */ cohortsActivityRetrieve: () => Promise; /** * * Tags: cohorts * Access as: posthog.cohortsAddPersonsToStaticCohortPartialUpdate() */ cohortsAddPersonsToStaticCohortPartialUpdate: () => Promise; /** * * Tags: cohorts * Access as: posthog.cohortsCalculationHistoryRetrieve() */ cohortsCalculationHistoryRetrieve: () => Promise; /** * * Tags: cohorts * Access as: posthog.cohortsPersonsRetrieve() */ cohortsPersonsRetrieve: () => Promise<{ results: ({ id: string; uuid: string; type: "person"; name: string; distinct_ids: (string)[]; properties: { [key: string]: unknown }; created_at: string | null; last_seen_at: string | null; is_identified: boolean | null; matched_recordings: ({ [key: string]: unknown })[]; value_at_data_point: number | null })[]; next: string | null; previous: string | null }>; /** * * Tags: cohorts * Access as: posthog.cohortsRemovePersonFromStaticCohortPartialUpdate() */ cohortsRemovePersonFromStaticCohortPartialUpdate: () => Promise; /** * * Tags: cohorts * Access as: posthog.cohortsUsedInRetrieve() */ cohortsUsedInRetrieve: () => Promise<{ feature_flags: { results: ({ id: number; key: string; name: string | null })[]; total: number; has_more: boolean }; insights: { results: ({ id: number; short_id: string; name: string })[]; total: number; has_more: boolean }; cohorts: { results: ({ id: number; name: string })[]; total: number; has_more: boolean } }>; /** * * Tags: cohorts * Access as: posthog.cohortsAllActivityRetrieve() */ cohortsAllActivityRetrieve: () => Promise; /** * * Tags: comments * Access as: posthog.commentsList() */ commentsList: () => Promise<{ next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean | null; mentions?: (number)[]; slug?: string; is_task?: boolean; completed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; content?: string | null; rich_content?: unknown; version: number; created_at: string; item_id?: string | null; item_context?: unknown; scope: string; completed_at: string | null; source_comment?: string | null })[] }>; /** * * Tags: comments * Access as: posthog.commentsCreate() */ commentsCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean | null; mentions?: (number)[]; slug?: string; is_task?: boolean; completed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; content?: string | null; rich_content?: unknown; version: number; created_at: string; item_id?: string | null; item_context?: unknown; scope: string; completed_at: string | null; source_comment?: string | null }>; /** * * Tags: comments * Access as: posthog.commentsRetrieve() */ commentsRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean | null; mentions?: (number)[]; slug?: string; is_task?: boolean; completed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; content?: string | null; rich_content?: unknown; version: number; created_at: string; item_id?: string | null; item_context?: unknown; scope: string; completed_at: string | null; source_comment?: string | null }>; /** * * Tags: comments * Access as: posthog.commentsUpdate() */ commentsUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean | null; mentions?: (number)[]; slug?: string; is_task?: boolean; completed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; content?: string | null; rich_content?: unknown; version: number; created_at: string; item_id?: string | null; item_context?: unknown; scope: string; completed_at: string | null; source_comment?: string | null }>; /** * * Tags: comments * Access as: posthog.commentsPartialUpdate() */ commentsPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean | null; mentions?: (number)[]; slug?: string; is_task?: boolean; completed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; content?: string | null; rich_content?: unknown; version: number; created_at: string; item_id?: string | null; item_context?: unknown; scope: string; completed_at: string | null; source_comment?: string | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: comments * Access as: posthog.commentsDestroy() */ commentsDestroy: () => Promise; /** * Mark a task-comment as complete. Sets completed_at and completed_by. 400 if the comment is not a task or is already complete. * Tags: comments * Access as: posthog.commentsCompleteCreate() */ commentsCompleteCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean | null; mentions?: (number)[]; slug?: string; is_task?: boolean; completed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; content?: string | null; rich_content?: unknown; version: number; created_at: string; item_id?: string | null; item_context?: unknown; scope: string; completed_at: string | null; source_comment?: string | null }>; /** * Reopen a completed task-comment. Clears completed_at and completed_by. 400 if the comment is not a task or is already open. * Tags: comments * Access as: posthog.commentsReopenCreate() */ commentsReopenCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean | null; mentions?: (number)[]; slug?: string; is_task?: boolean; completed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; content?: string | null; rich_content?: unknown; version: number; created_at: string; item_id?: string | null; item_context?: unknown; scope: string; completed_at: string | null; source_comment?: string | null }>; /** * * Tags: comments * Access as: posthog.commentsThreadRetrieve() */ commentsThreadRetrieve: () => Promise; /** * * Tags: comments * Access as: posthog.commentsCountRetrieve() */ commentsCountRetrieve: () => Promise; /** * * Tags: max, conversations * Access as: posthog.conversationsList() */ conversationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null })[] }>; /** * Unified endpoint that handles both conversation creation and streaming. - If message is provided: Start new conversation processing - If no message: Stream from existing conversation * Tags: max, conversations * Access as: posthog.conversationsCreate() */ conversationsCreate: () => Promise<{ content: string | null; conversation: string; contextual_tools?: { [key: string]: unknown }; ui_context?: unknown; billing_context?: unknown; trace_id: string; session_id?: string; agent_mode?: "product_analytics" | "sql" | "session_replay" | "error_tracking" | "plan" | "execution" | "survey" | "research" | "flags" | "llm_analytics" | "sandbox" | "user_interview" | "customer_analytics"; is_sandbox?: boolean; resume_payload?: unknown }>; /** * * Tags: max, conversations * Access as: posthog.conversationsRetrieve() */ conversationsRetrieve: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * Delete a conversation. * Tags: max, conversations * Access as: posthog.conversationsDestroy() */ conversationsDestroy: () => Promise; /** * Appends a message to an existing conversation without triggering AI processing. This is used for client-side generated messages that need to be persisted (e.g., support ticket confirmation messages). * Tags: max, conversations * Access as: posthog.conversationsAppendMessageCreate() */ conversationsAppendMessageCreate: () => Promise<{ content: string }>; /** * Cancel the conversation's in-progress LangGraph run. * Tags: max, conversations * Access as: posthog.conversationsCancelPartialUpdate() */ conversationsCancelPartialUpdate: () => Promise; /** * Create-or-resume a sandbox conversation — the single sandbox session opener. With `content`, processes the turn (first message, in-progress follow-up, or terminal resume); without `content`, warms a sandbox that idles awaiting the first message. Returns the `(task, run)` handle the frontend opens SSE against. The conversation row is created on first use from the URL id. * Tags: max, conversations * Access as: posthog.conversationsOpenCreate() */ conversationsOpenCreate: () => Promise<{ task_id: string; run_id: string; trace_id: string | null; run_status: string; just_created_run: boolean }>; /** * * Tags: max, conversations * Access as: posthog.conversationsQueueRetrieve() */ conversationsQueueRetrieve: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * * Tags: max, conversations * Access as: posthog.conversationsQueueCreate() */ conversationsQueueCreate: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * * Tags: max, conversations * Access as: posthog.conversationsQueuePartialUpdate() */ conversationsQueuePartialUpdate: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * * Tags: max, conversations * Access as: posthog.conversationsQueueDestroy() */ conversationsQueueDestroy: () => Promise; /** * * Tags: max, conversations * Access as: posthog.conversationsQueueClearCreate() */ conversationsQueueClearCreate: () => Promise<{ id: string; status: "idle" | "in_progress" | "canceling"; title: string | null; topic: "web_analytics" | "product_analytics" | "session_replay" | "surveys" | "feature_flags" | "experiments" | "error_tracking" | "data_warehouse" | "other" | null; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; updated_at: string | null; type: "assistant" | "tool_call" | "deep_research" | "slack"; is_internal: boolean | null; slack_thread_key: string | null; slack_workspace_domain: string | null; messages: ({ [key: string]: unknown })[]; has_unsupported_content: boolean; agent_mode: string | null; agent_runtime: "langgraph" | "sandbox"; is_sandbox: boolean; pending_approvals: ({ [key: string]: unknown })[]; task: { id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null } | null }>; /** * List tickets with person data attached. * Tags: conversations * Access as: posthog.conversationsTicketsList() */ conversationsTicketsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; ticket_number: number; channel_source: "widget" | "email" | "slack" | "teams" | "github"; channel_detail: "slack_channel_message" | "slack_bot_mention" | "slack_emoji_reaction" | "teams_channel_message" | "teams_bot_mention" | "widget_embedded" | "widget_api" | "github_issue" | null; distinct_id: string; status?: "new" | "open" | "pending" | "on_hold" | "resolved"; priority?: "low" | "medium" | "high" | "" | null; assignee: { id: string | null; type: string; user: { [key: string]: unknown } | null; role: { [key: string]: unknown } | null }; anonymous_traits?: unknown; identity_verified: boolean | null; ai_resolved?: boolean; escalation_reason?: string | null; ai_triage: unknown; created_at: string; updated_at: string; message_count: number; last_message_at: string | null; last_message_text: string | null; unread_team_count: number; unread_customer_count: number; session_id: string | null; session_context: unknown; sla_due_at?: string | null; snoozed_until?: string | null; slack_channel_id: string | null; slack_thread_ts: string | null; slack_team_id: string | null; email_subject: string | null; email_from: string | null; email_to: string | null; cc_participants: unknown; github_repo: string | null; github_issue_number: number | null; zendesk_ticket_id: number | null; organization_id: string | null; person: { id: string; name: string; distinct_ids: (string)[]; properties: { [key: string]: unknown }; created_at: string; is_identified: boolean } | null; tags?: (unknown)[] })[] }>; /** * * Tags: conversations * Access as: posthog.conversationsTicketsCreate() */ conversationsTicketsCreate: () => Promise<{ id: string; ticket_number: number; channel_source: "widget" | "email" | "slack" | "teams" | "github"; channel_detail: "slack_channel_message" | "slack_bot_mention" | "slack_emoji_reaction" | "teams_channel_message" | "teams_bot_mention" | "widget_embedded" | "widget_api" | "github_issue" | null; distinct_id: string; status?: "new" | "open" | "pending" | "on_hold" | "resolved"; priority?: "low" | "medium" | "high" | "" | null; assignee: { id: string | null; type: string; user: { [key: string]: unknown } | null; role: { [key: string]: unknown } | null }; anonymous_traits?: unknown; identity_verified: boolean | null; ai_resolved?: boolean; escalation_reason?: string | null; ai_triage: unknown; created_at: string; updated_at: string; message_count: number; last_message_at: string | null; last_message_text: string | null; unread_team_count: number; unread_customer_count: number; session_id: string | null; session_context: unknown; sla_due_at?: string | null; snoozed_until?: string | null; slack_channel_id: string | null; slack_thread_ts: string | null; slack_team_id: string | null; email_subject: string | null; email_from: string | null; email_to: string | null; cc_participants: unknown; github_repo: string | null; github_issue_number: number | null; zendesk_ticket_id: number | null; organization_id: string | null; person: { id: string; name: string; distinct_ids: (string)[]; properties: { [key: string]: unknown }; created_at: string; is_identified: boolean } | null; tags?: (unknown)[] }>; /** * Get single ticket and mark as read by team. * Tags: conversations * Access as: posthog.conversationsTicketsRetrieve() */ conversationsTicketsRetrieve: () => Promise<{ id: string; ticket_number: number; channel_source: "widget" | "email" | "slack" | "teams" | "github"; channel_detail: "slack_channel_message" | "slack_bot_mention" | "slack_emoji_reaction" | "teams_channel_message" | "teams_bot_mention" | "widget_embedded" | "widget_api" | "github_issue" | null; distinct_id: string; status?: "new" | "open" | "pending" | "on_hold" | "resolved"; priority?: "low" | "medium" | "high" | "" | null; assignee: { id: string | null; type: string; user: { [key: string]: unknown } | null; role: { [key: string]: unknown } | null }; anonymous_traits?: unknown; identity_verified: boolean | null; ai_resolved?: boolean; escalation_reason?: string | null; ai_triage: unknown; created_at: string; updated_at: string; message_count: number; last_message_at: string | null; last_message_text: string | null; unread_team_count: number; unread_customer_count: number; session_id: string | null; session_context: unknown; sla_due_at?: string | null; snoozed_until?: string | null; slack_channel_id: string | null; slack_thread_ts: string | null; slack_team_id: string | null; email_subject: string | null; email_from: string | null; email_to: string | null; cc_participants: unknown; github_repo: string | null; github_issue_number: number | null; zendesk_ticket_id: number | null; organization_id: string | null; person: { id: string; name: string; distinct_ids: (string)[]; properties: { [key: string]: unknown }; created_at: string; is_identified: boolean } | null; tags?: (unknown)[] }>; /** * Handle ticket updates including assignee changes. * Tags: conversations * Access as: posthog.conversationsTicketsUpdate() */ conversationsTicketsUpdate: () => Promise<{ id: string; ticket_number: number; channel_source: "widget" | "email" | "slack" | "teams" | "github"; channel_detail: "slack_channel_message" | "slack_bot_mention" | "slack_emoji_reaction" | "teams_channel_message" | "teams_bot_mention" | "widget_embedded" | "widget_api" | "github_issue" | null; distinct_id: string; status?: "new" | "open" | "pending" | "on_hold" | "resolved"; priority?: "low" | "medium" | "high" | "" | null; assignee: { id: string | null; type: string; user: { [key: string]: unknown } | null; role: { [key: string]: unknown } | null }; anonymous_traits?: unknown; identity_verified: boolean | null; ai_resolved?: boolean; escalation_reason?: string | null; ai_triage: unknown; created_at: string; updated_at: string; message_count: number; last_message_at: string | null; last_message_text: string | null; unread_team_count: number; unread_customer_count: number; session_id: string | null; session_context: unknown; sla_due_at?: string | null; snoozed_until?: string | null; slack_channel_id: string | null; slack_thread_ts: string | null; slack_team_id: string | null; email_subject: string | null; email_from: string | null; email_to: string | null; cc_participants: unknown; github_repo: string | null; github_issue_number: number | null; zendesk_ticket_id: number | null; organization_id: string | null; person: { id: string; name: string; distinct_ids: (string)[]; properties: { [key: string]: unknown }; created_at: string; is_identified: boolean } | null; tags?: (unknown)[] }>; /** * * Tags: conversations * Access as: posthog.conversationsTicketsPartialUpdate() */ conversationsTicketsPartialUpdate: () => Promise<{ id: string; ticket_number: number; channel_source: "widget" | "email" | "slack" | "teams" | "github"; channel_detail: "slack_channel_message" | "slack_bot_mention" | "slack_emoji_reaction" | "teams_channel_message" | "teams_bot_mention" | "widget_embedded" | "widget_api" | "github_issue" | null; distinct_id: string; status?: "new" | "open" | "pending" | "on_hold" | "resolved"; priority?: "low" | "medium" | "high" | "" | null; assignee: { id: string | null; type: string; user: { [key: string]: unknown } | null; role: { [key: string]: unknown } | null }; anonymous_traits?: unknown; identity_verified: boolean | null; ai_resolved?: boolean; escalation_reason?: string | null; ai_triage: unknown; created_at: string; updated_at: string; message_count: number; last_message_at: string | null; last_message_text: string | null; unread_team_count: number; unread_customer_count: number; session_id: string | null; session_context: unknown; sla_due_at?: string | null; snoozed_until?: string | null; slack_channel_id: string | null; slack_thread_ts: string | null; slack_team_id: string | null; email_subject: string | null; email_from: string | null; email_to: string | null; cc_participants: unknown; github_repo: string | null; github_issue_number: number | null; zendesk_ticket_id: number | null; organization_id: string | null; person: { id: string; name: string; distinct_ids: (string)[]; properties: { [key: string]: unknown }; created_at: string; is_identified: boolean } | null; tags?: (unknown)[] }>; /** * * Tags: conversations * Access as: posthog.conversationsTicketsDestroy() */ conversationsTicketsDestroy: () => Promise; /** * Record reviewer feedback on an AI reply, captured to the internal analytics project. * Tags: conversations * Access as: posthog.conversationsTicketsAiFeedbackCreate() */ conversationsTicketsAiFeedbackCreate: () => Promise; /** * Return the message thread for a ticket, ordered chronologically (paginated). * Tags: conversations * Access as: posthog.conversationsTicketsMessagesList() */ conversationsTicketsMessagesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; content: string; rich_content: unknown; author_type: string; author_name: string; is_private: boolean; created_at: string })[] }>; /** * Post a reply or internal note to a ticket. With is_private=false, the reply is delivered to the customer via the ticket's channel (email, Slack, Teams, GitHub). With is_private=true, the message is stored as an internal note only visible to team members. * Tags: conversations * Access as: posthog.conversationsTicketsReplyCreate() */ conversationsTicketsReplyCreate: () => Promise<{ id: string; content: string; rich_content: unknown; author_type: string; author_name: string; is_private: boolean; created_at: string }>; /** * Update the status of multiple tickets in a single request. Only tickets belonging to the current team are affected; other-team UUIDs are silently ignored. Tickets already in the requested status are skipped. * Tags: conversations * Access as: posthog.conversationsTicketsBulkUpdateStatusCreate() */ conversationsTicketsBulkUpdateStatusCreate: () => Promise<{ updated: number; ids: (string)[] }>; /** * Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list * Tags: conversations * Access as: posthog.conversationsTicketsBulkUpdateTagsCreate() */ conversationsTicketsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: number; tags: (string)[] })[]; skipped: ({ id: number; reason: string })[] }>; /** * Create a new outbound ticket and send the first message to the customer. * Tags: conversations * Access as: posthog.conversationsTicketsComposeCreate() */ conversationsTicketsComposeCreate: () => Promise<{ id: string; ticket_number: number }>; /** * Get total unread ticket count for the team. Returns the sum of unread_team_count for all non-resolved tickets. Cached in Redis for 30 seconds, invalidated on changes. * Tags: conversations * Access as: posthog.conversationsTicketsUnreadCountRetrieve() */ conversationsTicketsUnreadCountRetrieve: () => Promise<{ id: string; ticket_number: number; channel_source: "widget" | "email" | "slack" | "teams" | "github"; channel_detail: "slack_channel_message" | "slack_bot_mention" | "slack_emoji_reaction" | "teams_channel_message" | "teams_bot_mention" | "widget_embedded" | "widget_api" | "github_issue" | null; distinct_id: string; status?: "new" | "open" | "pending" | "on_hold" | "resolved"; priority?: "low" | "medium" | "high" | "" | null; assignee: { id: string | null; type: string; user: { [key: string]: unknown } | null; role: { [key: string]: unknown } | null }; anonymous_traits?: unknown; identity_verified: boolean | null; ai_resolved?: boolean; escalation_reason?: string | null; ai_triage: unknown; created_at: string; updated_at: string; message_count: number; last_message_at: string | null; last_message_text: string | null; unread_team_count: number; unread_customer_count: number; session_id: string | null; session_context: unknown; sla_due_at?: string | null; snoozed_until?: string | null; slack_channel_id: string | null; slack_thread_ts: string | null; slack_team_id: string | null; email_subject: string | null; email_from: string | null; email_to: string | null; cc_participants: unknown; github_repo: string | null; github_issue_number: number | null; zendesk_ticket_id: number | null; organization_id: string | null; person: { id: string; name: string; distinct_ids: (string)[]; properties: { [key: string]: unknown }; created_at: string; is_identified: boolean } | null; tags?: (unknown)[] }>; /** * * Tags: conversations * Access as: posthog.conversationsViewsList() */ conversationsViewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * * Tags: conversations * Access as: posthog.conversationsViewsCreate() */ conversationsViewsCreate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: conversations * Access as: posthog.conversationsViewsRetrieve() */ conversationsViewsRetrieve: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: conversations * Access as: posthog.conversationsViewsDestroy() */ conversationsViewsDestroy: () => Promise; /** * * Tags: custom_property_definitions * Access as: posthog.customPropertyDefinitionsList() */ customPropertyDefinitionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.customPropertyDefinitionsCreate() */ customPropertyDefinitionsCreate: () => Promise<{ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.customPropertyDefinitionsRetrieve() */ customPropertyDefinitionsRetrieve: () => Promise<{ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.customPropertyDefinitionsUpdate() */ customPropertyDefinitionsUpdate: () => Promise<{ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.customPropertyDefinitionsPartialUpdate() */ customPropertyDefinitionsPartialUpdate: () => Promise<{ id: string; name: string; description?: string | null; display_type: "text" | "number" | "currency" | "percent" | "date" | "datetime" | "boolean" | "select"; is_big_number?: boolean; options?: unknown[] | null; source: { id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null } | null; created_at: string; created_by: number | null; updated_at: string | null; references: ({ id: string; name: string; status: string; type: string })[] }>; /** * * Tags: custom_property_definitions * Access as: posthog.customPropertyDefinitionsDestroy() */ customPropertyDefinitionsDestroy: () => Promise; /** * * Tags: custom_property_definitions * Access as: posthog.customPropertyDefinitionsValuesRetrieve() */ customPropertyDefinitionsValuesRetrieve: () => Promise<{ results: ({ name: string })[]; refreshing: boolean }>; /** * * Tags: custom_property_sources * Access as: posthog.customPropertySourcesList() */ customPropertySourcesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null })[] }>; /** * * Tags: custom_property_sources * Access as: posthog.customPropertySourcesCreate() */ customPropertySourcesCreate: () => Promise<{ id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: custom_property_sources * Access as: posthog.customPropertySourcesRetrieve() */ customPropertySourcesRetrieve: () => Promise<{ id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: custom_property_sources * Access as: posthog.customPropertySourcesUpdate() */ customPropertySourcesUpdate: () => Promise<{ id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: custom_property_sources * Access as: posthog.customPropertySourcesPartialUpdate() */ customPropertySourcesPartialUpdate: () => Promise<{ id: string; definition: string; saved_query: string; source_column: string; key_column: string; is_enabled?: boolean; consecutive_failures: number; last_synced_at: string | null; last_sync_error: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: custom_property_sources * Access as: posthog.customPropertySourcesDestroy() */ customPropertySourcesDestroy: () => Promise; /** * * Tags: customer_journeys * Access as: posthog.customerJourneysList() */ customerJourneysList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null })[] }>; /** * * Tags: customer_journeys * Access as: posthog.customerJourneysCreate() */ customerJourneysCreate: () => Promise<{ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_journeys * Access as: posthog.customerJourneysRetrieve() */ customerJourneysRetrieve: () => Promise<{ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_journeys * Access as: posthog.customerJourneysUpdate() */ customerJourneysUpdate: () => Promise<{ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_journeys * Access as: posthog.customerJourneysPartialUpdate() */ customerJourneysPartialUpdate: () => Promise<{ id: string; insight: number; name: string; description?: string | null; created_at: string; created_by: number | null; updated_at: string | null }>; /** * * Tags: customer_journeys * Access as: posthog.customerJourneysDestroy() */ customerJourneysDestroy: () => Promise; /** * * Tags: customer_profile_configs * Access as: posthog.customerProfileConfigsList() */ customerProfileConfigsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null })[] }>; /** * * Tags: customer_profile_configs * Access as: posthog.customerProfileConfigsCreate() */ customerProfileConfigsCreate: () => Promise<{ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null }>; /** * * Tags: customer_profile_configs * Access as: posthog.customerProfileConfigsRetrieve() */ customerProfileConfigsRetrieve: () => Promise<{ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null }>; /** * * Tags: customer_profile_configs * Access as: posthog.customerProfileConfigsUpdate() */ customerProfileConfigsUpdate: () => Promise<{ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null }>; /** * * Tags: customer_profile_configs * Access as: posthog.customerProfileConfigsPartialUpdate() */ customerProfileConfigsPartialUpdate: () => Promise<{ id: string; scope: "person" | "group_0" | "group_1" | "group_2" | "group_3" | "group_4"; content?: unknown; sidebar?: unknown; created_at: string; updated_at: string | null }>; /** * * Tags: customer_profile_configs * Access as: posthog.customerProfileConfigsDestroy() */ customerProfileConfigsDestroy: () => Promise; /** * * Tags: dashboard_templates * Access as: posthog.dashboardTemplatesList() */ dashboardTemplatesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; template_name?: string | null; dashboard_description?: string | null; dashboard_filters?: unknown; tags?: unknown[] | null; tiles?: unknown; variables?: unknown; deleted?: boolean | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; image_url?: string | null; team_id: number | null; scope?: "team" | "organization" | "global" | "feature_flag" | "" | null; availability_contexts?: unknown[] | null; is_featured?: boolean; non_portable_references: { actions: number; cohorts: number; warehouse_tables: (string)[] } })[] }>; /** * * Tags: dashboard_templates * Access as: posthog.dashboardTemplatesCreate() */ dashboardTemplatesCreate: () => Promise<{ id: string; template_name?: string | null; dashboard_description?: string | null; dashboard_filters?: unknown; tags?: unknown[] | null; tiles?: unknown; variables?: unknown; deleted?: boolean | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; image_url?: string | null; team_id: number | null; scope?: "team" | "organization" | "global" | "feature_flag" | "" | null; availability_contexts?: unknown[] | null; is_featured?: boolean; non_portable_references: { actions: number; cohorts: number; warehouse_tables: (string)[] } }>; /** * * Tags: dashboard_templates * Access as: posthog.dashboardTemplatesRetrieve() */ dashboardTemplatesRetrieve: () => Promise<{ id: string; template_name?: string | null; dashboard_description?: string | null; dashboard_filters?: unknown; tags?: unknown[] | null; tiles?: unknown; variables?: unknown; deleted?: boolean | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; image_url?: string | null; team_id: number | null; scope?: "team" | "organization" | "global" | "feature_flag" | "" | null; availability_contexts?: unknown[] | null; is_featured?: boolean; non_portable_references: { actions: number; cohorts: number; warehouse_tables: (string)[] } }>; /** * * Tags: dashboard_templates * Access as: posthog.dashboardTemplatesUpdate() */ dashboardTemplatesUpdate: () => Promise<{ id: string; template_name?: string | null; dashboard_description?: string | null; dashboard_filters?: unknown; tags?: unknown[] | null; tiles?: unknown; variables?: unknown; deleted?: boolean | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; image_url?: string | null; team_id: number | null; scope?: "team" | "organization" | "global" | "feature_flag" | "" | null; availability_contexts?: unknown[] | null; is_featured?: boolean; non_portable_references: { actions: number; cohorts: number; warehouse_tables: (string)[] } }>; /** * * Tags: dashboard_templates * Access as: posthog.dashboardTemplatesPartialUpdate() */ dashboardTemplatesPartialUpdate: () => Promise<{ id: string; template_name?: string | null; dashboard_description?: string | null; dashboard_filters?: unknown; tags?: unknown[] | null; tiles?: unknown; variables?: unknown; deleted?: boolean | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; image_url?: string | null; team_id: number | null; scope?: "team" | "organization" | "global" | "feature_flag" | "" | null; availability_contexts?: unknown[] | null; is_featured?: boolean; non_portable_references: { actions: number; cohorts: number; warehouse_tables: (string)[] } }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: dashboard_templates * Access as: posthog.dashboardTemplatesDestroy() */ dashboardTemplatesDestroy: () => Promise; /** * Copy a team template to this project * Tags: dashboard_templates * Access as: posthog.dashboardTemplatesCopyBetweenProjectsCreate() */ dashboardTemplatesCopyBetweenProjectsCreate: () => Promise<{ id: string; template_name?: string | null; dashboard_description?: string | null; dashboard_filters?: unknown; tags?: unknown[] | null; tiles?: unknown; variables?: unknown; deleted?: boolean | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; image_url?: string | null; team_id: number | null; scope?: "team" | "organization" | "global" | "feature_flag" | "" | null; availability_contexts?: unknown[] | null; is_featured?: boolean; non_portable_references: { actions: number; cohorts: number; warehouse_tables: (string)[] } }>; /** * * Tags: dashboard_templates * Access as: posthog.dashboardTemplatesJsonSchemaRetrieve() */ dashboardTemplatesJsonSchemaRetrieve: () => Promise; /** * * Tags: dashboards * Access as: posthog.dashboardsList() */ dashboardsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name: string | null; description: string; pinned: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; tags?: (unknown)[]; restriction_level: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh: string | null; team_id: number; search_match_type: "exact" | "similar" | null })[] }>; /** * * Tags: dashboards * Access as: posthog.dashboardsCreate() */ dashboardsCreate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.dashboardsCollaboratorsList() */ dashboardsCollaboratorsList: () => Promise<({ id: string; dashboard_id: number; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level: 21 | 37; added_at: string; updated_at: string; user_uuid: string })[]>; /** * * Tags: dashboards * Access as: posthog.dashboardsCollaboratorsCreate() */ dashboardsCollaboratorsCreate: () => Promise<{ id: string; dashboard_id: number; user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; level: 21 | 37; added_at: string; updated_at: string; user_uuid: string }>; /** * * Tags: dashboards * Access as: posthog.dashboardsCollaboratorsDestroy() */ dashboardsCollaboratorsDestroy: () => Promise; /** * * Tags: dashboards * Access as: posthog.dashboardsSharingList() */ dashboardsSharingList: () => Promise<({ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] })[]>; /** * Create a new password for the sharing configuration. * Tags: dashboards * Access as: posthog.dashboardsSharingPasswordsCreate() */ dashboardsSharingPasswordsCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a password from the sharing configuration. * Tags: dashboards * Access as: posthog.dashboardsSharingPasswordsDestroy() */ dashboardsSharingPasswordsDestroy: () => Promise; /** * * Tags: dashboards * Access as: posthog.dashboardsSharingRefreshCreate() */ dashboardsSharingRefreshCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * * Tags: dashboards * Access as: posthog.dashboardsRetrieve() */ dashboardsRetrieve: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.dashboardsUpdate() */ dashboardsUpdate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.dashboardsPartialUpdate() */ dashboardsPartialUpdate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: dashboards * Access as: posthog.dashboardsDestroy() */ dashboardsDestroy: () => Promise; /** * Copy an existing dashboard tile to another dashboard (insight, text card, or widget tile). * Tags: dashboards * Access as: posthog.dashboardsCopyTileCreate() */ dashboardsCopyTileCreate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * Add a markdown text tile to a dashboard. Text tiles render as markdown blocks on the dashboard — useful as section headings, dividers, or annotations between insight tiles to give the dashboard structure. * Tags: dashboards * Access as: posthog.dashboardsCreateTextTileCreate() */ dashboardsCreateTextTileCreate: () => Promise<{ id?: number; insight: { id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }; text: { id: number; created_by: unknown; last_modified_by: unknown; body?: string | null; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_modified_at: string; team: number }; button_tile: { id: string; created_by: unknown; last_modified_by: unknown; url: string; text: string; placement?: "left" | "right"; dashboard_tiles: (unknown)[]; style?: "primary" | "secondary"; last_modified_at: string; team: number }; widget?: { id: string; created_by: unknown; last_modified_by: unknown; widget_type: string; name?: string | null; description?: string; config?: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null } | { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null } | { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null } | { experimentId?: number | null } | { dateRange?: unknown | null; surveyId?: string | null; limit?: number } | { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; dashboard_tiles: (unknown)[]; last_modified_at: string; team: number } | null; layouts?: unknown; color?: string | null; filters_overrides?: unknown; show_description?: boolean | null; transparent_background?: boolean | null }>; /** * Soft-delete a single tile from a dashboard. Works for text, insight, and button tiles. The underlying Insight, Text, or ButtonTile object is preserved — only the dashboard tile is hidden. To delete the entire dashboard, use the dashboard delete endpoint instead. * Tags: dashboards * Access as: posthog.dashboardsDeleteTile() */ dashboardsDeleteTile: () => Promise; /** * * Tags: dashboards * Access as: posthog.dashboardsMoveTileCreate() */ dashboardsMoveTileCreate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.dashboardsMoveTilePartialUpdate() */ dashboardsMoveTilePartialUpdate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * * Tags: dashboards * Access as: posthog.dashboardsReorderTilesCreate() */ dashboardsReorderTilesCreate: () => Promise<{ id: number; name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_accessed_at?: string | null; last_viewed_at: string | null; folder: string | null; is_shared: boolean; deleted?: boolean; creation_mode: "default" | "template" | "duplicate" | "unlisted"; filters: { [key: string]: unknown }; variables: { [key: string]: unknown } | null; breakdown_colors?: unknown; data_color_theme_id?: number | null; tags?: (unknown)[]; restriction_level?: 21 | 37; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; access_control_version: string; last_refresh?: string | null; persisted_filters: { [key: string]: unknown } | null; persisted_variables: { [key: string]: unknown } | null; team_id: number; quick_filter_ids?: unknown[] | null; tiles: unknown[] | null; use_template?: string; use_dashboard?: number | null; delete_insights?: boolean; _create_in_folder?: string }>; /** * Run all insights on a dashboard and return their results. * Tags: dashboards * Access as: posthog.dashboardsRunInsightsRetrieve() */ dashboardsRunInsightsRetrieve: () => Promise<{ results: ({ id?: number; insight: { id: number; short_id: string; name: string | null; derived_name: string | null; result: unknown } })[] }>; /** * * Tags: dashboards * Access as: posthog.dashboardsRunWidgetsRetrieve() */ dashboardsRunWidgetsRetrieve: () => Promise<{ results: ({ tile_id: number; widget_type: string | null; result: unknown; error: string | null })[] }>; /** * Stream dashboard metadata and tiles via Server-Sent Events. Sends metadata first, then tiles as they are rendered. * Tags: dashboards * Access as: posthog.dashboardsStreamTilesRetrieve() */ dashboardsStreamTilesRetrieve: () => Promise; /** * Update the markdown body, layout, or color of an existing text tile on a dashboard. * Tags: dashboards * Access as: posthog.dashboardsUpdateTextTileCreate() */ dashboardsUpdateTextTileCreate: () => Promise<{ id?: number; insight: { id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }; text: { id: number; created_by: unknown; last_modified_by: unknown; body?: string | null; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_modified_at: string; team: number }; button_tile: { id: string; created_by: unknown; last_modified_by: unknown; url: string; text: string; placement?: "left" | "right"; dashboard_tiles: (unknown)[]; style?: "primary" | "secondary"; last_modified_at: string; team: number }; widget?: { id: string; created_by: unknown; last_modified_by: unknown; widget_type: string; name?: string | null; description?: string; config?: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null } | { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null } | { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null } | { experimentId?: number | null } | { dateRange?: unknown | null; surveyId?: string | null; limit?: number } | { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; dashboard_tiles: (unknown)[]; last_modified_at: string; team: number } | null; layouts?: unknown; color?: string | null; filters_overrides?: unknown; show_description?: boolean | null; transparent_background?: boolean | null }>; /** * Add multiple widget tiles to a dashboard in one atomic request. * Tags: dashboards * Access as: posthog.dashboardsWidgetsBatchCreate() */ dashboardsWidgetsBatchCreate: () => Promise<{ tiles: ({ id?: number; insight: { id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }; text: { id: number; created_by: unknown; last_modified_by: unknown; body?: string | null; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_modified_at: string; team: number }; button_tile: { id: string; created_by: unknown; last_modified_by: unknown; url: string; text: string; placement?: "left" | "right"; dashboard_tiles: (unknown)[]; style?: "primary" | "secondary"; last_modified_at: string; team: number }; widget?: { id: string; created_by: unknown; last_modified_by: unknown; widget_type: string; name?: string | null; description?: string; config?: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null } | { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null } | { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null } | { experimentId?: number | null } | { dateRange?: unknown | null; surveyId?: string | null; limit?: number } | { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; dashboard_tiles: (unknown)[]; last_modified_at: string; team: number } | null; layouts?: unknown; color?: string | null; filters_overrides?: unknown; show_description?: boolean | null; transparent_background?: boolean | null })[] }>; /** * Update the settings of existing widgets in place, atomically — config, name, and description. Each entry targets a widget by its tile_id and reuses the same write path as the dashboard PATCH endpoint. The widget_type is immutable. This edits widget settings only (config, name, description); tile placement (layouts, show_description) is a dashboard concern — use the dashboard PATCH endpoint or reorder_tiles for that. All updates succeed or fail together. To add new widgets, use the widgets/batch POST endpoint; to remove one, use delete_tile. * Tags: dashboards * Access as: posthog.dashboardsUpdateWidgetsBatch() */ dashboardsUpdateWidgetsBatch: () => Promise<{ tiles: ({ id?: number; insight: { id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }; text: { id: number; created_by: unknown; last_modified_by: unknown; body?: string | null; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_modified_at: string; team: number }; button_tile: { id: string; created_by: unknown; last_modified_by: unknown; url: string; text: string; placement?: "left" | "right"; dashboard_tiles: (unknown)[]; style?: "primary" | "secondary"; last_modified_at: string; team: number }; widget?: { id: string; created_by: unknown; last_modified_by: unknown; widget_type: string; name?: string | null; description?: string; config?: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null } | { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: unknown; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null } | { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null } | { experimentId?: number | null } | { dateRange?: unknown | null; surveyId?: string | null; limit?: number } | { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; dashboard_tiles: (unknown)[]; last_modified_at: string; team: number } | null; layouts?: unknown; color?: string | null; filters_overrides?: unknown; show_description?: boolean | null; transparent_background?: boolean | null })[] }>; /** * Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list * Tags: dashboards * Access as: posthog.dashboardsBulkUpdateTagsCreate() */ dashboardsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: number; tags: (string)[] })[]; skipped: ({ id: number; reason: string })[] }>; /** * * Tags: dashboards * Access as: posthog.dashboardsCreateFromTemplateJsonCreate() */ dashboardsCreateFromTemplateJsonCreate: () => Promise; /** * Creates an unlisted dashboard from template by tag. Enforces uniqueness (one per tag per team). Returns 409 if unlisted dashboard with this tag already exists. * Tags: dashboards * Access as: posthog.dashboardsCreateUnlistedDashboardCreate() */ dashboardsCreateUnlistedDashboardCreate: () => Promise; /** * List registered dashboard widget types and per-type config_schema documentation for agents. * Tags: dashboards * Access as: posthog.dashboardsWidgetCatalogRetrieve() */ dashboardsWidgetCatalogRetrieve: () => Promise<{ results: ({ widget_type: "activity_events_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; value?: string | (string)[] | null } | undefined } | null; limit?: number; eventName?: string | null }; required_product_access?: string | null } | { widget_type: "error_tracking_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: { date_from?: "-1M" | "-30M" | "-1h" | "-3h" | "-24h" | "-7d" | "-14d" | "-30d" | "-90d" | null } | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: { filterId: string; propertyName: string; optionId: string; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; value?: string | (string)[] | null } | undefined } | null; limit?: number; orderBy?: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC"; status?: "archived" | "active" | "resolved" | "pending_release" | "suppressed" | "all"; assignee?: { id: string | number; type: "user" | "role" } | null }; required_product_access?: string | null } | { widget_type: "session_replay_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; widgetFilters?: { [key: string]: unknown | undefined } | null; limit?: number; orderBy?: "start_time" | "activity_score" | "recording_duration" | "duration" | "click_count" | "console_error_count"; orderDirection?: "ASC" | "DESC"; savedFilterId?: string | null; collectionId?: string | null }; required_product_access?: string | null } | { widget_type: "experiments_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { limit?: number; orderBy?: "created_at" | "name" | "start_date"; orderDirection?: "ASC" | "DESC"; status?: "draft" | "running" | "paused" | "exposure_frozen" | "stopped" | "all"; createdBy?: number | null }; required_product_access?: string | null } | { widget_type: "experiment_results"; group_id: string; group_label: string; label: string; description: string; config_schema: { experimentId?: number | null }; required_product_access?: string | null } | { widget_type: "survey_results"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: unknown | null; surveyId?: string | null; limit?: number }; required_product_access?: string | null } | { widget_type: "logs_list"; group_id: string; group_label: string; label: string; description: string; config_schema: { dateRange?: unknown | null; limit?: number; orderBy?: "latest" | "earliest"; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; serviceNames?: (string)[]; wrapLines?: boolean; timezone?: "UTC" | "local"; savedViewId?: string | null }; required_product_access?: string | null })[] }>; /** * * Tags: data_color_themes * Access as: posthog.dataColorThemesList() */ dataColorThemesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * * Tags: data_color_themes * Access as: posthog.dataColorThemesCreate() */ dataColorThemesCreate: () => Promise<{ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: data_color_themes * Access as: posthog.dataColorThemesRetrieve() */ dataColorThemesRetrieve: () => Promise<{ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: data_color_themes * Access as: posthog.dataColorThemesUpdate() */ dataColorThemesUpdate: () => Promise<{ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: data_color_themes * Access as: posthog.dataColorThemesPartialUpdate() */ dataColorThemesPartialUpdate: () => Promise<{ id: number; name: string; colors?: unknown; is_global: boolean; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: data_color_themes * Access as: posthog.dataColorThemesDestroy() */ dataColorThemesDestroy: () => Promise; /** * List data modeling jobs which are "runs" for our saved queries. * Tags: data_modeling_jobs * Access as: posthog.dataModelingJobsList() */ dataModelingJobsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; saved_query_id: string | null; status: "Cancelled" | "Completed" | "Failed" | "Running"; rows_materialized: number; error: string | null; created_at: string; last_run_at: string; workflow_id: string | null; workflow_run_id: string | null; rows_expected: number | null })[] }>; /** * List data modeling jobs which are "runs" for our saved queries. * Tags: data_modeling_jobs * Access as: posthog.dataModelingJobsRetrieve() */ dataModelingJobsRetrieve: () => Promise<{ id: string; saved_query_id: string | null; status: "Cancelled" | "Completed" | "Failed" | "Running"; rows_materialized: number; error: string | null; created_at: string; last_run_at: string; workflow_id: string | null; workflow_run_id: string | null; rows_expected: number | null }>; /** * Get the most recent non-running job for each saved query from the v2 backend. * Tags: data_modeling_jobs * Access as: posthog.dataModelingJobsRecentRetrieve() */ dataModelingJobsRecentRetrieve: () => Promise<{ id: string; saved_query_id: string | null; status: "Cancelled" | "Completed" | "Failed" | "Running"; rows_materialized: number; error: string | null; created_at: string; last_run_at: string; workflow_id: string | null; workflow_run_id: string | null; rows_expected: number | null }>; /** * Get all currently running jobs from the v2 backend. * Tags: data_modeling_jobs * Access as: posthog.dataModelingJobsRunningRetrieve() */ dataModelingJobsRunningRetrieve: () => Promise<{ id: string; saved_query_id: string | null; status: "Cancelled" | "Completed" | "Failed" | "Running"; rows_materialized: number; error: string | null; created_at: string; last_run_at: string; workflow_id: string | null; workflow_run_id: string | null; rows_expected: number | null }>; /** * Check if a database name is available. * Tags: data_warehouse * Access as: posthog.dataWarehouseCheckDatabaseNameRetrieve() */ dataWarehouseCheckDatabaseNameRetrieve: () => Promise<{ name: string; available: boolean }>; /** * Returns completed/non-running activities (jobs with status 'Completed'). Supports pagination and cutoff time filtering. * Tags: data_warehouse * Access as: posthog.dataWarehouseCompletedActivityRetrieve() */ dataWarehouseCompletedActivityRetrieve: () => Promise; /** * Returns failed/disabled data pipeline items for the Pipeline status side panel. Includes: materializations, syncs, sources, destinations, and transformations. * Tags: data_warehouse * Access as: posthog.dataWarehouseDataHealthIssuesRetrieve() */ dataWarehouseDataHealthIssuesRetrieve: () => Promise; /** * Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet. * Tags: data_warehouse * Access as: posthog.dataWarehouseDataOpsDashboardRetrieve() */ dataWarehouseDataOpsDashboardRetrieve: () => Promise; /** * Remove the organization's provisioning record after teardown, freeing its warehouse name. Called once the warehouse status reports `deleted`: deprovision tears the warehouse down, this removes the now-empty org row so the database_name can be reused. Restricted to organization admins. * Tags: data_warehouse * Access as: posthog.dataWarehouseDeleteOrgDestroy() */ dataWarehouseDeleteOrgDestroy: () => Promise<{ status?: string; org?: string }>; /** * Start deprovisioning the organization's managed warehouse. Restricted to organization admins. * Tags: data_warehouse * Access as: posthog.dataWarehouseDeprovisionCreate() */ dataWarehouseDeprovisionCreate: () => Promise; /** * Enable warehouse backfill for this environment with a dedicated set of tables. Requires a table name and records the environment's membership in the organization's managed warehouse. Restricted to organization admins. * Tags: data_warehouse * Access as: posthog.dataWarehouseEnableBackfillCreate() */ dataWarehouseEnableBackfillCreate: () => Promise<{ enabled: boolean; table_suffix: string }>; /** * Returns success and failed job statistics for the last 1, 7, or 30 days. Query parameter 'days' can be 1, 7, or 30 (default: 7). * Tags: data_warehouse * Access as: posthog.dataWarehouseJobStatsRetrieve() */ dataWarehouseJobStatsRetrieve: () => Promise; /** * API endpoints for data warehouse aggregate statistics and operations. * Tags: data_warehouse * Access as: posthog.dataWarehousePropertyValuesRetrieve() */ dataWarehousePropertyValuesRetrieve: () => Promise; /** * Start provisioning a managed warehouse for this organization (shared by all its teams). * Tags: data_warehouse * Access as: posthog.dataWarehouseProvisionCreate() */ dataWarehouseProvisionCreate: () => Promise; /** * Reset the root password for the managed warehouse. * Tags: data_warehouse * Access as: posthog.dataWarehouseResetPasswordCreate() */ dataWarehouseResetPasswordCreate: () => Promise<{ username: string; password: string }>; /** * Returns currently running activities (jobs with status 'Running'). Supports pagination and cutoff time filtering. * Tags: data_warehouse * Access as: posthog.dataWarehouseRunningActivityRetrieve() */ dataWarehouseRunningActivityRetrieve: () => Promise; /** * Returns aggregated statistics for the data warehouse total rows processed within the current billing period. Used by the frontend data warehouse scene to display usage information. * Tags: data_warehouse * Access as: posthog.dataWarehouseTotalRowsStatsRetrieve() */ dataWarehouseTotalRowsStatsRetrieve: () => Promise; /** * Get the current provisioning status of the managed warehouse, with this project's backfill state. * Tags: data_warehouse * Access as: posthog.dataWarehouseWarehouseStatusRetrieve() */ dataWarehouseWarehouseStatusRetrieve: () => Promise<{ org_id: string; state: "pending" | "provisioning" | "ready" | "failed" | "deleting" | "deleted"; status_message: string; s3_state: string; metadata_store_state: string; identity_state: string; secrets_state: string; ready_at: string | null; failed_at: string | null; connection?: { host: string; port: number; database: string; username: string } | null; has_backfill: boolean; table_suffix: string | null }>; /** * * Tags: dataset_items * Access as: posthog.datasetItemsList() */ datasetItemsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number })[] }>; /** * * Tags: dataset_items * Access as: posthog.datasetItemsCreate() */ datasetItemsCreate: () => Promise<{ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: dataset_items * Access as: posthog.datasetItemsRetrieve() */ datasetItemsRetrieve: () => Promise<{ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: dataset_items * Access as: posthog.datasetItemsUpdate() */ datasetItemsUpdate: () => Promise<{ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: dataset_items * Access as: posthog.datasetItemsPartialUpdate() */ datasetItemsPartialUpdate: () => Promise<{ id: string; dataset: string; input?: unknown; output?: unknown; metadata?: unknown; ref_trace_id?: string | null; ref_timestamp?: string | null; ref_source_id?: string | null; deleted?: boolean | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: dataset_items * Access as: posthog.datasetItemsDestroy() */ datasetItemsDestroy: () => Promise; /** * * Tags: datasets * Access as: posthog.datasetsList() */ datasetsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number })[] }>; /** * * Tags: datasets * Access as: posthog.datasetsCreate() */ datasetsCreate: () => Promise<{ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: datasets * Access as: posthog.datasetsRetrieve() */ datasetsRetrieve: () => Promise<{ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: datasets * Access as: posthog.datasetsUpdate() */ datasetsUpdate: () => Promise<{ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: datasets * Access as: posthog.datasetsPartialUpdate() */ datasetsPartialUpdate: () => Promise<{ id: string; name: string; description?: string | null; metadata?: unknown; created_at: string; updated_at: string | null; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: datasets * Access as: posthog.datasetsDestroy() */ datasetsDestroy: () => Promise; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemList() */ desktopFileSystemList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null })[] }>; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemCreate() */ desktopFileSystemCreate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemRetrieve() */ desktopFileSystemRetrieve: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemUpdate() */ desktopFileSystemUpdate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemPartialUpdate() */ desktopFileSystemPartialUpdate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemDestroy() */ desktopFileSystemDestroy: () => Promise; /** * Publish a new version of a freeform canvas's React source. Merges into the dashboard row's `meta` (never replaces it), so existing keys like `channelId`/`templateId` survive. Appends a full-file version snapshot and points `currentVersionId` at it — the server-side mirror of the app's dashboardsService.saveFreeform. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemCanvasPartialUpdate() */ desktopFileSystemCanvasPartialUpdate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * Return the Task currently generating this folder's CONTEXT.md, or null if none. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemContextGenerationRetrieve() */ desktopFileSystemContextGenerationRetrieve: () => Promise<{ task_id: string | null }>; /** * Set or clear the Task associated with this folder's CONTEXT.md generation. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemContextGenerationUpdate() */ desktopFileSystemContextGenerationUpdate: () => Promise<{ task_id: string | null }>; /** * Get count of all files in a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemCountCreate() */ desktopFileSystemCountCreate: () => Promise; /** * Return the latest non-deleted instructions for this folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemInstructionsRetrieve() */ desktopFileSystemInstructionsRetrieve: () => Promise<{ id: string; content: string; version: number; is_latest: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string }>; /** * Publish a new version of the folder's instructions. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemInstructionsUpdate() */ desktopFileSystemInstructionsUpdate: () => Promise<{ id: string; content: string; version: number; is_latest: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string }>; /** * Publish a new version of the folder's instructions. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemInstructionsPartialUpdate() */ desktopFileSystemInstructionsPartialUpdate: () => Promise<{ id: string; content: string; version: number; is_latest: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string }>; /** * Soft-delete every version of this folder's instructions. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemInstructionsDestroy() */ desktopFileSystemInstructionsDestroy: () => Promise; /** * List the version history for this folder's instructions, newest first. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemInstructionsVersionsList() */ desktopFileSystemInstructionsVersionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; version: number; is_latest: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string })[] }>; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemLinkCreate() */ desktopFileSystemLinkCreate: () => Promise; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemMoveCreate() */ desktopFileSystemMoveCreate: () => Promise; /** * Get count of all files in a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemCountByPathCreate() */ desktopFileSystemCountByPathCreate: () => Promise; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemLogViewRetrieve() */ desktopFileSystemLogViewRetrieve: () => Promise; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemLogViewCreate() */ desktopFileSystemLogViewCreate: () => Promise; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemUndoDeleteCreate() */ desktopFileSystemUndoDeleteCreate: () => Promise; /** * The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder. * Tags: desktop_file_system * Access as: posthog.desktopFileSystemUnfiledRetrieve() */ desktopFileSystemUnfiledRetrieve: () => Promise; /** * Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface. * Tags: desktop_file_system_shortcut * Access as: posthog.desktopFileSystemShortcutList() */ desktopFileSystemShortcutList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null })[] }>; /** * Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface. * Tags: desktop_file_system_shortcut * Access as: posthog.desktopFileSystemShortcutCreate() */ desktopFileSystemShortcutCreate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface. * Tags: desktop_file_system_shortcut * Access as: posthog.desktopFileSystemShortcutRetrieve() */ desktopFileSystemShortcutRetrieve: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface. * Tags: desktop_file_system_shortcut * Access as: posthog.desktopFileSystemShortcutUpdate() */ desktopFileSystemShortcutUpdate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface. * Tags: desktop_file_system_shortcut * Access as: posthog.desktopFileSystemShortcutPartialUpdate() */ desktopFileSystemShortcutPartialUpdate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface. * Tags: desktop_file_system_shortcut * Access as: posthog.desktopFileSystemShortcutDestroy() */ desktopFileSystemShortcutDestroy: () => Promise; /** * Set the display order of the current user's shortcuts. `ordered_ids` becomes the new top-to-bottom order; any unknown IDs are rejected. * Tags: desktop_file_system_shortcut * Access as: posthog.desktopFileSystemShortcutReorderCreate() */ desktopFileSystemShortcutReorderCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null })[] }>; /** * * Tags: early_access_feature * Access as: posthog.earlyAccessFeatureList() */ earlyAccessFeatureList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; name: string; description?: string; stage: "draft" | "concept" | "alpha" | "beta" | "general-availability" | "archived"; documentation_url?: string; payload: { [key: string]: unknown }; created_at: string; user_access_level: string | null })[] }>; /** * * Tags: early_access_feature * Access as: posthog.earlyAccessFeatureCreate() */ earlyAccessFeatureCreate: () => Promise<{ id: string; name: string; description?: string; stage: "draft" | "concept" | "alpha" | "beta" | "general-availability" | "archived"; documentation_url?: string; payload?: unknown; created_at: string; feature_flag_id?: number; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; _create_in_folder?: string; user_access_level: string | null }>; /** * * Tags: early_access_feature * Access as: posthog.earlyAccessFeatureRetrieve() */ earlyAccessFeatureRetrieve: () => Promise<{ id: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; name: string; description?: string; stage: "draft" | "concept" | "alpha" | "beta" | "general-availability" | "archived"; documentation_url?: string; payload: { [key: string]: unknown }; created_at: string; user_access_level: string | null }>; /** * * Tags: early_access_feature * Access as: posthog.earlyAccessFeatureUpdate() */ earlyAccessFeatureUpdate: () => Promise<{ id: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; name: string; description?: string; stage: "draft" | "concept" | "alpha" | "beta" | "general-availability" | "archived"; documentation_url?: string; payload: { [key: string]: unknown }; created_at: string; user_access_level: string | null }>; /** * * Tags: early_access_feature * Access as: posthog.earlyAccessFeaturePartialUpdate() */ earlyAccessFeaturePartialUpdate: () => Promise<{ id: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; name: string; description?: string; stage: "draft" | "concept" | "alpha" | "beta" | "general-availability" | "archived"; documentation_url?: string; payload: { [key: string]: unknown }; created_at: string; user_access_level: string | null }>; /** * * Tags: early_access_feature * Access as: posthog.earlyAccessFeatureDestroy() */ earlyAccessFeatureDestroy: () => Promise; /** * * Tags: elements * Access as: posthog.elementsList() */ elementsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null })[] }>; /** * * Tags: elements * Access as: posthog.elementsCreate() */ elementsCreate: () => Promise<{ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null }>; /** * * Tags: elements * Access as: posthog.elementsRetrieve() */ elementsRetrieve: () => Promise<{ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null }>; /** * * Tags: elements * Access as: posthog.elementsUpdate() */ elementsUpdate: () => Promise<{ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null }>; /** * * Tags: elements * Access as: posthog.elementsPartialUpdate() */ elementsPartialUpdate: () => Promise<{ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null }>; /** * * Tags: elements * Access as: posthog.elementsDestroy() */ elementsDestroy: () => Promise; /** * Counts of $autocapture, $rageclick, and $dead_click events grouped by the element chain they occurred on, ordered by count. Defaults to all three event types; narrow with the include parameter. * Tags: elements * Access as: posthog.elementsStatsRetrieve() */ elementsStatsRetrieve: () => Promise<{ results: ({ count: number; hash: string | null; type: string; elements: ({ text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null })[] })[]; next: string | null; previous: string | null }>; /** * * Tags: elements * Access as: posthog.elementsValuesList() */ elementsValuesList: () => Promise<({ name: string })[]>; /** * List all endpoints for the team. * Tags: endpoints * Access as: posthog.endpointsList() */ endpointsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[] })[] }>; /** * Create a new endpoint. * Tags: endpoints * Access as: posthog.endpointsCreate() */ endpointsCreate: () => Promise<{ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[] }>; /** * Retrieve an endpoint, or a specific version via ?version=N. * Tags: endpoints * Access as: posthog.endpointsRetrieve() */ endpointsRetrieve: () => Promise<{ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[]; version: number; version_id: string; endpoint_is_active: boolean; version_created_at: string; version_updated_at: string | null; version_created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null }>; /** * Update an existing endpoint. Parameters are optional. Pass version in body or ?version=N query param to target a specific version. * Tags: endpoints * Access as: posthog.endpointsUpdate() */ endpointsUpdate: () => Promise<{ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[] }>; /** * Update an existing endpoint. * Tags: endpoints * Access as: posthog.endpointsPartialUpdate() */ endpointsPartialUpdate: () => Promise<{ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[] }>; /** * Delete an endpoint and clean up materialized query. * Tags: endpoints * Access as: posthog.endpointsDestroy() */ endpointsDestroy: () => Promise; /** * * Tags: endpoints * Access as: posthog.endpointsLogsRetrieve() */ endpointsLogsRetrieve: () => Promise; /** * Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions. * Tags: endpoints * Access as: posthog.endpointsMaterializationPreviewCreate() */ endpointsMaterializationPreviewCreate: () => Promise; /** * Get materialization status for an endpoint. Supports ?version=N query param. * Tags: endpoints * Access as: posthog.endpointsMaterializationStatusRetrieve() */ endpointsMaterializationStatusRetrieve: () => Promise<{ name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }>; /** * Ask AI to rewrite the endpoint's query into a semantically equivalent form that can be materialized. Only applicable to SQL (HogQL) endpoints that currently fail the materialization checks. The suggestion is validated against the live checks before being returned; nothing is saved. Requires the organization's AI data processing approval. * Tags: endpoints * Access as: posthog.endpointsMaterializationSuggestionCreate() */ endpointsMaterializationSuggestionCreate: () => Promise<{ suggestion_status: "ok" | "cannot_fix" | "invalid" | "model_error"; suggested_query: string | null; explanation: string | null; attempts: number; error: string | null; original_reason: string }>; /** * Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients. * Tags: endpoints * Access as: posthog.endpointsOpenapiSpecRetrieve() */ endpointsOpenapiSpecRetrieve: () => Promise; /** * Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set. * Tags: endpoints * Access as: posthog.endpointsRunRetrieve() */ endpointsRunRetrieve: () => Promise<{ name: string; execution_id?: string; results?: (unknown)[]; columns?: (string)[]; hasMore?: boolean; endpoint_version?: number }>; /** * Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set. * Tags: endpoints * Access as: posthog.endpointsRunCreate() */ endpointsRunCreate: () => Promise<{ name: string; execution_id?: string; results?: (unknown)[]; columns?: (string)[]; hasMore?: boolean; endpoint_version?: number }>; /** * List all versions for an endpoint. * Tags: endpoints * Access as: posthog.endpointsVersionsList() */ endpointsVersionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string | null; query: unknown; is_active: boolean; data_freshness_seconds: number; endpoint_path: string; url: string | null; ui_url: string | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_materialized: boolean; current_version: number; current_version_id?: string | null; versions_count: number; derived_from_insight: string | null; last_executed_at: string | null; materialization: { name: string; status?: string; can_materialize: boolean; reason?: string | null; last_materialized_at?: string | null; error?: string; saved_query_id?: string | null }; bucket_overrides: { [key: string]: unknown } | null; columns: ({ name: string; type: string })[]; tags: (string)[]; optional_breakdown_properties: (string)[]; version: number; version_id: string; endpoint_is_active: boolean; version_created_at: string; version_updated_at: string | null; version_created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null })[] }>; /** * Get the most recent execution time per endpoint (endpoint-level). Timestamps are recorded by the run path for personal-API-key calls. For per-version usage, query the query_log table directly. * Tags: endpoints * Access as: posthog.endpointsLastExecutionTimesCreate() */ endpointsLastExecutionTimesCreate: () => Promise<{ query_status: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } }>; /** * Get the source code of the live materialization checks, plus the rewrite contract. Lets an agent rewrite a rejected endpoint query itself: fetch these conditions, produce a semantically equivalent query that passes every check, update the endpoint with it, then confirm via materialization_status. The source is read from the running system, so it always matches the checks this instance enforces. * Tags: endpoints * Access as: posthog.endpointsMaterializationConditionsRetrieve() */ endpointsMaterializationConditionsRetrieve: () => Promise<{ conditions_source: string; rewrite_contract: string }>; /** * One author's estimated CI cost split by workflow over a window (date_from default -30d), highest spend first. Runs are attributed to the author through their pull requests (attribution is by PR number). Returns an empty list when the job-level source isn't synced. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsAuthorWorkflowCosts() */ engineeringAnalyticsAuthorWorkflowCosts: () => Promise<({ workflow_name: string; billable_minutes: number; estimated_cost_usd: number | null; costed_jobs: number; unsettled_jobs: number; excluded_jobs: number })[]>; /** * Headline counts for the open-PR backlog: open PRs, distinct repos, stuck PRs (open, non-draft, non-bot, older than 7 days), and PRs with failing CI. The failing-CI count rests on the head-SHA join and can lag until late CI completions settle. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsCiCards() */ engineeringAnalyticsCiCards: () => Promise<{ open_prs: number; repos: number; stuck: number; failing_ci: number }>; /** * The thinned CI failure logs for a pull request, grouped by failed job. Resolves the PR to its workflow runs via the pull_requests association (all of the PR's pushes, not just the latest commit), then reads the Logs product joined on run_id. Returns failed jobs only (the worker fetches logs for failures); logs_available is false when CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR has no run association. Each line carries its original 1-based line number in the full pre-thinning log; lines are the failure region (errors plus surrounding context, with omission markers), capped per job and overall. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsCiFailureLogs() */ engineeringAnalyticsCiFailureLogs: () => Promise<{ repo: { provider: string; owner: string; name: string }; jobs: ({ lines: ({ original_line: number | null; text: string })[]; job_id: number; run_id: number; conclusion: string; branch: string; original_total_lines: number; line_count: number; truncated: boolean })[]; pr_number: number; runs_attributed: number; logs_available: boolean; truncated: boolean }>; /** * The flaky-test leaderboard: backend tests ranked by flakiness signal from the per-test CI spans, over a window (default -7d, maximum 30 days). A test qualifies by passing on retry at least min_rerun_passes times OR failing on at least min_failed_prs distinct PRs. All figures are absolute counts, never rates: fast passing runs are not emitted, so denominators are biased. Pass-on-retry counts only flow from CI lanes running with reruns enabled; in other lanes a flake surfaces as a plain failure, which the distinct-PR count catches. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsFlakyTests() */ engineeringAnalyticsFlakyTests: () => Promise<{ items: ({ nodeid: string; selector: string; rerun_passed_count: number; failed_count: number; failed_pr_count: number; branch_count: number; xfailed_count: number; last_seen_at: string })[]; truncated: boolean; limit: number }>; /** * Per-job aggregates for one workflow over a window (default -30d), one row per de-sharded job name (matrix shards aggregate together), busiest first: queue p50, duration p50/p95, failure rate, retry pressure, run share (below 1.0 = conditional job), and billable cost. Jobs always need their run as context — this is the aggregate view; use workflow_jobs for one run's jobs. Empty when the job-level source isn't synced. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsJobAggregates() */ engineeringAnalyticsJobAggregates: () => Promise<({ job_name: string; job_count: number; shard_count: number; runs_in: number; run_share: number | null; queue_p50_seconds: number | null; p50_seconds: number | null; p95_seconds: number | null; failure_rate: number | null; retry_job_count: number; billable_minutes: number | null; estimated_cost_usd: number | null })[]>; /** * Default-branch failures over a window (default -24h), grouped error-tracking style by (workflow, de-sharded failing job) with a run count and first/last seen, newest group first. `branch` overrides the detected default branch. PR-branch failures are deliberately excluded — at monorepo volume a flat feed is a firehose; those surface per PR. Groups degrade to workflow level (failed_job '') when the job-level source isn't synced. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsMasterFailures() */ engineeringAnalyticsMasterFailures: () => Promise<({ repo: { provider: string; owner: string; name: string }; workflow_name: string; failed_job: string; run_count: number; first_seen: string; last_seen: string; latest_run_id: number })[]>; /** * Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. Billable self-hosted Linux runners only — provider-hosted (free GitHub-hosted) and non-Linux jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level source isn't synced yet. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsPrCost() */ engineeringAnalyticsPrCost: () => Promise<{ by_workflow: ({ workflow_name: string; billable_minutes: number; estimated_cost_usd: number | null; costed_jobs: number; unsettled_jobs: number; excluded_jobs: number })[]; by_run: ({ run_id: number; run_attempt: number; billable_minutes: number; estimated_cost_usd: number | null })[]; jobs_available: boolean; billable_minutes: number; estimated_cost_usd: number | null; costed_jobs: number; unsettled_jobs: number; excluded_jobs: number }>; /** * The timeline of a single pull request: header plus ordered events (opened, CI started/finished, merged or closed). Use this to answer 'where is this PR stuck and what happened to it'. This is a partial view: review and comment events are not yet available. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsPrLifecycle() */ engineeringAnalyticsPrLifecycle: () => Promise<{ pull_request: { author: { handle: string; display_name: string; avatar_url: string; is_bot: boolean }; repo: { provider: string; owner: string; name: string }; id: number; number: number; title: string; state: "open" | "closed" | "merged"; is_draft: boolean; created_at: string; merged_at: string | null; closed_at: string | null }; events: ({ kind: "opened" | "ci_started" | "ci_finished" | "merged" | "closed"; at: string; detail?: string | null; run_id?: number | null })[]; metric_quality?: "precise" | "coarse" | "partial" }>; /** * Every workflow run attributed to a pull request, across all its commits (grouped by head SHA client-side), newest first. Run-level only. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsPrRuns() */ engineeringAnalyticsPrRuns: () => Promise<({ repo: { provider: string; owner: string; name: string }; id: number; workflow_name: string; head_sha: string; head_branch: string; status: string; conclusion: string | null; run_started_at: string | null; updated_at: string | null; duration_seconds: number | null; run_attempt: number; pr_number: number })[]>; /** * Open pull requests plus any merged or closed since date_from (default -30d), newest first, each with its head-SHA CI rollup. The list is capped; when more match, `truncated` is true and the ci_cards counts can exceed it. open_to_merge_seconds is coarse — it fuses draft and ready-for-review time; CI counts can lag until late completions settle. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsPullRequests() */ engineeringAnalyticsPullRequests: () => Promise<{ items: ({ author: { handle: string; display_name: string; avatar_url: string; is_bot: boolean }; repo: { provider: string; owner: string; name: string }; ci: { runs: number; passing: number; failing: number; pending: number; failing_workflows?: (string)[] }; push_history: ({ head_sha: string; started_at: string; wall_seconds: number | null; failed: boolean; pending: boolean })[]; number: number; title: string; state: "open" | "closed" | "merged"; is_draft: boolean; created_at: string; merged_at: string | null; open_to_merge_seconds: number | null; labels: (string)[]; pushes: number; rerun_cycles: number; estimated_cost_usd?: number | null; billable_minutes?: number | null })[]; truncated: boolean; limit: number }>; /** * Flaky-test quarantine file * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsQuarantine() */ engineeringAnalyticsQuarantine: () => Promise<{ entries: ({ id: string; runner: string; reason: string; owner: string; issue: string; added: string; expires: string; mode: "run" | "skip"; lifecycle: "active" | "expiring_soon" | "in_grace" | "overdue"; days_until_expiry: number; selector_kind: "product" | "file" | "directory" | "test" })[]; repo: { provider: string; owner: string; name: string } | null; available: boolean; parse_errors: (string)[]; parse_warnings: (string)[]; source_url: string; generated_at: string }>; /** * Quarantine, extend, or unquarantine a flaky test * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsQuarantineRequest() */ engineeringAnalyticsQuarantineRequest: () => Promise<{ pr_url: string; issue_url: string; branch: string }>; /** * Repo-level headline aggregates over a window (default -30d): run count, success rate, re-run cycles, median PR open-to-merge (bots and drafts excluded; coarse — draft and ready time fused), and billable minutes + estimated cost — each with its equal-length previous-window twin so a caller can render honest deltas. Also carries the detected default branch and its completed-run history series. Cost figures are null until the job-level source is synced. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsRepoOverview() */ engineeringAnalyticsRepoOverview: () => Promise<{ cost_series: ({ bucket_start: string; estimated_cost_usd: number | null; merges: number; cost_per_merge_usd: number | null })[]; time_to_green_series: ({ bucket_start: string; p50_seconds: number | null })[]; success_rate_series: ({ bucket_start: string; success_rate: number | null })[]; open_to_merge_series: ({ bucket_start: string; p50_seconds: number | null })[]; run_count: number; run_count_prev: number; success_rate: number | null; success_rate_prev: number | null; rerun_cycles: number; rerun_cycles_prev: number; median_open_to_merge_seconds: number | null; median_open_to_merge_seconds_prev: number | null; billable_minutes: number | null; billable_minutes_prev: number | null; estimated_cost_usd: number | null; estimated_cost_usd_prev: number | null; jobs_available: boolean; default_branch: string; cost_series_granularity: string; time_to_green_series_granularity: string; success_rate_series_granularity: string; open_to_merge_series_granularity: string }>; /** * Default-branch health as compact chart points over a window (default -30d), newest first, for the repo-hub run-activity chart. All of a commit's workflow runs are collapsed into ONE point per commit (head SHA): its earliest workflow start, wall-clock duration until the last workflow settled (null while any is still running), and an overall conclusion that is 'failure' if any workflow decisively failed, else 'success' when at least one passed, else 'neutral'. `branch` overrides the detected default branch. `truncated` is true when more commits matched than the cap, so the chart covers only the most recent commits. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsRepoRunActivity() */ engineeringAnalyticsRepoRunActivity: () => Promise<{ points: ({ run_id: number; conclusion: string | null; run_started_at: string; duration_seconds: number | null; head_branch: string; pr_number: number; head_sha: string })[]; truncated: boolean; limit: number }>; /** * The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of ci_failure_logs for surfaces that aren't PR-scoped (default-branch failures, the run page). logs_available is false when the run didn't fail or its logs aged out of the short Logs retention. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsRunFailureLogs() */ engineeringAnalyticsRunFailureLogs: () => Promise<{ jobs: ({ lines: ({ original_line: number | null; text: string })[]; job_id: number; run_id: number; conclusion: string; branch: string; original_total_lines: number; line_count: number; truncated: boolean })[]; run_id: number; logs_available: boolean; truncated: boolean }>; /** * The team's connected GitHub data warehouse sources, oldest first. Populate a source picker from this and pass a chosen `id` back as `source_id` to the other endpoints. A team can connect GitHub more than once (e.g. one source per repository); this lists them all, including any whose tables aren't fully synced yet. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsSources() */ engineeringAnalyticsSources: () => Promise<({ id: string; repo: string; prefix: string })[]>; /** * Per-workflow CI health over a window (default last 24 hours, maximum 366 days): run count, success rate, p50/p95 duration, last failure time, latest-run status, and a zero-filled run history bucketed by hour/day/week to fit the window. p50/p95 are over successful runs only, so cancelled (superseded) and failed runs never bias the duration trend. Optionally scope to a single git branch via `branch`, or to attributed pull-request runs via `run_scope=pull_request`. Use this for 'is CI getting slower' and 'which workflow is the long pole'; compare two windows to get a trend. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsWorkflowHealth() */ engineeringAnalyticsWorkflowHealth: () => Promise<({ repo: { provider: string; owner: string; name: string }; buckets: ({ bucket_start: string; run_count: number; completed: number; successes: number; failures: number })[]; workflow_name: string; run_count: number; success_rate: number | null; p50_seconds: number | null; p95_seconds: number | null; last_failure_at: string | null; latest_run_failed: boolean | null; latest_run_conclusion: string | null; granularity: string; billable_minutes?: number | null; estimated_cost_usd?: number | null; rerun_cycles?: number; success_rate_prev?: number | null })[]>; /** * Jobs of a single workflow run attempt, with per-job duration, runner tier, and estimated cost. Scoped to one run_attempt (the latest unless specified) so a re-run's attempts don't merge. Returns an empty list when the job-level source isn't synced yet. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsWorkflowJobs() */ engineeringAnalyticsWorkflowJobs: () => Promise<({ id: number; run_id: number; name: string; status: string; conclusion: string | null; started_at: string | null; completed_at: string | null; duration_seconds: number | null; runner_provider: string; runner_label: string; estimated_cost_usd: number | null })[]>; /** * A single workflow run: status, conclusion, duration, branch, attempt, and the attributed pull request. Run-level only — per-job and per-step detail are not tracked yet. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsWorkflowRun() */ engineeringAnalyticsWorkflowRun: () => Promise<{ repo: { provider: string; owner: string; name: string }; id: number; workflow_name: string; head_sha: string; head_branch: string; status: string; conclusion: string | null; run_started_at: string | null; updated_at: string | null; duration_seconds: number | null; run_attempt: number; pr_number: number }>; /** * Compact per-run points for a single workflow over a window (date_from default -30d), newest first, for the run-activity chart: each run's start time, duration, conclusion, branch, and attributed PR. Optionally scope to a single git branch via `branch`, matching workflow_runs. Leaner and higher-capped than workflow_runs so the chart spans the full window even on busy workflows; `truncated` is true when the cap is hit, so the chart covers only the most recent runs. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsWorkflowRunActivity() */ engineeringAnalyticsWorkflowRunActivity: () => Promise<{ points: ({ run_id: number; conclusion: string | null; run_started_at: string; duration_seconds: number | null; head_branch: string; pr_number: number; head_sha: string })[]; truncated: boolean; limit: number }>; /** * A workflow's estimated CI cost broken down by runner tier over a window (date_from default -30d), highest spend first. Optionally scope to a single git branch via `branch`. Returns an empty list when the job-level source isn't synced. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsWorkflowRunnerCosts() */ engineeringAnalyticsWorkflowRunnerCosts: () => Promise<({ provider: string; runner_label: string; job_count: number; billable_minutes: number; estimated_cost_usd: number | null })[]>; /** * Runs of a single workflow within a repo over a window (date_from default -30d), newest first. Optionally scope to a single git branch via `branch`. Each row is run-level — per-job and per-step detail are not tracked yet. Use this as the GitHub 'workflow' page between the workflow list and a single run. * Tags: engineering_analytics, engineering_analytics * Access as: posthog.engineeringAnalyticsWorkflowRuns() */ engineeringAnalyticsWorkflowRuns: () => Promise<({ repo: { provider: string; owner: string; name: string }; id: number; workflow_name: string; head_sha: string; head_branch: string; status: string; conclusion: string | null; run_started_at: string | null; updated_at: string | null; duration_seconds: number | null; run_attempt: number; pr_number: number })[]>; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsList() */ environmentsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; uuid: string; organization: string; project_id: number; api_token: string; name: string; completed_snippet_onboarding: boolean; has_completed_onboarding_for: unknown; ingested_event: boolean; is_demo: boolean; timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; access_control: boolean })[] }>; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsCreate() */ environmentsCreate: () => Promise<{ id: number; uuid: string; name?: string; access_control?: boolean; organization: string; project_id: number; api_token: string; secret_api_token: string | null; secret_api_token_backup: string | null; created_at: string; updated_at: string; ingested_event: boolean; default_modifiers: { [key: string]: unknown }; person_on_events_querying_enabled: boolean; user_access_level: string | null; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; logs_settings?: unknown; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; cookieless_server_hash_mode?: 0 | 1 | 2 | null; human_friendly_comparison_periods?: boolean | null; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; flags_persistence_default?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; capture_dead_clicks?: boolean | null; default_data_theme?: number | null; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; onboarding_tasks?: unknown; base_currency?: "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"; web_analytics_pre_aggregated_tables_enabled?: boolean | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | unknown; conversations_enabled?: boolean | null; conversations_settings?: unknown; proactive_tasks_enabled?: boolean | null; workflows_config?: { capture_workflows_engagement_events?: boolean }; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; product_intents: ({ [key: string]: unknown })[]; managed_viewsets: { [key: string]: boolean | undefined }; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; event_retention_months: number; events_retention_enforced: boolean }>; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsRetrieve() */ environmentsRetrieve: () => Promise<{ id: number; uuid: string; name?: string; access_control?: boolean; organization: string; project_id: number; api_token: string; secret_api_token: string | null; secret_api_token_backup: string | null; created_at: string; updated_at: string; ingested_event: boolean; default_modifiers: { [key: string]: unknown }; person_on_events_querying_enabled: boolean; user_access_level: string | null; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; logs_settings?: unknown; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; cookieless_server_hash_mode?: 0 | 1 | 2 | null; human_friendly_comparison_periods?: boolean | null; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; flags_persistence_default?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; capture_dead_clicks?: boolean | null; default_data_theme?: number | null; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; onboarding_tasks?: unknown; base_currency?: "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"; web_analytics_pre_aggregated_tables_enabled?: boolean | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | unknown; conversations_enabled?: boolean | null; conversations_settings?: unknown; proactive_tasks_enabled?: boolean | null; workflows_config?: { capture_workflows_engagement_events?: boolean }; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; product_intents: ({ [key: string]: unknown })[]; managed_viewsets: { [key: string]: boolean | undefined }; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; event_retention_months: number; events_retention_enforced: boolean }>; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsUpdate() */ environmentsUpdate: () => Promise<{ id: number; uuid: string; name?: string; access_control?: boolean; organization: string; project_id: number; api_token: string; secret_api_token: string | null; secret_api_token_backup: string | null; created_at: string; updated_at: string; ingested_event: boolean; default_modifiers: { [key: string]: unknown }; person_on_events_querying_enabled: boolean; user_access_level: string | null; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; logs_settings?: unknown; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; cookieless_server_hash_mode?: 0 | 1 | 2 | null; human_friendly_comparison_periods?: boolean | null; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; flags_persistence_default?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; capture_dead_clicks?: boolean | null; default_data_theme?: number | null; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; onboarding_tasks?: unknown; base_currency?: "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"; web_analytics_pre_aggregated_tables_enabled?: boolean | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | unknown; conversations_enabled?: boolean | null; conversations_settings?: unknown; proactive_tasks_enabled?: boolean | null; workflows_config?: { capture_workflows_engagement_events?: boolean }; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; product_intents: ({ [key: string]: unknown })[]; managed_viewsets: { [key: string]: boolean | undefined }; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; event_retention_months: number; events_retention_enforced: boolean }>; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsPartialUpdate() */ environmentsPartialUpdate: () => Promise<{ id: number; uuid: string; name?: string; access_control?: boolean; organization: string; project_id: number; api_token: string; secret_api_token: string | null; secret_api_token_backup: string | null; created_at: string; updated_at: string; ingested_event: boolean; default_modifiers: { [key: string]: unknown }; person_on_events_querying_enabled: boolean; user_access_level: string | null; app_urls?: (string | null)[]; anonymize_ips?: boolean; completed_snippet_onboarding?: boolean; test_account_filters?: unknown; test_account_filters_default_checked?: boolean | null; path_cleaning_filters?: unknown; is_demo?: boolean; timezone?: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; data_attributes?: unknown; person_display_name_properties?: unknown[] | null; correlation_config?: unknown; autocapture_opt_out?: boolean | null; autocapture_exceptions_opt_in?: boolean | null; autocapture_web_vitals_opt_in?: boolean | null; autocapture_web_vitals_allowed_metrics?: unknown; autocapture_exceptions_errors_to_ignore?: unknown; capture_console_log_opt_in?: boolean | null; logs_settings?: unknown; capture_performance_opt_in?: boolean | null; session_recording_opt_in?: boolean; session_recording_sample_rate?: string | null; session_recording_minimum_duration_milliseconds?: number | null; session_recording_linked_flag?: unknown; session_recording_network_payload_capture_config?: unknown; session_recording_masking_config?: unknown; session_recording_url_trigger_config?: unknown[] | null; session_recording_url_blocklist_config?: unknown[] | null; session_recording_event_trigger_config?: unknown[] | null; session_recording_trigger_match_type_config?: string | null; session_recording_trigger_groups?: unknown; session_recording_retention_period?: "30d" | "90d" | "1y" | "5y"; session_replay_config?: unknown; survey_config?: unknown; week_start_day?: 0 | 1 | null; primary_dashboard?: number | null; live_events_columns?: unknown[] | null; recording_domains?: unknown[] | null; cookieless_server_hash_mode?: 0 | 1 | 2 | null; human_friendly_comparison_periods?: boolean | null; inject_web_apps?: boolean | null; extra_settings?: unknown; modifiers?: unknown; has_completed_onboarding_for?: unknown; surveys_opt_in?: boolean | null; heatmaps_opt_in?: boolean | null; flags_persistence_default?: boolean | null; feature_flag_confirmation_enabled?: boolean | null; feature_flag_confirmation_message?: string | null; default_evaluation_contexts_enabled?: boolean | null; require_evaluation_contexts?: boolean | null; capture_dead_clicks?: boolean | null; default_data_theme?: number | null; revenue_analytics_config?: { base_currency?: "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"; events?: unknown; goals?: unknown; filter_test_accounts?: boolean }; marketing_analytics_config?: { sources_map?: unknown; conversion_goals?: unknown; attribution_window_days?: number; attribution_mode?: "first_touch" | "last_touch" | "linear" | "time_decay" | "position_based"; campaign_name_mappings?: unknown; custom_source_mappings?: unknown; campaign_field_preferences?: unknown }; customer_analytics_config?: { activity_event?: unknown; signup_pageview_event?: unknown; signup_event?: unknown; subscription_event?: unknown; payment_event?: unknown; account_group_type_index?: number | null }; onboarding_tasks?: unknown; base_currency?: "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"; web_analytics_pre_aggregated_tables_enabled?: boolean | null; receive_org_level_activity_logs?: boolean | null; business_model?: "b2b" | "b2c" | "other" | "" | unknown; conversations_enabled?: boolean | null; conversations_settings?: unknown; proactive_tasks_enabled?: boolean | null; workflows_config?: { capture_workflows_engagement_events?: boolean }; effective_membership_level: 1 | 8 | 15; has_group_types: boolean; group_types: ({ [key: string]: unknown })[]; live_events_token: string | null; product_intents: ({ [key: string]: unknown })[]; managed_viewsets: { [key: string]: boolean | undefined }; available_setup_task_ids: ("ingest_first_event" | "set_up_reverse_proxy" | "create_first_insight" | "create_first_dashboard" | "track_custom_events" | "define_actions" | "set_up_cohorts" | "explore_trends_insight" | "create_funnel" | "explore_retention_insight" | "explore_paths_insight" | "explore_stickiness_insight" | "explore_lifecycle_insight" | "add_authorized_domain" | "set_up_web_vitals" | "review_web_analytics_dashboard" | "filter_web_analytics" | "set_up_web_analytics_conversion_goals" | "visit_web_vitals_dashboard" | "setup_session_recordings" | "watch_session_recording" | "configure_recording_settings" | "create_recording_playlist" | "enable_console_logs" | "create_feature_flag" | "implement_flag_in_code" | "update_feature_flag_release_conditions" | "create_multivariate_flag" | "set_up_flag_payloads" | "set_up_flag_evaluation_runtimes" | "create_experiment" | "implement_experiment_variants" | "launch_experiment" | "review_experiment_results" | "create_survey" | "launch_survey" | "collect_survey_responses" | "connect_source" | "run_first_query" | "join_external_data" | "create_saved_view" | "enable_error_tracking" | "upload_source_maps" | "view_first_error" | "resolve_first_error" | "ingest_first_llm_event" | "view_first_trace" | "track_costs" | "set_up_llm_evaluation" | "run_ai_playground" | "enable_revenue_analytics_viewset" | "connect_revenue_source" | "set_up_revenue_goal" | "enable_log_capture" | "view_first_logs" | "create_first_workflow" | "set_up_first_workflow_channel" | "configure_workflow_trigger" | "add_workflow_action" | "launch_workflow" | "create_first_endpoint" | "configure_endpoint" | "test_endpoint" | "create_early_access_feature" | "update_feature_stage" | "use_posthog_ai" | "use_posthog_code" | "use_posthog_mcp" | "use_posthog_in_slack")[]; event_retention_months: number; events_retention_enforced: boolean }>; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsDestroy() */ environmentsDestroy: () => Promise; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsActivityRetrieve() */ environmentsActivityRetrieve: () => Promise; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsAddProductIntentPartialUpdate() */ environmentsAddProductIntentPartialUpdate: () => Promise; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsCompleteProductOnboardingPartialUpdate() */ environmentsCompleteProductOnboardingPartialUpdate: () => Promise; /** * Manage default evaluation contexts for a team. * Tags: environments * Access as: posthog.environmentsDefaultEvaluationContextsRetrieve() */ environmentsDefaultEvaluationContextsRetrieve: () => Promise; /** * Manage default evaluation contexts for a team. * Tags: environments * Access as: posthog.environmentsDefaultEvaluationContextsCreate() */ environmentsDefaultEvaluationContextsCreate: () => Promise; /** * Manage default evaluation contexts for a team. * Tags: environments * Access as: posthog.environmentsDefaultEvaluationContextsDestroy() */ environmentsDefaultEvaluationContextsDestroy: () => Promise; /** * Manage default release conditions for new feature flags in this team. * Tags: environments * Access as: posthog.environmentsDefaultReleaseConditionsRetrieve() */ environmentsDefaultReleaseConditionsRetrieve: () => Promise; /** * Manage default release conditions for new feature flags in this team. * Tags: environments * Access as: posthog.environmentsDefaultReleaseConditionsUpdate() */ environmentsDefaultReleaseConditionsUpdate: () => Promise; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsDeleteSecretTokenBackupPartialUpdate() */ environmentsDeleteSecretTokenBackupPartialUpdate: () => Promise; /** * Hide an evaluation context name from the flag editor's suggestion list, or restore it. POST hides the name; DELETE restores it. The underlying context row and any flags already using it are never modified — this only controls what gets suggested. * Tags: environments * Access as: posthog.environmentsEvaluationContextSuggestionsCreate() */ environmentsEvaluationContextSuggestionsCreate: () => Promise<{ success: boolean; name: string; hidden_from_suggestions: boolean }>; /** * Hide an evaluation context name from the flag editor's suggestion list, or restore it. POST hides the name; DELETE restores it. The underlying context row and any flags already using it are never modified — this only controls what gets suggested. * Tags: environments * Access as: posthog.environmentsEvaluationContextSuggestionsDestroy() */ environmentsEvaluationContextSuggestionsDestroy: () => Promise<{ success: boolean; name: string; hidden_from_suggestions: boolean }>; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsEventIngestionRestrictionsRetrieve() */ environmentsEventIngestionRestrictionsRetrieve: () => Promise; /** * Manage experiment configuration for this environment. * Tags: environments * Access as: posthog.environmentsExperimentsConfigRetrieve() */ environmentsExperimentsConfigRetrieve: () => Promise; /** * Manage experiment configuration for this environment. * Tags: environments * Access as: posthog.environmentsExperimentsConfigPartialUpdate() */ environmentsExperimentsConfigPartialUpdate: () => Promise; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsGenerateConversationsPublicTokenCreate() */ environmentsGenerateConversationsPublicTokenCreate: () => Promise; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsIsGeneratingDemoDataRetrieve() */ environmentsIsGeneratingDemoDataRetrieve: () => Promise; /** * Manage logs product configuration for this environment. * Tags: environments * Access as: posthog.environmentsLogsConfigRetrieve() */ environmentsLogsConfigRetrieve: () => Promise; /** * Manage logs product configuration for this environment. * Tags: environments * Access as: posthog.environmentsLogsConfigPartialUpdate() */ environmentsLogsConfigPartialUpdate: () => Promise; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsResetTokenPartialUpdate() */ environmentsResetTokenPartialUpdate: () => Promise; /** * Deprecated: use /api/environments/{id}/ instead. * Tags: environments * Access as: posthog.environmentsRotateSecretTokenPartialUpdate() */ environmentsRotateSecretTokenPartialUpdate: () => Promise; /** * Return the team settings as of the provided timestamp. Query params: - at: ISO8601 datetime (required) - scope: optional, one or multiple keys to filter the returned settings * Tags: environments * Access as: posthog.environmentsSettingsAsOfRetrieve() */ environmentsSettingsAsOfRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingAssignmentRulesList() */ errorTrackingAssignmentRulesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingAssignmentRulesCreate() */ errorTrackingAssignmentRulesCreate: () => Promise<{ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingAssignmentRulesRetrieve() */ errorTrackingAssignmentRulesRetrieve: () => Promise<{ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingAssignmentRulesUpdate() */ errorTrackingAssignmentRulesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingAssignmentRulesPartialUpdate() */ errorTrackingAssignmentRulesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingAssignmentRulesDestroy() */ errorTrackingAssignmentRulesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingAssignmentRulesReorderPartialUpdate() */ errorTrackingAssignmentRulesReorderPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingBypassRulesList() */ errorTrackingBypassRulesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; filters: unknown; order_key: number; disabled_data: unknown; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingBypassRulesCreate() */ errorTrackingBypassRulesCreate: () => Promise<{ id: string; filters: unknown; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingBypassRulesRetrieve() */ errorTrackingBypassRulesRetrieve: () => Promise<{ id: string; filters: unknown; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingBypassRulesUpdate() */ errorTrackingBypassRulesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingBypassRulesPartialUpdate() */ errorTrackingBypassRulesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingBypassRulesDestroy() */ errorTrackingBypassRulesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingBypassRulesReorderPartialUpdate() */ errorTrackingBypassRulesReorderPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingExternalReferencesList() */ errorTrackingExternalReferencesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingExternalReferencesCreate() */ errorTrackingExternalReferencesCreate: () => Promise<{ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingExternalReferencesRetrieve() */ errorTrackingExternalReferencesRetrieve: () => Promise<{ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: error_tracking * Access as: posthog.errorTrackingExternalReferencesDestroy() */ errorTrackingExternalReferencesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingFingerprintsList() */ errorTrackingFingerprintsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; fingerprint: string; issue_id: string; created_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingFingerprintsRetrieve() */ errorTrackingFingerprintsRetrieve: () => Promise<{ id: string; fingerprint: string; issue_id: string; created_at: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: error_tracking * Access as: posthog.errorTrackingFingerprintsDestroy() */ errorTrackingFingerprintsDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGitProviderFileLinksResolveGithubRetrieve() */ errorTrackingGitProviderFileLinksResolveGithubRetrieve: () => Promise<{ found: boolean; url?: string; error?: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGitProviderFileLinksResolveGitlabRetrieve() */ errorTrackingGitProviderFileLinksResolveGitlabRetrieve: () => Promise<{ found: boolean; url?: string; error?: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGroupingRulesList() */ errorTrackingGroupingRulesList: () => Promise<{ results: ({ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; description: string | null; issue: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGroupingRulesCreate() */ errorTrackingGroupingRulesCreate: () => Promise<{ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; description: string | null; issue: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGroupingRulesRetrieve() */ errorTrackingGroupingRulesRetrieve: () => Promise<{ id: string; filters: unknown; assignee: { [key: string]: unknown } | null; description: string | null; issue: { [key: string]: unknown } | null; order_key: number; disabled_data: unknown; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGroupingRulesUpdate() */ errorTrackingGroupingRulesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGroupingRulesPartialUpdate() */ errorTrackingGroupingRulesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGroupingRulesDestroy() */ errorTrackingGroupingRulesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingGroupingRulesReorderPartialUpdate() */ errorTrackingGroupingRulesReorderPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesList() */ errorTrackingIssuesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: string; name: string | null; description: string | null; first_seen: string | null; assignee: { id: number | string | null; type: string } | null; external_issues: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[]; cohort: { id: number; name: string } | null })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesRetrieve() */ errorTrackingIssuesRetrieve: () => Promise<{ id: string; status: string; name: string | null; description: string | null; first_seen: string | null; assignee: { id: number | string | null; type: string } | null; external_issues: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[]; cohort: { id: number; name: string } | null }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesUpdate() */ errorTrackingIssuesUpdate: () => Promise<{ id: string; status: string; name: string | null; description: string | null; first_seen: string | null; assignee: { id: number | string | null; type: string } | null; external_issues: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[]; cohort: { id: number; name: string } | null }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesPartialUpdate() */ errorTrackingIssuesPartialUpdate: () => Promise<{ id: string; status: string; name: string | null; description: string | null; first_seen: string | null; assignee: { id: number | string | null; type: string } | null; external_issues: ({ id: string; integration: { id: number; kind: string; display_name: string }; integration_id: number; config: { [key: string]: string | undefined }; issue: string; external_url: string })[]; cohort: { id: number; name: string } | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: error_tracking * Access as: posthog.errorTrackingIssuesDestroy() */ errorTrackingIssuesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesActivityRetrieve() */ errorTrackingIssuesActivityRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesAssignPartialUpdate() */ errorTrackingIssuesAssignPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesCohortUpdate() */ errorTrackingIssuesCohortUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesMergeCreate() */ errorTrackingIssuesMergeCreate: () => Promise<{ success: boolean }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesSplitCreate() */ errorTrackingIssuesSplitCreate: () => Promise<{ success: boolean; new_issue_ids: (string)[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesAllActivityRetrieve() */ errorTrackingIssuesAllActivityRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesBulkCreate() */ errorTrackingIssuesBulkCreate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesExistsRetrieve() */ errorTrackingIssuesExistsRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingIssuesValuesRetrieve() */ errorTrackingIssuesValuesRetrieve: () => Promise; /** * Get compact error tracking issue details * Tags: error_tracking * Access as: posthog.errorTrackingQueryIssueCreate() */ errorTrackingQueryIssueCreate: () => Promise<{ id: string; name?: string | null; description?: string | null; status?: string; first_seen?: string | null; last_seen?: string | null; library?: string | null; source?: string | null; assignee?: { id?: string | number | null; type?: string | null } | null; aggregations?: { occurrences?: number; users?: number; sessions?: number; volumeRange?: (number)[]; volume_buckets?: ({ label: string; value?: number | null })[] } | null; function?: string | null; top_in_app_frame?: { function?: string; source?: string; line?: number; column?: number; in_app?: boolean }; latest_release?: { version?: string; project?: string; timestamp?: string; commit_id?: string; branch?: string; repo_name?: string }; impact?: { occurrences?: number; users?: number; sessions?: number }; sparkline?: (number)[] }>; /** * List sampled exception events for an error tracking issue * Tags: error_tracking * Access as: posthog.errorTrackingQueryIssueEventsCreate() */ errorTrackingQueryIssueEventsCreate: () => Promise<{ results: ({ uuid?: string; distinct_id?: string; timestamp?: string; properties?: { [key: string]: unknown } })[]; hasMore: boolean; limit: number; offset: number; nextOffset?: number }>; /** * List compact error tracking issues * Tags: error_tracking * Access as: posthog.errorTrackingQueryIssuesListCreate() */ errorTrackingQueryIssuesListCreate: () => Promise<{ results: ({ id: string; name?: string | null; description?: string | null; status?: string; first_seen?: string | null; last_seen?: string | null; library?: string | null; source?: string | null; assignee?: { id?: string | number | null; type?: string | null } | null; aggregations?: { occurrences?: number; users?: number; sessions?: number; volumeRange?: (number)[]; volume_buckets?: ({ label: string; value?: number | null })[] } | null })[]; hasMore: boolean; limit: number; offset: number; nextOffset?: number }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingRecommendationsList() */ errorTrackingRecommendationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; type: string; meta: unknown; completed: boolean; status: string; computed_at: string | null; dismissed_at: string | null; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingRecommendationsDismissCreate() */ errorTrackingRecommendationsDismissCreate: () => Promise<{ id: string; type: string; meta: unknown; completed: boolean; status: string; computed_at: string | null; dismissed_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingRecommendationsRefreshCreate() */ errorTrackingRecommendationsRefreshCreate: () => Promise<{ id: string; type: string; meta: unknown; completed: boolean; status: string; computed_at: string | null; dismissed_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingRecommendationsRestoreCreate() */ errorTrackingRecommendationsRestoreCreate: () => Promise<{ id: string; type: string; meta: unknown; completed: boolean; status: string; computed_at: string | null; dismissed_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingReleasesList() */ errorTrackingReleasesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingReleasesCreate() */ errorTrackingReleasesCreate: () => Promise<{ id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingReleasesRetrieve() */ errorTrackingReleasesRetrieve: () => Promise<{ id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingReleasesUpdate() */ errorTrackingReleasesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingReleasesPartialUpdate() */ errorTrackingReleasesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingReleasesDestroy() */ errorTrackingReleasesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingReleasesHashRetrieve() */ errorTrackingReleasesHashRetrieve: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSettingsRetrieveSettingsRetrieve() */ errorTrackingSettingsRetrieveSettingsRetrieve: () => Promise<{ project_rate_limit_value?: number | null; project_rate_limit_bucket_size_minutes?: number | null; per_issue_rate_limit_value?: number | null; per_issue_rate_limit_bucket_size_minutes?: number | null }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSettingsUpdateSettingsPartialUpdate() */ errorTrackingSettingsUpdateSettingsPartialUpdate: () => Promise<{ project_rate_limit_value?: number | null; project_rate_limit_bucket_size_minutes?: number | null; per_issue_rate_limit_value?: number | null; per_issue_rate_limit_bucket_size_minutes?: number | null }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSpikeDetectionConfigList() */ errorTrackingSpikeDetectionConfigList: () => Promise<({ snooze_duration_minutes: number; multiplier: number; threshold: number })[]>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSpikeDetectionConfigUpdateConfigPartialUpdate() */ errorTrackingSpikeDetectionConfigUpdateConfigPartialUpdate: () => Promise<{ snooze_duration_minutes: number; multiplier: number; threshold: number }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSpikeEventsList() */ errorTrackingSpikeEventsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; issue: { id: string; name: string | null; description: string | null }; detected_at: string; computed_baseline: number; current_bucket_value: number })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingStackFramesList() */ errorTrackingStackFramesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; raw_id: string; created_at: string; contents: { [key: string]: unknown }; resolved: boolean; context: { [key: string]: unknown } | null; symbol_set_ref: string | null; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingStackFramesRetrieve() */ errorTrackingStackFramesRetrieve: () => Promise<{ id: string; raw_id: string; created_at: string; contents: { [key: string]: unknown }; resolved: boolean; context: { [key: string]: unknown } | null; symbol_set_ref: string | null; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: error_tracking * Access as: posthog.errorTrackingStackFramesDestroy() */ errorTrackingStackFramesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingStackFramesBatchGetCreate() */ errorTrackingStackFramesBatchGetCreate: () => Promise<{ results: ({ id: string; raw_id: string; created_at: string; contents: { [key: string]: unknown }; resolved: boolean; context: { [key: string]: unknown } | null; symbol_set_ref: string | null; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSuppressionRulesList() */ errorTrackingSuppressionRulesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; filters: unknown; order_key: number; disabled_data: unknown; sampling_rate: number; created_at: string; updated_at: string })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSuppressionRulesCreate() */ errorTrackingSuppressionRulesCreate: () => Promise<{ id: string; filters: unknown; order_key: number; disabled_data: unknown; sampling_rate: number; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSuppressionRulesRetrieve() */ errorTrackingSuppressionRulesRetrieve: () => Promise<{ id: string; filters: unknown; order_key: number; disabled_data: unknown; sampling_rate: number; created_at: string; updated_at: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSuppressionRulesUpdate() */ errorTrackingSuppressionRulesUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSuppressionRulesPartialUpdate() */ errorTrackingSuppressionRulesPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSuppressionRulesDestroy() */ errorTrackingSuppressionRulesDestroy: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSuppressionRulesReorderPartialUpdate() */ errorTrackingSuppressionRulesReorderPartialUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSymbolSetsList() */ errorTrackingSymbolSetsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; ref: string; team_id: number; created_at: string; last_used: string | null; failure_reason: string | null; has_uploaded_file: boolean; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null })[] }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSymbolSetsRetrieve() */ errorTrackingSymbolSetsRetrieve: () => Promise<{ id: string; ref: string; team_id: number; created_at: string; last_used: string | null; failure_reason: string | null; has_uploaded_file: boolean; release: { id: string; hash_id: string; team_id: number; created_at: string; metadata: { [key: string]: unknown } | null; version: string; project: string } | null }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSymbolSetsDestroy() */ errorTrackingSymbolSetsDestroy: () => Promise; /** * Return a presigned URL for downloading the symbol set's source map. * Tags: error_tracking * Access as: posthog.errorTrackingSymbolSetsDownloadRetrieve() */ errorTrackingSymbolSetsDownloadRetrieve: () => Promise<{ url: string }>; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSymbolSetsFinishUploadUpdate() */ errorTrackingSymbolSetsFinishUploadUpdate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSymbolSetsBulkDeleteCreate() */ errorTrackingSymbolSetsBulkDeleteCreate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSymbolSetsBulkFinishUploadCreate() */ errorTrackingSymbolSetsBulkFinishUploadCreate: () => Promise; /** * * Tags: error_tracking * Access as: posthog.errorTrackingSymbolSetsBulkStartUploadCreate() */ errorTrackingSymbolSetsBulkStartUploadCreate: () => Promise; /** * Create a new evaluation run. This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation. * Tags: evaluation_runs * Access as: posthog.evaluationRunsCreate() */ evaluationRunsCreate: () => Promise<{ [key: string]: unknown }>; /** * * Tags: evaluations * Access as: posthog.evaluationsList() */ evaluationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean })[] }>; /** * * Tags: evaluations * Access as: posthog.evaluationsCreate() */ evaluationsCreate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: evaluations * Access as: posthog.evaluationsRetrieve() */ evaluationsRetrieve: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: evaluations * Access as: posthog.evaluationsUpdate() */ evaluationsUpdate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: evaluations * Access as: posthog.evaluationsPartialUpdate() */ evaluationsPartialUpdate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; status: "active" | "paused" | "error"; status_reason: "provider_key_required" | "trial_limit_reached" | "model_not_allowed" | "provider_key_deleted" | "no_default_model" | "provider_key_invalid" | "provider_key_permission_denied" | "provider_key_quota_exceeded" | "provider_key_rate_limited" | "model_not_found" | "hog_error" | null; status_reason_detail: string | null; evaluation_type: "llm_judge" | "hog" | "sentiment"; evaluation_config?: { prompt: string } | { source: string } | { source?: "user_messages" }; output_type: "boolean" | "sentiment"; output_config?: { allows_na?: boolean }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; target?: "generation" | "trace"; target_config?: { window_seconds?: number }; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: evaluations * Access as: posthog.evaluationsDestroy() */ evaluationsDestroy: () => Promise; /** * Test Hog evaluation code against sample events without saving. * Tags: evaluations * Access as: posthog.evaluationsTestHogCreate() */ evaluationsTestHogCreate: () => Promise<{ results: ({ event_uuid: string; trace_id?: string | null; input_preview: string; output_preview: string; result: boolean | null; reasoning: string | null; error: string | null })[]; message?: string }>; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsList() */ eventDefinitionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; owner?: number | null; description?: string | null; tags?: (unknown)[]; created_at: string | null; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_seen_at: string | null; last_updated_at: string; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; hidden?: boolean | null; enforcement_mode?: "allow" | "reject"; primary_property?: string | null; is_action: boolean; action_id: number; is_calculating: boolean; last_calculated_at: string; created_by: unknown; post_to_slack?: boolean; default_columns?: (string)[]; media_preview_urls: (string)[] })[] }>; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsCreate() */ eventDefinitionsCreate: () => Promise<{ id: string; name: string; owner?: number | null; description?: string | null; tags?: (unknown)[]; created_at: string | null; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_seen_at: string | null; last_updated_at: string; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; hidden?: boolean | null; enforcement_mode?: "allow" | "reject"; primary_property?: string | null; is_action: boolean; action_id: number; is_calculating: boolean; last_calculated_at: string; created_by: unknown; post_to_slack?: boolean; default_columns?: (string)[]; media_preview_urls: (string)[] }>; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsRetrieve() */ eventDefinitionsRetrieve: () => Promise<{ id: string; name: string; owner?: number | null; description?: string | null; tags?: (unknown)[]; created_at: string | null; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_seen_at: string | null; last_updated_at: string; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; hidden?: boolean | null; enforcement_mode?: "allow" | "reject"; primary_property?: string | null; is_action: boolean; action_id: number; is_calculating: boolean; last_calculated_at: string; created_by: unknown; post_to_slack?: boolean; default_columns?: (string)[]; media_preview_urls: (string)[] }>; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsUpdate() */ eventDefinitionsUpdate: () => Promise<{ id: string; name: string; owner?: number | null; description?: string | null; tags?: (unknown)[]; created_at: string | null; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_seen_at: string | null; last_updated_at: string; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; hidden?: boolean | null; enforcement_mode?: "allow" | "reject"; primary_property?: string | null; is_action: boolean; action_id: number; is_calculating: boolean; last_calculated_at: string; created_by: unknown; post_to_slack?: boolean; default_columns?: (string)[]; media_preview_urls: (string)[] }>; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsPartialUpdate() */ eventDefinitionsPartialUpdate: () => Promise<{ id: string; name: string; owner?: number | null; description?: string | null; tags?: (unknown)[]; created_at: string | null; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_seen_at: string | null; last_updated_at: string; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; hidden?: boolean | null; enforcement_mode?: "allow" | "reject"; primary_property?: string | null; is_action: boolean; action_id: number; is_calculating: boolean; last_calculated_at: string; created_by: unknown; post_to_slack?: boolean; default_columns?: (string)[]; media_preview_urls: (string)[] }>; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsDestroy() */ eventDefinitionsDestroy: () => Promise; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsMetricsRetrieve() */ eventDefinitionsMetricsRetrieve: () => Promise; /** * Add, remove, or replace tags across multiple event definitions in one request. Overrides ``TaggedItemViewSetMixin.bulk_update_tags``, which assumes integer PKs and runs object-level access-control filtering. Event definitions use UUID PKs and are not an object-level access-controlled resource — project membership (enforced by the viewset) is the only boundary, matching the single-object update path — so this scopes by project and skips the per-object editor check. Tags live on the base ``EventDefinition`` row, so it operates there regardless of the enterprise extension. * Tags: event_definitions * Access as: posthog.eventDefinitionsBulkUpdateTagsCreate() */ eventDefinitionsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: string; tags: (string)[] })[]; skipped: ({ id: string; reason: string })[] }>; /** * Get event definition by exact name * Tags: event_definitions * Access as: posthog.eventDefinitionsByNameRetrieve() */ eventDefinitionsByNameRetrieve: () => Promise<{ id: string; name: string; created_at?: string | null; last_seen_at?: string | null; last_updated_at: string; tags?: (unknown)[]; enforcement_mode?: "allow" | "reject"; primary_property?: string | null; is_action: boolean; action_id: number; is_calculating: boolean; last_calculated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; post_to_slack?: boolean }>; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsGolangRetrieve() */ eventDefinitionsGolangRetrieve: () => Promise; /** * Resolve team-configured primary properties for event definitions. The response only contains entries where a non-null primary_property is set on the EventDefinition. Callers should fall back to the core taxonomy defaults client-side for names not present in the response. * Tags: event_definitions * Access as: posthog.eventDefinitionsPrimaryPropertiesRetrieve() */ eventDefinitionsPrimaryPropertiesRetrieve: () => Promise<{ primary_properties: { [key: string]: string | undefined } }>; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsPythonRetrieve() */ eventDefinitionsPythonRetrieve: () => Promise; /** * * Tags: event_definitions * Access as: posthog.eventDefinitionsTypescriptRetrieve() */ eventDefinitionsTypescriptRetrieve: () => Promise; /** * Returns the event filter config for the team, or null if not yet created. * Tags: event_filter * Access as: posthog.eventFilterRetrieve() */ eventFilterRetrieve: () => Promise<{ id: string; mode?: "disabled" | "dry_run" | "live"; filter_tree?: unknown; test_cases?: unknown; created_at: string; updated_at: string }>; /** * Create or update the event filter config. * Tags: event_filter * Access as: posthog.eventFilterCreate() */ eventFilterCreate: () => Promise<{ id: string; mode?: "disabled" | "dry_run" | "live"; filter_tree?: unknown; test_cases?: unknown; created_at: string; updated_at: string }>; /** * Single event filter per team. GET /event_filter/ — returns the config (or null if not yet created) POST /event_filter/ — creates or updates the config (upsert) GET /event_filter/metrics/ — time-series metrics GET /event_filter/metrics/totals/ — aggregate totals * Tags: event_filter * Access as: posthog.eventFilterMetricsRetrieve() */ eventFilterMetricsRetrieve: () => Promise<{ labels: (string)[]; series: ({ name: string; values: (number)[] })[] }>; /** * Single event filter per team. GET /event_filter/ — returns the config (or null if not yet created) POST /event_filter/ — creates or updates the config (upsert) GET /event_filter/metrics/ — time-series metrics GET /event_filter/metrics/totals/ — aggregate totals * Tags: event_filter * Access as: posthog.eventFilterMetricsTotalsRetrieve() */ eventFilterMetricsTotalsRetrieve: () => Promise<{ totals: { [key: string]: number | undefined } }>; /** * * Tags: event_schemas * Access as: posthog.eventSchemasList() */ eventSchemasList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; event_definition: string; property_group: { id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }; property_group_id: string; created_at: string; updated_at: string })[] }>; /** * * Tags: event_schemas * Access as: posthog.eventSchemasCreate() */ eventSchemasCreate: () => Promise<{ id: string; event_definition: string; property_group: { id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }; property_group_id: string; created_at: string; updated_at: string }>; /** * * Tags: event_schemas * Access as: posthog.eventSchemasUpdate() */ eventSchemasUpdate: () => Promise<{ id: string; event_definition: string; property_group: { id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }; property_group_id: string; created_at: string; updated_at: string }>; /** * * Tags: event_schemas * Access as: posthog.eventSchemasPartialUpdate() */ eventSchemasPartialUpdate: () => Promise<{ id: string; event_definition: string; property_group: { id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }; property_group_id: string; created_at: string; updated_at: string }>; /** * * Tags: event_schemas * Access as: posthog.eventSchemasDestroy() */ eventSchemasDestroy: () => Promise; /** * This endpoint allows you to list and filter events. It is effectively deprecated and is kept only for backwards compatibility. If you ever ask about it you will be advised to not use it... If you want to ad-hoc list or aggregate events, use the Query endpoint instead. If you want to export all events or many pages of events you should use our CDP/Batch Exports products instead. * Tags: events * Access as: posthog.eventsList() */ eventsList: () => Promise<{ next?: string | null; results?: ({ id: string; distinct_id: string; properties: { [key: string]: unknown }; event: string; timestamp: string; person: { [key: string]: unknown } | null; elements: ({ event: string; text?: string | null; tag_name?: string | null; attr_class?: unknown[] | null; href?: string | null; attr_id?: string | null; nth_child?: number | null; nth_of_type?: number | null; attributes?: unknown; order?: number | null })[]; elements_chain: string })[] }>; /** * * Tags: events * Access as: posthog.eventsRetrieve() */ eventsRetrieve: () => Promise<{ [key: string]: unknown }>; /** * * Tags: events * Access as: posthog.eventsValuesRetrieve() */ eventsValuesRetrieve: () => Promise; /** * * Tags: experiment_holdouts * Access as: posthog.experimentHoldoutsList() */ experimentHoldoutsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; user_access_level: string | null })[] }>; /** * * Tags: experiment_holdouts * Access as: posthog.experimentHoldoutsCreate() */ experimentHoldoutsCreate: () => Promise<{ id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; user_access_level: string | null }>; /** * * Tags: experiment_holdouts * Access as: posthog.experimentHoldoutsRetrieve() */ experimentHoldoutsRetrieve: () => Promise<{ id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; user_access_level: string | null }>; /** * * Tags: experiment_holdouts * Access as: posthog.experimentHoldoutsUpdate() */ experimentHoldoutsUpdate: () => Promise<{ id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; user_access_level: string | null }>; /** * * Tags: experiment_holdouts * Access as: posthog.experimentHoldoutsPartialUpdate() */ experimentHoldoutsPartialUpdate: () => Promise<{ id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; user_access_level: string | null }>; /** * * Tags: experiment_holdouts * Access as: posthog.experimentHoldoutsDestroy() */ experimentHoldoutsDestroy: () => Promise; /** * * Tags: experiment_saved_metrics * Access as: posthog.experimentSavedMetricsList() */ experimentSavedMetricsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name: string; description?: string | null; query: unknown; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; tags?: (unknown)[]; user_access_level: string | null })[] }>; /** * * Tags: experiment_saved_metrics * Access as: posthog.experimentSavedMetricsCreate() */ experimentSavedMetricsCreate: () => Promise<{ id: number; name: string; description?: string | null; query: unknown; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; tags?: (unknown)[]; user_access_level: string | null }>; /** * * Tags: experiment_saved_metrics * Access as: posthog.experimentSavedMetricsRetrieve() */ experimentSavedMetricsRetrieve: () => Promise<{ id: number; name: string; description?: string | null; query: unknown; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; tags?: (unknown)[]; user_access_level: string | null }>; /** * * Tags: experiment_saved_metrics * Access as: posthog.experimentSavedMetricsUpdate() */ experimentSavedMetricsUpdate: () => Promise<{ id: number; name: string; description?: string | null; query: unknown; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; tags?: (unknown)[]; user_access_level: string | null }>; /** * * Tags: experiment_saved_metrics * Access as: posthog.experimentSavedMetricsPartialUpdate() */ experimentSavedMetricsPartialUpdate: () => Promise<{ id: number; name: string; description?: string | null; query: unknown; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; tags?: (unknown)[]; user_access_level: string | null }>; /** * * Tags: experiment_saved_metrics * Access as: posthog.experimentSavedMetricsDestroy() */ experimentSavedMetricsDestroy: () => Promise; /** * List experiments for the current project. Supports filtering by status and archival state. * Tags: experiments * Access as: posthog.experimentsList() */ experimentsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null })[] }>; /** * Create a new experiment in draft status with optional metrics. * Tags: experiments * Access as: posthog.experimentsCreate() */ experimentsCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Retrieve a single experiment by ID, including its current status, metrics, feature flag, and results metadata. * Tags: experiments * Access as: posthog.experimentsRetrieve() */ experimentsRetrieve: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers. Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate decorator on serializer methods and converts them into the same responses the viewset path produces (see decorators._result_to_response), so both paths share one contract. * Tags: experiments * Access as: posthog.experimentsUpdate() */ experimentsUpdate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Update an experiment. Use this to modify experiment properties such as name, description, metrics, variants, and configuration. Metrics can be added, changed and removed at any time. Feature-flag config (variants, rollout, payloads) is sent via the feature_flag object. * Tags: experiments * Access as: posthog.experimentsPartialUpdate() */ experimentsPartialUpdate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: experiments * Access as: posthog.experimentsDestroy() */ experimentsDestroy: () => Promise; /** * Archive an ended experiment. Hides the experiment from the default list view. The experiment can be restored at any time by updating archived=false. When the linked feature flag is still enabled, pass disable_feature_flag=true to also disable and archive it. Returns 400 if the experiment is already archived or has not ended yet. * Tags: experiments * Access as: posthog.experimentsArchiveCreate() */ experimentsArchiveCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Copy an experiment into another project in the same organization as a new draft. * Tags: experiments * Access as: posthog.experimentsCopyToProjectCreate() */ experimentsCopyToProjectCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers. Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate decorator on serializer methods and converts them into the same responses the viewset path produces (see decorators._result_to_response), so both paths share one contract. * Tags: experiments * Access as: posthog.experimentsCreateExposureCohortForExperimentCreate() */ experimentsCreateExposureCohortForExperimentCreate: () => Promise; /** * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers. Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate decorator on serializer methods and converts them into the same responses the viewset path produces (see decorators._result_to_response), so both paths share one contract. * Tags: experiments * Access as: posthog.experimentsDuplicateCreate() */ experimentsDuplicateCreate: () => Promise; /** * End a running experiment without shipping a variant. Sets end_date to now and marks the experiment as stopped. The feature flag is NOT modified — users continue to see their assigned variants and exposure events ($feature_flag_called) continue to be recorded. However, only data up to end_date is included in experiment results. Use this when: - You want to freeze the results window without changing which variant users see. - A variant was already shipped manually via the feature flag UI and the experiment just needs to be marked complete. The end_date can be adjusted after ending via PATCH if it needs to be backdated (e.g. to match when the flag was actually paused). Other options: - Use ship_variant to end the experiment AND roll out a single variant to 100%% of users. - Use pause to deactivate the flag without ending the experiment (stops variant assignment but does not freeze results). Returns 400 if the experiment is not running. * Tags: experiments * Access as: posthog.experimentsEndCreate() */ experimentsEndCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Freeze exposure on a running experiment while metrics keep flowing. Snapshots the already-exposed users into a static cohort and narrows the linked feature flag so only those users keep matching — new users can no longer enter the experiment. ``end_date`` is left null so long-term metrics (revenue/LTV/renewals/retention) keep accumulating. Enrolled users keep their assigned variant. The serialized status becomes 'exposure_frozen'. Returns 400 if the experiment is not running, exposure is already frozen, the experiment is group-aggregated (group flags cannot be frozen with a person cohort), or the exposed set is too large to snapshot synchronously. * Tags: experiments * Access as: posthog.experimentsFreezeExposureCreate() */ experimentsFreezeExposureCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Launch a draft experiment. Validates the experiment is in draft state, activates its linked feature flag, sets start_date to the current server time, and transitions the experiment to running. Returns 400 if the experiment has already been launched or if the feature flag configuration is invalid (e.g. missing "control" variant or fewer than 2 variants). * Tags: experiments * Access as: posthog.experimentsLaunchCreate() */ experimentsLaunchCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Trigger a batch recalculation of all metrics for this experiment. Returns 201 with the new pending recalculation, or 200 with the active one if a recalculation is already pending or in progress for this experiment. The response payload intentionally does not include the `results` array — at POST time the workflow has just been queued and no per-metric results exist yet. Clients should poll `GET metrics_recalculation/{id}/` for results as the workflow progresses. * Tags: experiments * Access as: posthog.experimentsMetricsRecalculationCreate() */ experimentsMetricsRecalculationCreate: () => Promise<{ id: string; experiment_id: number; status: "pending" | "in_progress" | "completed" | "failed"; total_metrics: number; completed_metrics: number; failed_metrics: number; metric_errors: unknown; trigger: "manual" | "cold_run" | "stale_refresh" | "auto_refresh" | "config_change" | "experiment_launch" | "experiment_stop" | "experiment_update"; created_at: string; started_at: string | null; completed_at: string | null; query_to: string | null; is_existing: boolean; result_source: "recalculation" | "timeseries_fallback"; results: ({ metric_uuid: string; status: "pending" | "completed" | "failed"; result: unknown; error_message: string | null })[]; rows_read?: number | null; estimated_rows_total?: number | null }>; /** * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers. Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate decorator on serializer methods and converts them into the same responses the viewset path produces (see decorators._result_to_response), so both paths share one contract. * Tags: experiments * Access as: posthog.experimentsMetricsRecalculationRetrieve() */ experimentsMetricsRecalculationRetrieve: () => Promise<{ id: string; experiment_id: number; status: "pending" | "in_progress" | "completed" | "failed"; total_metrics: number; completed_metrics: number; failed_metrics: number; metric_errors: unknown; trigger: "manual" | "cold_run" | "stale_refresh" | "auto_refresh" | "config_change" | "experiment_launch" | "experiment_stop" | "experiment_update"; created_at: string; started_at: string | null; completed_at: string | null; query_to: string | null; is_existing: boolean; result_source: "recalculation" | "timeseries_fallback"; results: ({ metric_uuid: string; status: "pending" | "completed" | "failed"; result: unknown; error_message: string | null })[]; rows_read?: number | null; estimated_rows_total?: number | null }>; /** * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers. Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate decorator on serializer methods and converts them into the same responses the viewset path produces (see decorators._result_to_response), so both paths share one contract. * Tags: experiments * Access as: posthog.experimentsMetricsRecalculationLatestRetrieve() */ experimentsMetricsRecalculationLatestRetrieve: () => Promise<{ id: string; experiment_id: number; status: "pending" | "in_progress" | "completed" | "failed"; total_metrics: number; completed_metrics: number; failed_metrics: number; metric_errors: unknown; trigger: "manual" | "cold_run" | "stale_refresh" | "auto_refresh" | "config_change" | "experiment_launch" | "experiment_stop" | "experiment_update"; created_at: string; started_at: string | null; completed_at: string | null; query_to: string | null; is_existing: boolean; result_source: "recalculation" | "timeseries_fallback"; results: ({ metric_uuid: string; status: "pending" | "completed" | "failed"; result: unknown; error_message: string | null })[]; rows_read?: number | null; estimated_rows_total?: number | null }>; /** * Pause a running experiment. Deactivates the linked feature flag so it is no longer returned by the /decide endpoint. Users fall back to the application default (typically the control experience), and no new exposure events are recorded (i.e. $feature_flag_called is not fired). Returns 400 if the experiment is not running or is already paused. * Tags: experiments * Access as: posthog.experimentsPauseCreate() */ experimentsPauseCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers. Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate decorator on serializer methods and converts them into the same responses the viewset path produces (see decorators._result_to_response), so both paths share one contract. * Tags: experiments * Access as: posthog.experimentsRecalculateTimeseriesCreate() */ experimentsRecalculateTimeseriesCreate: () => Promise; /** * Reset an experiment back to draft state. Clears start/end dates, conclusion, and archived flag. The feature flag is left unchanged — users continue to see their assigned variants. Previously collected events still exist but won't be included in results unless the start date is manually adjusted after re-launch. Returns 400 if the experiment is already in draft state. * Tags: experiments * Access as: posthog.experimentsResetCreate() */ experimentsResetCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Resume a paused experiment. Reactivates the linked feature flag so it is returned by /decide again. Users are re-bucketed deterministically into the same variants they had before the pause, and exposure tracking resumes. Returns 400 if the experiment is not running or is not paused. * Tags: experiments * Access as: posthog.experimentsResumeCreate() */ experimentsResumeCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Ship a variant and (optionally) end the experiment. Updates the feature flag so the selected variant gets 100% of the variant distribution. By default, existing release conditions on the flag are preserved untouched — the variant is served only to users who already match them. Pass ``release_to_everyone: true`` to also prepend a catch-all release condition that rolls the variant out to 100% of users (overrides any existing release conditions on the flag). Can be called on both running and stopped experiments. If the experiment is still running, it will also be ended (end_date set and status marked as stopped). If the experiment has already ended, only the flag is rewritten - this supports the "end first, ship later" workflow. If an approval policy requires review before changes on the flag take effect, the API returns 409 with a change_request_id. The experiment is NOT ended until the change request is approved and the user retries. Returns 400 if the experiment is in draft state, the variant_key is not found on the flag, or the experiment has no linked feature flag. * Tags: experiments * Access as: posthog.experimentsShipVariantCreate() */ experimentsShipVariantCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers. Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate decorator on serializer methods and converts them into the same responses the viewset path produces (see decorators._result_to_response), so both paths share one contract. * Tags: experiments * Access as: posthog.experimentsTimeseriesResultsRetrieve() */ experimentsTimeseriesResultsRetrieve: () => Promise; /** * Unarchive an archived experiment. Restores the experiment to the default list view. Returns 400 if the experiment is not currently archived. * Tags: experiments * Access as: posthog.experimentsUnarchiveCreate() */ experimentsUnarchiveCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Reopen enrollment on an exposure-frozen experiment. Removes the snapshot-cohort condition and freeze markers from every release group, restoring the flag's original targeting: new users can enroll again and already-enrolled users keep their assigned variant. The snapshot cohort is soft-deleted. The serialized status returns to 'running'. Returns 400 if the experiment is not running or its exposure is not frozen. * Tags: experiments * Access as: posthog.experimentsUnfreezeExposureCreate() */ experimentsUnfreezeExposureCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Estimate the recommended sample size and running time for an experiment. Pure statistical calculation — does not read or write any experiment. Pass the metric type, a minimum detectable effect, and either a baseline value or raw baseline statistics. When `exposure_rate_per_day` is provided, the response also includes the estimated running time in days. * Tags: experiments * Access as: posthog.experimentsCalculateRunningTimeCreate() */ experimentsCalculateRunningTimeCreate: () => Promise<{ baseline_value: number | null; variance: number | null; recommended_sample_size: number | null; recommended_running_time_days: number | null }>; /** * Create an experiment that compares N versions of an LLM prompt using a metric template. The user picks 2+ versions of an existing LLMPrompt and 1+ metric templates (cost / latency / eval_pass_rate). The endpoint builds the matching variants (control + test-N, each named after its prompt version) and attaches one metric per selected template, each scoped to the prompt's $ai_prompt_name. Resulting experiment is in draft state. * Tags: experiments * Access as: posthog.experimentsCreateFromPromptCreate() */ experimentsCreateFromPromptCreate: () => Promise<{ id: number; name: string; description?: string | null; start_date?: string | null; end_date?: string | null; feature_flag_key: string; feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; holdout: { id: number; name: string; description?: string | null; filters?: ({ properties?: ({ key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; value: unknown; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" } | { key: string; type?: "cohort" | "person" | "group"; cohort_name?: string | null; group_type_index?: number | null; operator: "is_set" | "is_not_set"; value?: unknown } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "is_date_exact" | "is_date_before" | "is_date_after"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_eq" | "semver_neq" | "semver_tilde" | "semver_caret" | "semver_wildcard"; value: string } | { key: string; type?: unknown; cohort_name?: string | null; group_type_index?: number | null; operator: "icontains_multi" | "not_icontains_multi"; value: (string)[] } | { key: string; type: "cohort"; cohort_name?: string | null; group_type_index?: number | null; operator: "in" | "not_in"; value: unknown } | { key: string; type: "flag"; cohort_name?: string | null; group_type_index?: number | null; operator: "flag_evaluates_to"; value: unknown })[]; rollout_percentage?: number; variant?: string | null; aggregation_group_type_index?: number | null })[]; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; user_access_level: string | null }; holdout_id?: number | null; exposure_cohort: number | null; parameters?: { minimum_detectable_effect?: number | null; variant_notes?: { [key: string]: string | undefined } | null } | null; running_time_calculation?: { exposure_estimate_config?: { conversionRateInputType: "manual" | "automatic"; manualBaselineValue?: number | null; manualExposureRate?: number | null; manualMetricType?: "funnel" | "mean_count" | "mean_sum_or_avg" | null } | null; minimum_detectable_effect?: number | null; recommended_running_time?: number | null; recommended_sample_size?: number | null } | null; excluded_variants?: unknown[] | null; secondary_metrics?: unknown; saved_metrics: ({ id: number; experiment: number; saved_metric: number; metadata?: unknown; created_at: string; query: unknown; name: string })[]; saved_metrics_ids?: unknown[] | null; filters?: unknown; archived?: boolean; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; created_at: string; updated_at: string; type?: "web" | "product" | unknown; exposure_criteria?: { exposure_config?: { event?: string | null; id?: number | null; kind?: "ExperimentEventExposureConfig" | "ActionsNode" | null; properties: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: "exclude" | "first_seen" | null } | null; metrics?: ({ completion_event?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null } | null; conversion_window?: number | null; denominator?: { event?: string | null; id?: number | null; kind: "EventsNode" | "ActionsNode"; math?: "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_property?: string | null; properties?: (unknown)[] | null } | null; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; metrics_secondary?: ({ completion_event?: unknown | null; conversion_window?: number | null; denominator?: unknown | null; denominator_outlier_handling?: unknown | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type: "funnel" | "mean" | "ratio" | "retention"; name?: string | null; numerator?: unknown | null; numerator_outlier_handling?: unknown | null; retention_window_end?: number | null; retention_window_start?: number | null; retention_window_unit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; series?: (unknown)[] | null; source?: unknown | null; start_event?: unknown | null; start_handling?: "first_seen" | "last_seen" | null; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null })[] | null; stats_config?: unknown; scheduling_config?: unknown; allow_unknown_events?: boolean; _create_in_folder?: string; conclusion?: "won" | "lost" | "inconclusive" | "stopped_early" | "invalid" | unknown; conclusion_comment?: string | null; primary_metrics_ordered_uuids?: unknown; secondary_metrics_ordered_uuids?: unknown; only_count_matured_users?: boolean; update_feature_flag_params?: boolean; status: "draft" | "running" | "paused" | "exposure_frozen" | "stopped"; is_legacy: boolean; user_access_level: string | null }>; /** * Returns a paginated list of feature flags eligible for use in experiments. Eligible flags must: - Be multivariate with at least 2 variants - Have "control" as the first variant key Query parameters: - search: Filter by flag key or name (case insensitive) - limit: Number of results per page (default: 20) - offset: Pagination offset (default: 0) - active: Filter by active status ("true" or "false") - created_by_id: Filter by creator user ID - order: Sort order field - evaluation_runtime: Filter by evaluation runtime - has_evaluation_contexts: Filter by presence of evaluation contexts ("true" or "false") * Tags: experiments * Access as: posthog.experimentsEligibleFeatureFlagsRetrieve() */ experimentsEligibleFeatureFlagsRetrieve: () => Promise; /** * List the LLM metric templates that can be passed to `create_from_prompt`. * Tags: experiments * Access as: posthog.experimentsPromptTemplatesRetrieve() */ experimentsPromptTemplatesRetrieve: () => Promise<({ key: string; label: string; description: string })[]>; /** * Mixin for ViewSets to handle approval-gate exceptions raised from decorated serializers. Intercepts ApprovalRequired (409) and PolicyConflict (400) raised by the @approval_gate decorator on serializer methods and converts them into the same responses the viewset path produces (see decorators._result_to_response), so both paths share one contract. * Tags: experiments * Access as: posthog.experimentsStatsRetrieve() */ experimentsStatsRetrieve: () => Promise; /** * * Tags: exports * Access as: posthog.exportsList() */ exportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; dashboard?: number | null; insight?: number | null; export_format: "image/png" | "application/pdf" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "video/webm" | "video/mp4" | "image/gif" | "application/json"; created_at: string; has_content: boolean; export_context?: unknown; filename: string; expires_after: string | null; exception: string | null; user_access_level: string | null })[] }>; /** * * Tags: exports * Access as: posthog.exportsCreate() */ exportsCreate: () => Promise<{ id: number; dashboard?: number | null; insight?: number | null; export_format: "image/png" | "application/pdf" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "video/webm" | "video/mp4" | "image/gif" | "application/json"; created_at: string; has_content: boolean; export_context?: unknown; filename: string; expires_after: string | null; exception: string | null; user_access_level: string | null }>; /** * * Tags: exports * Access as: posthog.exportsRetrieve() */ exportsRetrieve: () => Promise<{ id: number; dashboard?: number | null; insight?: number | null; export_format: "image/png" | "application/pdf" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "video/webm" | "video/mp4" | "image/gif" | "application/json"; created_at: string; has_content: boolean; export_context?: unknown; filename: string; expires_after: string | null; exception: string | null; user_access_level: string | null }>; /** * * Tags: exports * Access as: posthog.exportsContentRetrieve() */ exportsContentRetrieve: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasList() */ externalDataSchemasList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null })[] }>; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasCreate() */ externalDataSchemasCreate: () => Promise<{ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null }>; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasRetrieve() */ externalDataSchemasRetrieve: () => Promise<{ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null }>; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasUpdate() */ externalDataSchemasUpdate: () => Promise<{ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null }>; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasPartialUpdate() */ externalDataSchemasPartialUpdate: () => Promise<{ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null }>; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasDestroy() */ externalDataSchemasDestroy: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasCancelCreate() */ externalDataSchemasCancelCreate: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasDeleteDataDestroy() */ externalDataSchemasDeleteDataDestroy: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasIncrementalFieldsCreate() */ externalDataSchemasIncrementalFieldsCreate: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasLogsRetrieve() */ externalDataSchemasLogsRetrieve: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasReloadCreate() */ externalDataSchemasReloadCreate: () => Promise; /** * * Tags: external_data_schemas * Access as: posthog.externalDataSchemasResyncCreate() */ externalDataSchemasResyncCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesList() */ externalDataSourcesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean })[] }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesCreate() */ externalDataSourcesCreate: () => Promise<{ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesRetrieve() */ externalDataSourcesRetrieve: () => Promise<{ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesUpdate() */ externalDataSourcesUpdate: () => Promise<{ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesPartialUpdate() */ externalDataSourcesPartialUpdate: () => Promise<{ id: string; created_at: string; created_by: string | null; created_via?: "web" | "api" | "mcp" | null; status: string; client_secret: string; account_id: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex"; latest_error: string | null; prefix?: string | null; description?: string | null; access_method: "warehouse" | "direct"; direct_query_enabled?: boolean; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null; last_run_at: string | null; schemas: ({ [key: string]: unknown })[]; job_inputs?: unknown; revenue_analytics_config: { enabled?: boolean; include_invoiceless_charges?: boolean }; user_access_level: string | null; supports_webhooks: boolean; supports_column_selection: boolean }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesDestroy() */ externalDataSourcesDestroy: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesBulkUpdateSchemasPartialUpdate() */ externalDataSourcesBulkUpdateSchemasPartialUpdate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; label: string | null; table: { [key: string]: unknown } | null; should_sync?: boolean; last_synced_at: string | null; latest_error: string | null; incremental: boolean; status: string | null; sync_type?: "full_refresh" | "incremental" | "append" | "webhook" | "cdc" | "xmin" | null; incremental_field?: string | null; incremental_field_type?: "integer" | "numeric" | "datetime" | "date" | "timestamp" | "objectid" | "xid" | null; incremental_field_lookback_seconds?: number | null; sync_frequency?: "never" | "1min" | "5min" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | unknown; sync_time_of_day?: string | null; description: string | null; primary_key_columns?: unknown[] | null; cdc_table_mode?: "consolidated" | "cdc_only" | "both" | unknown; enabled_columns?: unknown[] | null; row_filters?: unknown[] | null; available_columns: ({ name: string; data_type?: string; is_nullable?: boolean })[]; source: { [key: string]: unknown } | null })[] }>; /** * Live CDC health for an existing source: slot/publication existence and WAL lag. Reads from the source DB via the engine adapter. Returns ``{"enabled": false}`` when CDC is off, or the stored config plus live ``slot_exists`` / ``publication_exists`` / ``lag_bytes`` when on. 400s if the source DB is unreachable so the UI can show a degraded/unreachable state. * Tags: external_data_sources * Access as: posthog.externalDataSourcesCdcStatusRetrieve() */ externalDataSourcesCdcStatusRetrieve: () => Promise; /** * Validate CDC prerequisites for an existing source using its stored credentials. The detail=False ``check_cdc_prerequisites`` action is for the creation wizard, where the client still holds the raw connection config (incl. password) in the form. On the Configuration page the source already exists and secret fields are stripped from API responses — so the client can't supply them. This reads the stored (encrypted) credentials from the DB via the adapter instead. Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``), ``cdc_slot_name`` (optional), ``cdc_publication_name`` (optional). * Tags: external_data_sources * Access as: posthog.externalDataSourcesCheckCdcPrerequisitesForSourceCreate() */ externalDataSourcesCheckCdcPrerequisitesForSourceCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesCreateWebhookCreate() */ externalDataSourcesCreateWebhookCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesDeleteWebhookCreate() */ externalDataSourcesDeleteWebhookCreate: () => Promise; /** * Disable CDC on an existing source. Cancels any running CDC extraction workflow, deletes the extraction schedule, delegates engine-side teardown to the source's adapter (drops slot/publication for Postgres; equivalent for other engines), clears ``cdc_*`` keys from ``job_inputs``, soft-deletes companion CDC tables, and sets all CDC schemas to ``sync_type=None``, ``should_sync=False`` so the user must pick a new sync strategy before they resume. * Tags: external_data_sources * Access as: posthog.externalDataSourcesDisableCdcCreate() */ externalDataSourcesDisableCdcCreate: () => Promise; /** * Enable CDC on an existing source. Provisions engine-side CDC resources via the source's adapter, writes the CDC config into ``source.job_inputs``, and ensures the CDC extraction schedule exists. Re-runs prereq checks server-side so we never trust a stale client-side check. Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``), plus engine-specific identifier hints (e.g. ``cdc_slot_name``, ``cdc_publication_name`` for Postgres). Universal tuning fields: ``cdc_auto_drop_slot`` (optional bool), ``cdc_lag_warning_threshold_mb`` (optional int), ``cdc_lag_critical_threshold_mb`` (optional int). * Tags: external_data_sources * Access as: posthog.externalDataSourcesEnableCdcCreate() */ externalDataSourcesEnableCdcCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesJobsRetrieve() */ externalDataSourcesJobsRetrieve: () => Promise; /** * Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync). * Tags: external_data_sources * Access as: posthog.externalDataSourcesRefreshSchemasCreate() */ externalDataSourcesRefreshSchemasCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesReloadCreate() */ externalDataSourcesReloadCreate: () => Promise; /** * Repair CDC on a source whose replication resources were lost. Only proceeds on evidence of breakage (a persisted broken marker, or a live probe showing the slot/publication missing) — repairing a healthy source would drop its slot and force a full re-sync. Cancels running CDC jobs, recreates the engine-side slot/publication against the stored CDC config, resets every active CDC schema to snapshot mode for a full re-sync (changes since the old slot died are unrecoverable), clears the broken markers, and resumes the paused schedules. Idempotent: safe to retry after a partial failure. Concurrent repairs of the same source are rejected with a 409. * Tags: external_data_sources * Access as: posthog.externalDataSourcesRepairCdcCreate() */ externalDataSourcesRepairCdcCreate: () => Promise<{ success?: boolean; schemas_reset?: number }>; /** * Update the revenue analytics configuration and return the full external data source. * Tags: external_data_sources * Access as: posthog.externalDataSourcesRevenueAnalyticsConfigPartialUpdate() */ externalDataSourcesRevenueAnalyticsConfigPartialUpdate: () => Promise; /** * Update CDC tuning fields without enabling/disabling. Lets users edit ``cdc_auto_drop_slot``, ``cdc_lag_warning_threshold_mb``, and ``cdc_lag_critical_threshold_mb`` independently. These fields are universal across engines. Engine-specific identifiers (slot name, management mode, …) are immutable post-enable — switching them requires disable + enable. * Tags: external_data_sources * Access as: posthog.externalDataSourcesUpdateCdcSettingsCreate() */ externalDataSourcesUpdateCdcSettingsCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesUpdateWebhookInputsCreate() */ externalDataSourcesUpdateWebhookInputsCreate: () => Promise; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesWebhookInfoRetrieve() */ externalDataSourcesWebhookInfoRetrieve: () => Promise; /** * Validate CDC prerequisites against a live Postgres connection. Used by the source wizard to surface ✅/❌ checks before source creation, and by the self-managed setup popup to verify user-created publications. * Tags: external_data_sources * Access as: posthog.externalDataSourcesCheckCdcPrerequisitesCreate() */ externalDataSourcesCheckCdcPrerequisitesCreate: () => Promise<{ valid?: boolean; errors?: (string)[] }>; /** * Return a secure browser link for connecting a data warehouse source. The link opens a minimal connect page rendering the source's full connection form — OAuth options included — with no table selection and no source creation. The user authenticates in their browser, secrets never pass through the agent, and the agent finishes setup afterwards by passing the stored credential id to data-warehouse-source-setup. * Tags: external_data_sources * Access as: posthog.externalDataSourcesConnectLinkRetrieve() */ externalDataSourcesConnectLinkRetrieve: () => Promise<{ source_type: string; auth_method: "oauth" | "credentials"; connect_url: string; instructions: string }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesConnectionsList() */ externalDataSourcesConnectionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; prefix: string | null; engine: "duckdb" | "postgres" | "mysql" | "snowflake" | null })[] }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesDatabaseSchemaCreate() */ externalDataSourcesDatabaseSchemaCreate: () => Promise; /** * Draft a Custom REST source manifest from API documentation using an LLM. Reads the docs (a URL fetched server-side, or pasted text / OpenAPI spec), asks the model to author a RESTAPIConfig manifest, and validates it against the create-path checks — repairing against validation errors up to a small budget. Returns the manifest for the user to review and tweak in the builder before creating the source; it does NOT create anything. Gated by the `dwh-custom-source-ai-builder` flag, and requires the org to have approved AI data processing, since the docs are sent to the LLM gateway. * Tags: external_data_sources * Access as: posthog.externalDataSourcesDraftCustomManifestCreate() */ externalDataSourcesDraftCustomManifestCreate: () => Promise<{ draft_status: "ok" | "invalid" | "model_error"; manifest_json: string | null; resource_names: (string)[]; attempts: number; error: string | null }>; /** * List the accounts/properties a connected OAuth integration exposes, in the shared IntegrationAccount shape. The logic lives in each source (via OAuthMixin.get_oauth_accounts); this endpoint just routes by source type and serializes the result. * Tags: external_data_sources * Access as: posthog.externalDataSourcesOauthAccountsRetrieve() */ externalDataSourcesOauthAccountsRetrieve: () => Promise<{ accounts: ({ value: string; display_name: string; is_primary: boolean; badges: (string)[]; group: string | null; secondary_text: string | null })[] }>; /** * Read a bounded sample of rows for one resource of a Custom REST source. Lets a manifest author verify `data_selector`, `primary_key`, and the incremental `cursor_path` against live data before creating the source. Only `source_type: "Custom"` is supported — other source types return 400. The read is bounded (single page per resource, capped row count, short timeouts, no redirects). Manifest, validation, and SSRF problems return 400; a live fetch failure returns 200 with `error` set and empty `rows`. * Tags: external_data_sources * Access as: posthog.externalDataSourcesPreviewResourceCreate() */ externalDataSourcesPreviewResourceCreate: () => Promise<{ rows: ({ [key: string]: unknown })[]; row_count: number; columns: ({ name: string; type: string })[]; error: string | null }>; /** * One-shot data warehouse source setup. Validate credentials, discover available tables, enable them all with sensible sync defaults (incremental where supported, else append, else full refresh), and create the source in a single call — the caller never has to assemble a `schemas` array. For sources that support webhooks (e.g. Stripe), a webhook is auto-registered after creation: on success webhook-capable tables switch to real-time webhook sync (unlocking webhook-only tables); on failure the polling defaults stay in place. For fine-grained table/sync control, use the lower-level `database_schema` + `create` flow instead. * Tags: external_data_sources * Access as: posthog.externalDataSourcesSetupCreate() */ externalDataSourcesSetupCreate: () => Promise<{ id: string; webhook?: { success: boolean; webhook_url: string | null; error: string | null; pending_inputs: (string)[] } }>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesSourcePrefixCreate() */ externalDataSourcesSourcePrefixCreate: () => Promise; /** * Validate and store credentials for a data warehouse source without creating the source. Backs the source connect page: the user enters credentials directly in PostHog, they are checked against a live connection, then stashed encrypted in a temporary store. The returned credential id can be passed to `setup` as {'credential_id': } to create the source — so secrets never travel through an agent conversation. The stash is single-use: it is deleted as soon as `setup` consumes it, and expires after 24 hours if never consumed. * Tags: external_data_sources * Access as: posthog.externalDataSourcesStoreCredentialsCreate() */ externalDataSourcesStoreCredentialsCreate: () => Promise<{ credential_id: string; source_type: string; created_at: string; expires_at: string }>; /** * List credentials stored via the source connect page that haven't been consumed yet. Returns metadata only (id, source type, timestamps) — never the secrets themselves. Stored credentials are temporary: they disappear once consumed by `setup` or when they expire. Newest first, so after a user confirms they've finished the connect page, the first entry for the source type is the one to pass to `setup`. * Tags: external_data_sources * Access as: posthog.externalDataSourcesStoredCredentialsList() */ externalDataSourcesStoredCredentialsList: () => Promise<({ credential_id: string; source_type: string; created_at: string; expires_at: string })[]>; /** * Create, Read, Update and Delete External data Sources. * Tags: external_data_sources * Access as: posthog.externalDataSourcesWizardRetrieve() */ externalDataSourcesWizardRetrieve: () => Promise; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsList() */ featureFlagsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; archived?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at?: string; updated_at: string | null; version?: number; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; ensure_experience_continuity?: boolean | null; experiment_set: (number)[]; experiment_set_metadata: ({ id: number; name: string; is_running: boolean })[]; surveys: { [key: string]: unknown }; features: { [key: string]: unknown }; rollback_conditions?: unknown; performed_rollback?: boolean | null; can_edit: boolean; tags?: (unknown)[]; evaluation_contexts?: (unknown)[]; usage_dashboard: number; analytics_dashboards?: (number)[]; has_enriched_analytics?: boolean | null; user_access_level: string | null; creation_context?: "feature_flags" | "experiments" | "surveys" | "early_access_features" | "web_experiments" | "product_tours"; is_remote_configuration?: boolean | null; has_encrypted_payloads?: boolean | null; status: string; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; last_called_at?: string | null; _create_in_folder?: string; _should_create_usage_dashboard?: boolean; is_used_in_replay_settings: boolean })[] }>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsCreate() */ featureFlagsCreate: () => Promise<{ id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; archived?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at?: string; updated_at: string | null; version?: number; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; ensure_experience_continuity?: boolean | null; experiment_set: (number)[]; experiment_set_metadata: ({ id: number; name: string; is_running: boolean })[]; surveys: { [key: string]: unknown }; features: { [key: string]: unknown }; rollback_conditions?: unknown; performed_rollback?: boolean | null; can_edit: boolean; tags?: (unknown)[]; evaluation_contexts?: (unknown)[]; usage_dashboard: number; analytics_dashboards?: (number)[]; has_enriched_analytics?: boolean | null; user_access_level: string | null; creation_context?: "feature_flags" | "experiments" | "surveys" | "early_access_features" | "web_experiments" | "product_tours"; is_remote_configuration?: boolean | null; has_encrypted_payloads?: boolean | null; status: string; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; last_called_at?: string | null; _create_in_folder?: string; _should_create_usage_dashboard?: boolean; is_used_in_replay_settings: boolean }>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsRetrieve() */ featureFlagsRetrieve: () => Promise<{ id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; archived?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at?: string; updated_at: string | null; version?: number; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; ensure_experience_continuity?: boolean | null; experiment_set: (number)[]; experiment_set_metadata: ({ id: number; name: string; is_running: boolean })[]; surveys: { [key: string]: unknown }; features: { [key: string]: unknown }; rollback_conditions?: unknown; performed_rollback?: boolean | null; can_edit: boolean; tags?: (unknown)[]; evaluation_contexts?: (unknown)[]; usage_dashboard: number; analytics_dashboards?: (number)[]; has_enriched_analytics?: boolean | null; user_access_level: string | null; creation_context?: "feature_flags" | "experiments" | "surveys" | "early_access_features" | "web_experiments" | "product_tours"; is_remote_configuration?: boolean | null; has_encrypted_payloads?: boolean | null; status: string; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; last_called_at?: string | null; _create_in_folder?: string; _should_create_usage_dashboard?: boolean; is_used_in_replay_settings: boolean }>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsUpdate() */ featureFlagsUpdate: () => Promise<{ id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; archived?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at?: string; updated_at: string | null; version?: number; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; ensure_experience_continuity?: boolean | null; experiment_set: (number)[]; experiment_set_metadata: ({ id: number; name: string; is_running: boolean })[]; surveys: { [key: string]: unknown }; features: { [key: string]: unknown }; rollback_conditions?: unknown; performed_rollback?: boolean | null; can_edit: boolean; tags?: (unknown)[]; evaluation_contexts?: (unknown)[]; usage_dashboard: number; analytics_dashboards?: (number)[]; has_enriched_analytics?: boolean | null; user_access_level: string | null; creation_context?: "feature_flags" | "experiments" | "surveys" | "early_access_features" | "web_experiments" | "product_tours"; is_remote_configuration?: boolean | null; has_encrypted_payloads?: boolean | null; status: string; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; last_called_at?: string | null; _create_in_folder?: string; _should_create_usage_dashboard?: boolean; is_used_in_replay_settings: boolean }>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsPartialUpdate() */ featureFlagsPartialUpdate: () => Promise<{ id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; archived?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at?: string; updated_at: string | null; version?: number; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; ensure_experience_continuity?: boolean | null; experiment_set: (number)[]; experiment_set_metadata: ({ id: number; name: string; is_running: boolean })[]; surveys: { [key: string]: unknown }; features: { [key: string]: unknown }; rollback_conditions?: unknown; performed_rollback?: boolean | null; can_edit: boolean; tags?: (unknown)[]; evaluation_contexts?: (unknown)[]; usage_dashboard: number; analytics_dashboards?: (number)[]; has_enriched_analytics?: boolean | null; user_access_level: string | null; creation_context?: "feature_flags" | "experiments" | "surveys" | "early_access_features" | "web_experiments" | "product_tours"; is_remote_configuration?: boolean | null; has_encrypted_payloads?: boolean | null; status: string; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; last_called_at?: string | null; _create_in_folder?: string; _should_create_usage_dashboard?: boolean; is_used_in_replay_settings: boolean }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: feature_flags * Access as: posthog.featureFlagsDestroy() */ featureFlagsDestroy: () => Promise; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsActivityRetrieve() */ featureFlagsActivityRetrieve: () => Promise<{ results: ({ id: string; user: { [key: string]: unknown } | null; activity: string; scope: string; item_id: string; detail?: { id: string; changes?: ({ type: string; action: string; field: string; before: unknown; after: unknown })[]; merge?: { type: string; source: unknown; target: unknown }; trigger?: { job_type: string; job_id: string; payload: unknown }; name: string; short_id: string; type: string }; created_at: string })[]; next: string | null; previous: string | null; total_count: number }>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsCreateStaticCohortForFlagCreate() */ featureFlagsCreateStaticCohortForFlagCreate: () => Promise; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsDashboardCreate() */ featureFlagsDashboardCreate: () => Promise; /** * Get other active flags that depend on this flag. * Tags: feature_flags * Access as: posthog.featureFlagsDependentFlagsList() */ featureFlagsDependentFlagsList: () => Promise<({ id: number; key: string; name: string })[]>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsEnrichUsageDashboardCreate() */ featureFlagsEnrichUsageDashboardCreate: () => Promise; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsRemoteConfigRetrieve() */ featureFlagsRemoteConfigRetrieve: () => Promise; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsStatusRetrieve() */ featureFlagsStatusRetrieve: () => Promise<{ status: string; reason: string; rollout: { effectively_full_rollout: boolean; has_targeting_conditions: boolean; max_rollout_percentage: number | null; is_multivariate: boolean } }>; /** * Test feature flag evaluation against a specific user at an optional point in time. This endpoint allows testing how a feature flag would evaluate for a specific user, optionally at a historical timestamp. When a timestamp is provided, both the flag conditions and person properties are evaluated as they existed at that time. * Tags: feature_flags * Access as: posthog.featureFlagsTestEvaluationCreate() */ featureFlagsTestEvaluationCreate: () => Promise<{ flag_key: string; result: unknown; reason: string; condition_index: number | null; payload: unknown; person_properties: { [key: string]: unknown }; evaluation_distinct_id: string | null; conditions: ({ index: number; matched: boolean; properties_matched?: boolean; explanation: string; rollout_percentage: number; rollout_excluded: boolean; variant: string | null; properties: ({ key: string; operator: string; value: unknown; type: string; actual_value: unknown; matched: boolean; explanation: string })[] })[] }>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsVersionsRetrieve() */ featureFlagsVersionsRetrieve: () => Promise<{ id: number; key: string; name?: string; filters: { [key: string]: unknown }; active?: boolean; deleted?: boolean; version?: number | null; rollback_conditions?: unknown; performed_rollback?: boolean | null; ensure_experience_continuity?: boolean | null; has_enriched_analytics?: boolean | null; is_remote_configuration?: boolean | null; has_encrypted_payloads?: boolean | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; last_called_at?: string | null; created_at?: string; created_by: number | null; is_historical: boolean; version_timestamp: string | null; modified_by: number | null }>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsAllActivityRetrieve() */ featureFlagsAllActivityRetrieve: () => Promise<{ results: ({ id: string; user: { [key: string]: unknown } | null; activity: string; scope: string; item_id: string; detail?: { id: string; changes?: ({ type: string; action: string; field: string; before: unknown; after: unknown })[]; merge?: { type: string; source: unknown; target: unknown }; trigger?: { job_type: string; job_id: string; payload: unknown }; name: string; short_id: string; type: string }; created_at: string })[]; next: string | null; previous: string | null; total_count: number }>; /** * Bulk delete feature flags by filter criteria or explicit IDs. Accepts either: - {"filters": {...}} - Same filter params as list endpoint (search, active, type, etc.) - {"ids": [...]} - Explicit list of flag IDs (no limit) Returns same format as bulk_delete for UI compatibility. Uses bulk operations for efficiency: database updates are batched and cache invalidation happens once at the end rather than per-flag. * Tags: feature_flags * Access as: posthog.featureFlagsBulkDeleteCreate() */ featureFlagsBulkDeleteCreate: () => Promise<{ deleted: ({ id: number; key: string; rollout_state: "fully_rolled_out" | "not_rolled_out" | "partial"; active_variant: string | null })[]; errors: ({ id: unknown; key?: string; reason: string })[] }>; /** * Get feature flag keys by IDs. Accepts a list of feature flag IDs and returns a mapping of ID to key. * Tags: feature_flags * Access as: posthog.featureFlagsBulkKeysRetrieve() */ featureFlagsBulkKeysRetrieve: () => Promise<{ keys: { [key: string]: string | undefined }; warning?: string }>; /** * Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list * Tags: feature_flags * Access as: posthog.featureFlagsBulkUpdateTagsCreate() */ featureFlagsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: number; tags: (string)[] })[]; skipped: ({ id: number; reason: string })[] }>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsEvaluationReasonsRetrieve() */ featureFlagsEvaluationReasonsRetrieve: () => Promise; /** * Get IDs of all feature flags matching the current filters. Uses the same filtering logic as the list endpoint. Returns only IDs that the user has permission to edit. * Tags: feature_flags * Access as: posthog.featureFlagsMatchingIdsRetrieve() */ featureFlagsMatchingIdsRetrieve: () => Promise; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsMyFlagsRetrieve() */ featureFlagsMyFlagsRetrieve: () => Promise<({ feature_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; value: unknown })[]>; /** * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user. * Tags: feature_flags * Access as: posthog.featureFlagsUserBlastRadiusCreate() */ featureFlagsUserBlastRadiusCreate: () => Promise<{ affected: number; total: number }>; /** * Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP. * Tags: field_notes * Access as: posthog.fieldNotesList() */ fieldNotesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; comment: string; field_note_status?: "pending" | "acknowledged" | "resolved" | "dismissed"; resolution?: string | null; url: string; host: string; pathname?: string | null; selector: string; element_text?: string | null; element_chain?: string | null; element_context?: { [key: string]: unknown }; viewport?: { [key: string]: unknown } | null; screenshot_url?: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP. * Tags: field_notes * Access as: posthog.fieldNotesCreate() */ fieldNotesCreate: () => Promise<{ id: string; comment: string; field_note_status?: "pending" | "acknowledged" | "resolved" | "dismissed"; resolution?: string | null; url: string; host: string; pathname?: string | null; selector: string; element_text?: string | null; element_chain?: string | null; element_context?: { [key: string]: unknown }; viewport?: { [key: string]: unknown } | null; screenshot_url?: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP. * Tags: field_notes * Access as: posthog.fieldNotesRetrieve() */ fieldNotesRetrieve: () => Promise<{ id: string; comment: string; field_note_status?: "pending" | "acknowledged" | "resolved" | "dismissed"; resolution?: string | null; url: string; host: string; pathname?: string | null; selector: string; element_text?: string | null; element_chain?: string | null; element_context?: { [key: string]: unknown }; viewport?: { [key: string]: unknown } | null; screenshot_url?: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP. * Tags: field_notes * Access as: posthog.fieldNotesUpdate() */ fieldNotesUpdate: () => Promise<{ id: string; comment: string; field_note_status?: "pending" | "acknowledged" | "resolved" | "dismissed"; resolution?: string | null; url: string; host: string; pathname?: string | null; selector: string; element_text?: string | null; element_chain?: string | null; element_context?: { [key: string]: unknown }; viewport?: { [key: string]: unknown } | null; screenshot_url?: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP. * Tags: field_notes * Access as: posthog.fieldNotesPartialUpdate() */ fieldNotesPartialUpdate: () => Promise<{ id: string; comment: string; field_note_status?: "pending" | "acknowledged" | "resolved" | "dismissed"; resolution?: string | null; url: string; host: string; pathname?: string | null; selector: string; element_text?: string | null; element_chain?: string | null; element_context?: { [key: string]: unknown }; viewport?: { [key: string]: unknown } | null; screenshot_url?: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP. * Tags: field_notes * Access as: posthog.fieldNotesDestroy() */ fieldNotesDestroy: () => Promise; /** * * Tags: batch_exports, file_download_batch_exports * Access as: posthog.fileDownloadBatchExportsList() */ fileDownloadBatchExportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: "Cancelled" | "Completed" | "ContinuedAsNew" | "Failed" | "FailedRetryable" | "FailedBilling" | "Terminated" | "TimedOut" | "Running" | "Starting" })[] }>; /** * Create and start a batch export on demand run to download a file. * Tags: batch_exports, file_download_batch_exports * Access as: posthog.fileDownloadBatchExportsCreate() */ fileDownloadBatchExportsCreate: () => Promise; /** * Get a batch export on demand run. If the underlying batch export run has completed, we return keys to the generated file downloads so that users may download them by making a request to /download. * Tags: batch_exports, file_download_batch_exports * Access as: posthog.fileDownloadBatchExportsRetrieve() */ fileDownloadBatchExportsRetrieve: () => Promise<{ [key: string]: unknown }>; /** * Cancel an ongoing file-download batch export. * Tags: batch_exports, file_download_batch_exports * Access as: posthog.fileDownloadBatchExportsCancelCreate() */ fileDownloadBatchExportsCancelCreate: () => Promise; /** * Download a file (or a part) from this batch export run. Users can provide a part component with an id or index, or no part component at all: * If part id is included: The file download matching the id is downloaded. * If part index is included: The file download matching the index (as ordered by key) is downloaded. * If no part component is present: If there is only one file downloaded, that is downloaded. Otherwise the first one as sorted by key is downloaded. * Tags: batch_exports, file_download_batch_exports * Access as: posthog.fileDownloadBatchExportsDownloadRetrieve() */ fileDownloadBatchExportsDownloadRetrieve: () => Promise; /** * * Tags: batch_exports, file_download_batch_exports * Access as: posthog.fileDownloadBatchExportsLogsRetrieve() */ fileDownloadBatchExportsLogsRetrieve: () => Promise; /** * * Tags: file_system * Access as: posthog.fileSystemList() */ fileSystemList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null })[] }>; /** * * Tags: file_system * Access as: posthog.fileSystemCreate() */ fileSystemCreate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * * Tags: file_system * Access as: posthog.fileSystemRetrieve() */ fileSystemRetrieve: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * * Tags: file_system * Access as: posthog.fileSystemUpdate() */ fileSystemUpdate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * * Tags: file_system * Access as: posthog.fileSystemPartialUpdate() */ fileSystemPartialUpdate: () => Promise<{ id: string; path: string; depth: number | null; type?: string; ref?: string | null; href?: string | null; meta?: unknown; shortcut?: boolean | null; created_at: string; last_viewed_at: string | null; user_access_level: string | null }>; /** * * Tags: file_system * Access as: posthog.fileSystemDestroy() */ fileSystemDestroy: () => Promise; /** * Get count of all files in a folder. * Tags: file_system * Access as: posthog.fileSystemCountCreate() */ fileSystemCountCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.fileSystemLinkCreate() */ fileSystemLinkCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.fileSystemMoveCreate() */ fileSystemMoveCreate: () => Promise; /** * Get count of all files in a folder. * Tags: file_system * Access as: posthog.fileSystemCountByPathCreate() */ fileSystemCountByPathCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.fileSystemLogViewRetrieve() */ fileSystemLogViewRetrieve: () => Promise; /** * * Tags: file_system * Access as: posthog.fileSystemLogViewCreate() */ fileSystemLogViewCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.fileSystemUndoDeleteCreate() */ fileSystemUndoDeleteCreate: () => Promise; /** * * Tags: file_system * Access as: posthog.fileSystemUnfiledRetrieve() */ fileSystemUnfiledRetrieve: () => Promise; /** * * Tags: file_system_shortcut * Access as: posthog.fileSystemShortcutList() */ fileSystemShortcutList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null })[] }>; /** * * Tags: file_system_shortcut * Access as: posthog.fileSystemShortcutCreate() */ fileSystemShortcutCreate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * * Tags: file_system_shortcut * Access as: posthog.fileSystemShortcutRetrieve() */ fileSystemShortcutRetrieve: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * * Tags: file_system_shortcut * Access as: posthog.fileSystemShortcutUpdate() */ fileSystemShortcutUpdate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * * Tags: file_system_shortcut * Access as: posthog.fileSystemShortcutPartialUpdate() */ fileSystemShortcutPartialUpdate: () => Promise<{ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null }>; /** * * Tags: file_system_shortcut * Access as: posthog.fileSystemShortcutDestroy() */ fileSystemShortcutDestroy: () => Promise; /** * Set the display order of the current user's shortcuts. `ordered_ids` becomes the new top-to-bottom order; any unknown IDs are rejected. * Tags: file_system_shortcut * Access as: posthog.fileSystemShortcutReorderCreate() */ fileSystemShortcutReorderCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: string; type?: string; ref?: string | null; href?: string | null; order?: number; created_at: string; user_access_level: string | null })[] }>; /** * Get possible values for a feature flag. Query parameters: - key: The flag ID (required) Returns: - Array of objects with 'name' field containing possible values * Tags: flag_value * Access as: posthog.flagValueValuesRetrieve() */ flagValueValuesRetrieve: () => Promise<{ results: ({ name: unknown })[]; refreshing: boolean }>; /** * List all groups of a specific group type. You must pass ?group_type_index= in the URL. To get a list of valid group types, call /api/:project_id/groups_types/. Uses forward-only keyset pagination via the `cursor` parameter. The `previous` field in the response envelope is always null. * Tags: groups * Access as: posthog.groupsList() */ groupsList: () => Promise<({ group_type_index: number; group_key: string; group_properties?: unknown; created_at: string })[]>; /** * * Tags: groups * Access as: posthog.groupsCreate() */ groupsCreate: () => Promise<{ group_type_index: number; group_key: string; group_properties?: unknown; created_at: string }>; /** * * Tags: groups * Access as: posthog.groupsActivityRetrieve() */ groupsActivityRetrieve: () => Promise; /** * * Tags: groups * Access as: posthog.groupsDeletePropertyCreate() */ groupsDeletePropertyCreate: () => Promise; /** * * Tags: groups * Access as: posthog.groupsFindRetrieve() */ groupsFindRetrieve: () => Promise; /** * * Tags: groups * Access as: posthog.groupsPropertyValuesRetrieve() */ groupsPropertyValuesRetrieve: () => Promise; /** * * Tags: groups * Access as: posthog.groupsRelatedRetrieve() */ groupsRelatedRetrieve: () => Promise; /** * * Tags: groups * Access as: posthog.groupsUpdatePropertyCreate() */ groupsUpdatePropertyCreate: () => Promise; /** * * Tags: groups_types * Access as: posthog.groupsTypesList() */ groupsTypesList: () => Promise<({ group_type: string; group_type_index: number; name_singular?: string | null; name_plural?: string | null; detail_dashboard?: number | null; default_columns?: unknown[] | null; created_at?: string | null })[]>; /** * * Tags: groups_types * Access as: posthog.groupsTypesDestroy() */ groupsTypesDestroy: () => Promise; /** * * Tags: groups_types * Access as: posthog.groupsTypesMetricsList() */ groupsTypesMetricsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; format?: "numeric" | "currency"; interval?: number; display?: "number" | "sparkline"; filters: { [key: string]: unknown }; math?: "count" | "sum"; math_property?: string | null })[] }>; /** * * Tags: groups_types * Access as: posthog.groupsTypesMetricsCreate() */ groupsTypesMetricsCreate: () => Promise<{ id: string; name: string; format?: "numeric" | "currency"; interval?: number; display?: "number" | "sparkline"; filters: { [key: string]: unknown }; math?: "count" | "sum"; math_property?: string | null }>; /** * * Tags: groups_types * Access as: posthog.groupsTypesMetricsRetrieve() */ groupsTypesMetricsRetrieve: () => Promise<{ id: string; name: string; format?: "numeric" | "currency"; interval?: number; display?: "number" | "sparkline"; filters: { [key: string]: unknown }; math?: "count" | "sum"; math_property?: string | null }>; /** * * Tags: groups_types * Access as: posthog.groupsTypesMetricsUpdate() */ groupsTypesMetricsUpdate: () => Promise<{ id: string; name: string; format?: "numeric" | "currency"; interval?: number; display?: "number" | "sparkline"; filters: { [key: string]: unknown }; math?: "count" | "sum"; math_property?: string | null }>; /** * * Tags: groups_types * Access as: posthog.groupsTypesMetricsPartialUpdate() */ groupsTypesMetricsPartialUpdate: () => Promise<{ id: string; name: string; format?: "numeric" | "currency"; interval?: number; display?: "number" | "sparkline"; filters: { [key: string]: unknown }; math?: "count" | "sum"; math_property?: string | null }>; /** * * Tags: groups_types * Access as: posthog.groupsTypesMetricsDestroy() */ groupsTypesMetricsDestroy: () => Promise; /** * * Tags: groups_types * Access as: posthog.groupsTypesCreateDetailDashboardUpdate() */ groupsTypesCreateDetailDashboardUpdate: () => Promise; /** * * Tags: groups_types * Access as: posthog.groupsTypesSetDefaultColumnsUpdate() */ groupsTypesSetDefaultColumnsUpdate: () => Promise; /** * * Tags: groups_types * Access as: posthog.groupsTypesUpdateMetadataPartialUpdate() */ groupsTypesUpdateMetadataPartialUpdate: () => Promise; /** * List health issues * Tags: health_issues * Access as: posthog.healthIssuesList() */ healthIssuesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; kind: string; severity: "critical" | "warning" | "info"; status: "active" | "resolved"; dismissed?: boolean; payload: { [key: string]: unknown }; created_at: string; updated_at: string; resolved_at: string | null })[] }>; /** * Get a health issue * Tags: health_issues * Access as: posthog.healthIssuesRetrieve() */ healthIssuesRetrieve: () => Promise<{ id: string; kind: string; severity: "critical" | "warning" | "info"; status: "active" | "resolved"; dismissed?: boolean; payload: { [key: string]: unknown }; created_at: string; updated_at: string; resolved_at: string | null; title: string; summary: string; link: string; remediation: { human: string; agent: string } | null }>; /** * * Tags: health_issues * Access as: posthog.healthIssuesPartialUpdate() */ healthIssuesPartialUpdate: () => Promise<{ id: string; kind: string; severity: "critical" | "warning" | "info"; status: "active" | "resolved"; dismissed?: boolean; payload: { [key: string]: unknown }; created_at: string; updated_at: string; resolved_at: string | null }>; /** * * Tags: health_issues * Access as: posthog.healthIssuesResolveCreate() */ healthIssuesResolveCreate: () => Promise<{ id: string; kind: string; severity: "critical" | "warning" | "info"; status: "active" | "resolved"; dismissed?: boolean; payload: { [key: string]: unknown }; created_at: string; updated_at: string; resolved_at: string | null }>; /** * * Tags: health_issues * Access as: posthog.healthIssuesRefreshCreate() */ healthIssuesRefreshCreate: () => Promise; /** * Summarize active health issues * Tags: health_issues * Access as: posthog.healthIssuesSummaryRetrieve() */ healthIssuesSummaryRetrieve: () => Promise<{ total: number; by_severity: { [key: string]: number | undefined }; by_kind: { [key: string]: number | undefined } }>; /** * Fetch the rendered screenshot image (JPEG bytes) for a saved heatmap at a given viewport width. Returns 202 with the saved-heatmap metadata while the screenshot is still being generated. * Tags: heatmap_screenshots * Access as: posthog.heatmapScreenshotsContentRetrieve() */ heatmapScreenshotsContentRetrieve: () => Promise; /** * Aggregated heatmap interactions for a page. For type 'click'/'rageclick'/'mousemove' each result is a point with relative x, absolute client-y, and a count. For type 'scrolldepth' the response is scroll-depth buckets instead (cumulative reach down the page). * Tags: heatmaps * Access as: posthog.heatmapsList() */ heatmapsList: () => Promise<({ results: ({ count: number; pointer_y: number; pointer_relative_x: number; pointer_target_fixed: boolean })[]; fold?: { total_count: number; below_fold_count: number; pct_below_fold: number; median_viewport_height: number | null } | null; has_more?: boolean })[]>; /** * Drill into the individual session interactions behind one or more heatmap coordinates. Pass the 'points' you want to inspect (from the heatmaps list response) to get the underlying per-session events, so you can jump to the session recordings that produced a hotspot. * Tags: heatmaps * Access as: posthog.heatmapsEventsRetrieve() */ heatmapsEventsRetrieve: () => Promise<{ results: ({ session_id?: string | null; distinct_id: string; timestamp: string; pointer_relative_x: number; pointer_y: number; current_url: string; type: string })[]; total_count: number; has_more: boolean }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsList() */ hogFlowsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string | null; description: string; version: number; status: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking: unknown; conversion: unknown; exit_condition: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges: unknown; actions: unknown; abort_action: string | null; variables: unknown; billable_action_types: unknown; user_access_level: string | null })[] }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsCreate() */ hogFlowsCreate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsRetrieve() */ hogFlowsRetrieve: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsUpdate() */ hogFlowsUpdate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsPartialUpdate() */ hogFlowsPartialUpdate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsDestroy() */ hogFlowsDestroy: () => Promise; /** * * Tags: hog_flows * Access as: posthog.hogFlowsAssetsRetrieve() */ hogFlowsAssetsRetrieve: () => Promise<({ invocation_id: string; action_id: string; function_id: string; function_name: string; parent_run_id: string; kind: string; distinct_id: string; person_id: string; recipient: string; subject: string; status: string; sent_at: string })[]>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsAssetContentRetrieve() */ hogFlowsAssetContentRetrieve: () => Promise; /** * * Tags: hog_flows * Access as: posthog.hogFlowsBatchJobsList() */ hogFlowsBatchJobsList: () => Promise<({ id: string; status?: "waiting" | "queued" | "active" | "completed" | "cancelled" | "failed"; hog_flow: string; filters?: unknown; variables?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string })[]>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsBatchJobsCreate() */ hogFlowsBatchJobsCreate: () => Promise<{ id: string; status?: "waiting" | "queued" | "active" | "completed" | "cancelled" | "failed"; hog_flow: string; filters?: unknown; variables?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsGraphPartialUpdate() */ hogFlowsGraphPartialUpdate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsInvocationResultsRetrieve() */ hogFlowsInvocationResultsRetrieve: () => Promise<({ invocation_id: string; status: string; error_kind: string; error_message: string; distinct_id: string; person_id: string; scheduled_at: string; started_at: string | null; finished_at: string | null; duration_ms: number | null; attempts: number; is_retry: boolean })[]>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsInvocationResultRetrieve() */ hogFlowsInvocationResultRetrieve: () => Promise<{ invocation_globals: { [key: string]: unknown }; invocation_id: string; status: string; error_kind: string; error_message: string; distinct_id: string; person_id: string; scheduled_at: string; started_at: string | null; finished_at: string | null; duration_ms: number | null; attempts: number; is_retry: boolean }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsInvocationsCreate() */ hogFlowsInvocationsCreate: () => Promise; /** * * Tags: hog_flows * Access as: posthog.hogFlowsLogsRetrieve() */ hogFlowsLogsRetrieve: () => Promise; /** * * Tags: hog_flows * Access as: posthog.hogFlowsMetricsRetrieve() */ hogFlowsMetricsRetrieve: () => Promise<{ labels: (string)[]; series: ({ name: string; values: (number)[] })[] }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsMetricsTotalsRetrieve() */ hogFlowsMetricsTotalsRetrieve: () => Promise<{ totals: { [key: string]: number | undefined } }>; /** * Rerun past invocations of this hog flow from their stored payloads. Same shape and semantics as the hog function rerun endpoint — proxies through to the CDP worker, which reads matching rows from ClickHouse, rehydrates from `invocation_globals`, and re-enqueues onto cyclotron with `is_retry=1`. Because rerun replays historical event/person/group data, it requires `person:read` and `group:read` on top of `hog_flow:write`. * Tags: hog_flows * Access as: posthog.hogFlowsRerunCreate() */ hogFlowsRerunCreate: () => Promise<{ rerun_job_id: string; queued_count: number; skipped_count: number }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsSchedulesList() */ hogFlowsSchedulesList: () => Promise<({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsSchedulesCreate() */ hogFlowsSchedulesCreate: () => Promise<{ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsSchedulesPartialUpdate() */ hogFlowsSchedulesPartialUpdate: () => Promise<{ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsSchedulesDestroy() */ hogFlowsSchedulesDestroy: () => Promise; /** * * Tags: hog_flows * Access as: posthog.hogFlowsBulkDeleteCreate() */ hogFlowsBulkDeleteCreate: () => Promise<{ id: string; name?: string | null; description?: string; version: number; status?: "draft" | "active" | "archived"; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; trigger: unknown; trigger_masking?: { ttl?: number | null; threshold?: number | null; hash: string; bytecode?: unknown } | null; conversion?: { filters?: ({ [key: string]: unknown })[]; events?: ({ filters: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } })[]; window_minutes?: number | null; bytecode?: unknown } | null; exit_condition?: "exit_on_conversion" | "exit_on_trigger_not_matched" | "exit_on_trigger_not_matched_or_conversion" | "exit_only_at_end"; edges?: ({ to: string; type: "continue" | "branch"; index?: number; from: string })[]; actions: ({ id: string; name: string; description?: string; on_error?: "continue" | "abort" | null; created_at?: number; updated_at?: number; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string } | null; type: string; config: { [key: string]: unknown } | { condition?: { filters?: unknown | null; name?: string }; events?: ({ filters?: unknown | null; name?: string })[]; max_wait_duration: string }; output_variable?: unknown })[]; abort_action: string | null; variables?: ({ [key: string]: string | undefined })[]; billable_action_types: unknown; schedules: ({ id: string; rrule: string; starts_at: string; timezone?: string; variables?: unknown; status: "active" | "paused" | "completed"; next_run_at: string | null; created_at: string; updated_at: string })[]; user_access_level: string | null }>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsMetricsGlobalRetrieve() */ hogFlowsMetricsGlobalRetrieve: () => Promise<({ workflow_id: string; succeeded: number; failed: number })[]>; /** * * Tags: hog_flows * Access as: posthog.hogFlowsUserBlastRadiusCreate() */ hogFlowsUserBlastRadiusCreate: () => Promise<{ affected: number; total: number; limit: number; dedupe_key: "email" | null }>; /** * * Tags: hog_function_templates, hog_function_templates * Access as: posthog.hogFunctionTemplatesList() */ hogFunctionTemplatesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null })[] }>; /** * * Tags: hog_function_templates, hog_function_templates * Access as: posthog.hogFunctionTemplatesRetrieve() */ hogFunctionTemplatesRetrieve: () => Promise<{ id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsList() */ hogFunctionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; type: string | null; name: string | null; description: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled: boolean; hog: string; filters: unknown; icon_url: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order: number | null; search_match_type: "exact" | "similar" | null })[] }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsCreate() */ hogFunctionsCreate: () => Promise<{ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsRetrieve() */ hogFunctionsRetrieve: () => Promise<{ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsUpdate() */ hogFunctionsUpdate: () => Promise<{ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsPartialUpdate() */ hogFunctionsPartialUpdate: () => Promise<{ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsDestroy() */ hogFunctionsDestroy: () => Promise; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsEnableBackfillsCreate() */ hogFunctionsEnableBackfillsCreate: () => Promise; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsInvocationsCreate() */ hogFunctionsInvocationsCreate: () => Promise<{ configuration: { id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown }; globals?: { [key: string]: unknown }; clickhouse_event?: { [key: string]: unknown }; mock_async_functions?: boolean; status: string; logs: (unknown)[]; invocation_id?: string | null }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsLogsRetrieve() */ hogFunctionsLogsRetrieve: () => Promise; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsMetricsRetrieve() */ hogFunctionsMetricsRetrieve: () => Promise<{ labels: (string)[]; series: ({ name: string; values: (number)[] })[] }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsMetricsTotalsRetrieve() */ hogFunctionsMetricsTotalsRetrieve: () => Promise<{ totals: { [key: string]: number | undefined } }>; /** * Rerun past invocations of this hog function from their stored payloads. The CDP worker reads matching rows from the `hog_invocation_results` ClickHouse table, rehydrates the invocation from the stored `invocation_globals`, and re-enqueues onto cyclotron. Each rerun run reuses the original `invocation_id` with `is_retry=1` set on the new lifecycle row so the UI can surface that it was a rerun. For source-webhook functions the worker strips `request.headers` from the rehydrated globals before re-enqueuing (see the rerun paginator): those headers carry the inbound sender's credentials, and replaying them through a reconfigured function would let a write-access user exfiltrate stored secrets. Because rerun replays historical event/person/group data, it requires `person:read` and `group:read` on top of `hog_function:write`. * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsRerunCreate() */ hogFunctionsRerunCreate: () => Promise<{ rerun_job_id: string; queued_count: number; skipped_count: number }>; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsIconRetrieve() */ hogFunctionsIconRetrieve: () => Promise; /** * * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsIconsRetrieve() */ hogFunctionsIconsRetrieve: () => Promise; /** * Update the execution order of multiple HogFunctions. * Tags: hog_functions, hog_functions * Access as: posthog.hogFunctionsRearrangePartialUpdate() */ hogFunctionsRearrangePartialUpdate: () => Promise<({ id: string; type?: "destination" | "site_destination" | "internal_destination" | "source_webhook" | "warehouse_source_webhook" | "site_app" | "transformation" | null; name?: string | null; description?: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; enabled?: boolean; deleted?: boolean; hog?: string; bytecode: unknown; transpiled: string | null; inputs_schema?: ({ type: "string" | "number" | "boolean" | "dictionary" | "choice" | "json" | "integration" | "integration_field" | "email" | "native_email" | "posthog_assignee" | "posthog_ticket_tags" | "posthog_business_hours" | "non_failure_status_codes" | "customer_analytics_account_properties" | "customer_analytics_account_relationships"; key: string; label?: string; choices?: ({ [key: string]: unknown })[]; searchable?: boolean; required?: boolean; default?: unknown; secret?: boolean; hidden?: boolean; description?: string; integration?: string; integration_key?: string; requires_field?: string; integration_field?: string; requiredScopes?: string; templating?: boolean | "hog" | "liquid" })[]; inputs?: { [key: string]: { value?: unknown; templating?: "hog" | "liquid"; bytecode: (unknown)[]; order: number; transpiled: unknown } | undefined }; filters?: { source?: "events" | "person-updates" | "data-warehouse-table"; actions?: ({ [key: string]: unknown })[]; events?: ({ [key: string]: unknown })[]; data_warehouse?: ({ [key: string]: unknown })[]; properties?: ({ [key: string]: unknown })[]; bytecode?: unknown; transpiled?: unknown; filter_test_accounts?: boolean; bytecode_error?: string }; masking?: { ttl: number; threshold?: number | null; hash: string; bytecode?: unknown } | null; mappings?: unknown[] | null; icon_url?: string | null; template: { id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null }; template_id?: string | null; status: { state: 0 | 1 | 2 | 3 | 11 | 12; tokens: number } | null; execution_order?: number | null; _create_in_folder?: string; batch_export_id: string | null; search_match_type: "exact" | "similar" | unknown })[]>; /** * List ingestion warnings * Tags: ingestion_warnings_v2 * Access as: posthog.ingestionWarningsV2List() */ ingestionWarningsV2List: () => Promise<({ type: string; category: string; severity: string; count: number; last_seen: string; sparkline: ({ timestamp: string; count: number })[]; samples: ({ timestamp: string; source: string; pipeline_step: string; event_uuid: string | null; distinct_id: string | null; person_id: string | null; group_key: string | null; details: { [key: string]: unknown } })[] })[]>; /** * * Tags: insight_variables * Access as: posthog.insightVariablesList() */ insightVariablesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown })[] }>; /** * * Tags: insight_variables * Access as: posthog.insightVariablesCreate() */ insightVariablesCreate: () => Promise<{ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown }>; /** * * Tags: insight_variables * Access as: posthog.insightVariablesRetrieve() */ insightVariablesRetrieve: () => Promise<{ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown }>; /** * * Tags: insight_variables * Access as: posthog.insightVariablesUpdate() */ insightVariablesUpdate: () => Promise<{ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown }>; /** * * Tags: insight_variables * Access as: posthog.insightVariablesPartialUpdate() */ insightVariablesPartialUpdate: () => Promise<{ id: string; name: string; type: "String" | "Number" | "Boolean" | "List" | "Date"; default_value?: unknown; created_by: number | null; created_at: string; code_name: string | null; values?: unknown }>; /** * * Tags: insight_variables * Access as: posthog.insightVariablesDestroy() */ insightVariablesDestroy: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsList() */ insightsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown })[] }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsCreate() */ insightsCreate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: insights * Access as: posthog.insightsSharingList() */ insightsSharingList: () => Promise<({ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] })[]>; /** * Create a new password for the sharing configuration. * Tags: insights * Access as: posthog.insightsSharingPasswordsCreate() */ insightsSharingPasswordsCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a password from the sharing configuration. * Tags: insights * Access as: posthog.insightsSharingPasswordsDestroy() */ insightsSharingPasswordsDestroy: () => Promise; /** * * Tags: insights * Access as: posthog.insightsSharingRefreshCreate() */ insightsSharingRefreshCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * * Tags: insights * Access as: posthog.insightsThresholdsList() */ insightsThresholdsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" }; alerts: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown })[] })[] }>; /** * * Tags: insights * Access as: posthog.insightsThresholdsRetrieve() */ insightsThresholdsRetrieve: () => Promise<{ id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" }; alerts: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; insight: number; name?: string; subscribed_users: (number)[]; threshold: { id: string; created_at: string; name?: string; configuration: { bounds?: { lower?: number | null; upper?: number | null } | null; type: "absolute" | "percentage" } }; condition?: { type: "absolute_value" | "relative_increase" | "relative_decrease" } | null; state: string; enabled?: boolean; last_notified_at: string | null; last_checked_at: string | null; next_check_at: string | null; checks: ({ id: string; created_at: string; calculated_value: number | null; state: "Firing" | "Not firing" | "Errored" | "Snoozed"; targets_notified: boolean; anomaly_scores: unknown; triggered_points: unknown; triggered_dates: unknown; interval: string | null; triggered_metadata: unknown; investigation_status: "pending" | "running" | "done" | "failed" | "skipped" | null; investigation_verdict: "true_positive" | "false_positive" | "inconclusive" | unknown; investigation_summary: string | null; investigation_notebook_short_id: string | null; notification_sent_at: string | null; notification_suppressed_by_agent: boolean })[]; checks_total: number | null; config?: { check_ongoing_interval?: boolean | null; series_index: number; type?: string } | { column?: string | null; evaluation: "last_row" | "first_row" | "any_row"; label_column?: string | null; type?: string } | { check_ongoing_interval?: boolean | null; funnel_step?: number | null; metric: "conversion_from_start" | "conversion_from_previous"; type?: string } | null; detector_config?: { detectors: ({ preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: { diffs_n?: number | null; lags_n?: number | null; smooth_n?: number | null } | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null })[]; operator: "and" | "or"; type?: string } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { multiplier?: number | null; preprocessing?: unknown | null; type?: string; window?: number | null } | { lower_bound?: number | null; preprocessing?: unknown | null; type?: string; upper_bound?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_estimators?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { method?: "largest" | "mean" | "median" | null; n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_bins?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { n_neighbors?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { kernel?: string | null; nu?: number | null; preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | { preprocessing?: unknown | null; threshold?: number | null; type?: string; window?: number | null } | null; calculation_interval?: "real_time" | "every_15_minutes" | "hourly" | "daily" | "weekly" | "monthly"; snoozed_until?: string | null; skip_weekend?: boolean | null; schedule_restriction?: { blocked_windows: ({ start: string; end: string })[] } | null; last_value: number | null; investigation_agent_enabled?: boolean; investigation_gates_notifications?: boolean; investigation_inconclusive_action?: "notify" | "suppress"; search_match_type: "exact" | "similar" | unknown })[] }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsRetrieve() */ insightsRetrieve: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsUpdate() */ insightsUpdate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsPartialUpdate() */ insightsPartialUpdate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; properties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | { type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ({ [key: string]: unknown })[]; timings?: ({ k: string; t: number })[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: ({ k: string; t: number })[] | null; total_median_conversion_time?: number | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: ({ path: string; value: number })[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null } | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: { id: string | number; type: "user" | "role" } | null; cohort?: { id: number; name: string } | null; description?: string | null; event: string; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ failure_count: number; key: string; success_count: number })[]; warnings?: (unknown)[] | null } | { count_query?: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value"; significant: boolean; stats_version?: number | null; variants: ({ absolute_exposure: number; count: number; exposure: number; key: string })[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; series?: number | null; source: unknown | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: unknown | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: (unknown)[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { assignee?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: unknown | null; description?: string | null; external_issues?: (unknown)[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: unknown | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | null; order?: number | null; deleted?: boolean; dashboards?: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; last_refresh: string | null; cache_target_age: string | null; next_allowed_client_refresh: string | null; result: unknown; hasMore: boolean | null; columns: unknown[] | null; created_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; description?: string | null; updated_at: string; tags?: (unknown)[]; favorited?: boolean; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_sample: boolean; effective_restriction_level: 21 | 37; effective_privilege_level: 21 | 37; user_access_level: string | null; timezone: string | null; is_cached: boolean; query_status: unknown; hogql: string | null; types: unknown[] | null; resolved_date_range: { [key: string]: unknown } | null; _create_in_folder?: string; alerts: (unknown)[]; last_viewed_at: string | null; search_match_type: "exact" | "similar" | unknown }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: insights * Access as: posthog.insightsDestroy() */ insightsDestroy: () => Promise; /** * Audit trail for a single insight — every change made to it, by whom, and when. Use this when you want the change history of a specific insight; use the project-wide activity endpoint for a broader view. * Tags: insights * Access as: posthog.insightsActivityRetrieve() */ insightsActivityRetrieve: () => Promise<{ results: ({ id: string; user: { [key: string]: unknown } | null; activity: string; scope: string; item_id: string; detail?: { id: string; changes?: ({ type: string; action: string; field: string; before: unknown; after: unknown })[]; merge?: { type: string; source: unknown; target: unknown }; trigger?: { job_type: string; job_id: string; payload: unknown }; name: string; short_id: string; type: string }; created_at: string })[]; next: string | null; previous: string | null; total_count: number }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsAnalyzeRetrieve() */ insightsAnalyzeRetrieve: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsSuggestionsRetrieve() */ insightsSuggestionsRetrieve: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsSuggestionsCreate() */ insightsSuggestionsCreate: () => Promise; /** * Project-wide audit trail across all insights — who created, edited, deleted, or restored insights, what changed (with before/after diffs), and when. Useful for surfacing what people (or agents) have been working on recently. * Tags: insights * Access as: posthog.insightsAllActivityRetrieve() */ insightsAllActivityRetrieve: () => Promise<{ results: ({ id: string; user: { [key: string]: unknown } | null; activity: string; scope: string; item_id: string; detail?: { id: string; changes?: ({ type: string; action: string; field: string; before: unknown; after: unknown })[]; merge?: { type: string; source: unknown; target: unknown }; trigger?: { job_type: string; job_id: string; payload: unknown }; name: string; short_id: string; type: string }; created_at: string })[]; next: string | null; previous: string | null; total_count: number }>; /** * Soft-delete insights in bulk by ID. Mirrors the single-insight delete: sets deleted=True, soft-deletes the insights' dashboard tiles, and removes their linked alerts. Insights the requester cannot edit are skipped and reported in `skipped`. Reversible via the bulk_restore endpoint. * Tags: insights * Access as: posthog.insightsBulkDeleteCreate() */ insightsBulkDeleteCreate: () => Promise<{ deleted: ({ id: number; name: string | null })[]; skipped: ({ id: number; reason: string })[] }>; /** * Restore soft-deleted insights in bulk by ID — the inverse of bulk_delete. Sets deleted=False and re-activates the insights' dashboard tiles on dashboards that still exist. Linked alerts are not restored (they are removed on delete). Insights the requester cannot edit are reported in `skipped`. * Tags: insights * Access as: posthog.insightsBulkRestoreCreate() */ insightsBulkRestoreCreate: () => Promise<{ restored: ({ id: number; name: string | null })[]; skipped: ({ id: number; reason: string })[] }>; /** * Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list * Tags: insights * Access as: posthog.insightsBulkUpdateTagsCreate() */ insightsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: number; tags: (string)[] })[]; skipped: ({ id: number; reason: string })[] }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: insights * Access as: posthog.insightsCancelCreate() */ insightsCancelCreate: () => Promise; /** * Generate an AI-suggested name and description for an insight based on its query configuration. * Tags: insights * Access as: posthog.insightsGenerateMetadataCreate() */ insightsGenerateMetadataCreate: () => Promise; /** * Returns basic details about the last 5 insights viewed by this user. Most recently viewed first. * Tags: insights * Access as: posthog.insightsMyLastViewedRetrieve() */ insightsMyLastViewedRetrieve: () => Promise; /** * Returns insights ranked by view count over the last N days (default 7), highest first. Each result includes the same metadata as the standard insights list, plus a `view_count` and up to 3 recent `viewers`. Useful for surfacing the most-used insights in a project. * Tags: insights * Access as: posthog.insightsTrendingRetrieve() */ insightsTrendingRetrieve: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; short_id: string; name?: string | null; derived_name?: string | null; query?: unknown; dashboards: (number)[]; dashboard_tiles: ({ id: number; dashboard_id: number; deleted?: boolean | null })[]; description?: string | null; last_refresh: string | null; refreshing: boolean; tags?: (unknown)[]; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string | null; last_modified_at?: string; favorited?: boolean; user_access_level: string | null; last_viewed_at: string | null; search_match_type: "exact" | "similar" | null; view_count: number; viewers: ({ id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | unknown })[]; last_modified_by: unknown })[] }>; /** * Record that the current user has just viewed one or more insights. Submitted ids that do not belong to the current project or that point at deleted insights are silently dropped. Returns 201 on success regardless of how many ids were retained. * Tags: insights * Access as: posthog.insightsViewedCreate() */ insightsViewedCreate: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsList() */ integrationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string })[] }>; /** * * Tags: integrations * Access as: posthog.integrationsCreate() */ integrationsCreate: () => Promise<{ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string }>; /** * * Tags: integrations * Access as: posthog.integrationsRetrieve() */ integrationsRetrieve: () => Promise<{ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string }>; /** * * Tags: integrations * Access as: posthog.integrationsDestroy() */ integrationsDestroy: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsAnthropicManagedAgentEnvsRetrieve() */ integrationsAnthropicManagedAgentEnvsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsAnthropicManagedAgentVaultsRetrieve() */ integrationsAnthropicManagedAgentVaultsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsAnthropicManagedAgentsRetrieve() */ integrationsAnthropicManagedAgentsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsChannelsRetrieve() */ integrationsChannelsRetrieve: () => Promise<{ channels: ({ id: string; name: string; is_private: boolean; is_member: boolean; is_ext_shared: boolean; is_private_without_access: boolean })[]; lastRefreshedAt?: string | null; has_more?: boolean }>; /** * * Tags: integrations * Access as: posthog.integrationsClickupListsRetrieve() */ integrationsClickupListsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsClickupSpacesRetrieve() */ integrationsClickupSpacesRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsClickupWorkspacesRetrieve() */ integrationsClickupWorkspacesRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsEmailPartialUpdate() */ integrationsEmailPartialUpdate: () => Promise<{ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string }>; /** * * Tags: integrations * Access as: posthog.integrationsEmailVerifyCreate() */ integrationsEmailVerifyCreate: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsGithubBranchesRetrieve() */ integrationsGithubBranchesRetrieve: () => Promise<{ branches: (string)[]; default_branch?: string | null; has_more: boolean }>; /** * * Tags: integrations * Access as: posthog.integrationsGithubReposRetrieve() */ integrationsGithubReposRetrieve: () => Promise<{ repositories: ({ id: number; name: string; full_name: string; private?: boolean; default_branch?: string; language?: string; pushed_at?: string; archived?: boolean; can_push?: boolean })[]; has_more: boolean }>; /** * * Tags: integrations * Access as: posthog.integrationsGithubReposRefreshCreate() */ integrationsGithubReposRefreshCreate: () => Promise<{ repositories: ({ id: number; name: string; full_name: string; private?: boolean; default_branch?: string; language?: string; pushed_at?: string; archived?: boolean; can_push?: boolean })[] }>; /** * * Tags: integrations * Access as: posthog.integrationsGithubTeamsRetrieve() */ integrationsGithubTeamsRetrieve: () => Promise<{ teams: ({ id: number; slug: string; name: string })[]; has_more: boolean }>; /** * * Tags: integrations * Access as: posthog.integrationsGoogleAccessibleAccountsRetrieve() */ integrationsGoogleAccessibleAccountsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsGoogleConversionActionsRetrieve() */ integrationsGoogleConversionActionsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsJiraProjectsRetrieve() */ integrationsJiraProjectsRetrieve: () => Promise<{ projects: ({ id: string; key: string; name: string })[] }>; /** * * Tags: integrations * Access as: posthog.integrationsLinearTeamsRetrieve() */ integrationsLinearTeamsRetrieve: () => Promise<{ teams: ({ id: string; name: string })[] }>; /** * * Tags: integrations * Access as: posthog.integrationsLinkedinAdsAccountsRetrieve() */ integrationsLinkedinAdsAccountsRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsLinkedinAdsConversionRulesRetrieve() */ integrationsLinkedinAdsConversionRulesRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsTwilioPhoneNumbersRetrieve() */ integrationsTwilioPhoneNumbersRetrieve: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsAuthorizeRetrieve() */ integrationsAuthorizeRetrieve: () => Promise; /** * Unified endpoint for generating Domain Connect apply URLs. Accepts a context ("email" or "proxy") and the relevant resource ID. The backend resolves the domain, template variables, and service ID based on context, then builds the signed apply URL. * Tags: integrations * Access as: posthog.integrationsDomainConnectApplyUrlCreate() */ integrationsDomainConnectApplyUrlCreate: () => Promise; /** * * Tags: integrations * Access as: posthog.integrationsDomainConnectCheckRetrieve() */ integrationsDomainConnectCheckRetrieve: () => Promise; /** * Reuse a GitHub installation already linked to a sibling team in the same organization. * Tags: integrations * Access as: posthog.integrationsGithubLinkExistingCreate() */ integrationsGithubLinkExistingCreate: () => Promise<{ id: number; kind: "anthropic" | "apns" | "aws-s3" | "azure-blob" | "bing-ads" | "clickup" | "customerio-app" | "customerio-track" | "customerio-webhook" | "databricks" | "email" | "firebase" | "github" | "gitlab" | "google-ads" | "google-analytics" | "google-cloud-service-account" | "google-cloud-storage" | "google-pubsub" | "google-search-console" | "google-sheets" | "hubspot" | "intercom" | "jira" | "linear" | "linkedin-ads" | "meta-ads" | "pinterest-ads" | "postgresql" | "reddit-ads" | "s3-compatible" | "salesforce" | "slack" | "slack-posthog-code" | "snapchat" | "snowflake" | "stripe" | "tiktok-ads" | "twilio" | "vercel"; config?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; errors: string; display_name: string }>; /** * Mint a User OAuth URL to bootstrap a fresh `code` when the install flow returns without one. * Tags: integrations * Access as: posthog.integrationsGithubOauthAuthorizeCreate() */ integrationsGithubOauthAuthorizeCreate: () => Promise<{ oauth_url: string }>; /** * Seed GitHub setup callback state without redirecting to GitHub. Used when the user opens an existing installation's settings on github.com (e.g. PostHog Code "Update in GitHub") so the subsequent Setup URL redirect can be validated. * Tags: integrations * Access as: posthog.integrationsGithubPrepareCallbackCreate() */ integrationsGithubPrepareCallbackCreate: () => Promise; /** * Notify project admins that a member is requesting an integration be connected. * Tags: integrations * Access as: posthog.integrationsRequestAccessCreate() */ integrationsRequestAccessCreate: () => Promise<{ success: boolean }>; /** * Preview what a given pin would resolve to, without saving it. * Tags: js-snippet * Access as: posthog.jsSnippetResolveRetrieve() */ jsSnippetResolveRetrieve: () => Promise<{ [key: string]: unknown }>; /** * Return the team's current version pin and resolved version. * Tags: js-snippet * Access as: posthog.jsSnippetVersionRetrieve() */ jsSnippetVersionRetrieve: () => Promise<{ [key: string]: unknown }>; /** * Update the team's version pin. * Tags: js-snippet * Access as: posthog.jsSnippetVersionPartialUpdate() */ jsSnippetVersionPartialUpdate: () => Promise<{ [key: string]: unknown }>; /** * Create, Read, Update and Delete breakpoints for live debugging. * Tags: live_debugger_breakpoints * Access as: posthog.liveDebuggerBreakpointsList() */ liveDebuggerBreakpointsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; repository?: string | null; filename: string; line_number: number; enabled?: boolean; condition?: string | null; created_at: string; updated_at: string })[] }>; /** * Create, Read, Update and Delete breakpoints for live debugging. * Tags: live_debugger_breakpoints * Access as: posthog.liveDebuggerBreakpointsCreate() */ liveDebuggerBreakpointsCreate: () => Promise<{ id: string; repository?: string | null; filename: string; line_number: number; enabled?: boolean; condition?: string | null; created_at: string; updated_at: string }>; /** * Create, Read, Update and Delete breakpoints for live debugging. * Tags: live_debugger_breakpoints * Access as: posthog.liveDebuggerBreakpointsRetrieve() */ liveDebuggerBreakpointsRetrieve: () => Promise<{ id: string; repository?: string | null; filename: string; line_number: number; enabled?: boolean; condition?: string | null; created_at: string; updated_at: string }>; /** * Create, Read, Update and Delete breakpoints for live debugging. * Tags: live_debugger_breakpoints * Access as: posthog.liveDebuggerBreakpointsUpdate() */ liveDebuggerBreakpointsUpdate: () => Promise<{ id: string; repository?: string | null; filename: string; line_number: number; enabled?: boolean; condition?: string | null; created_at: string; updated_at: string }>; /** * Create, Read, Update and Delete breakpoints for live debugging. * Tags: live_debugger_breakpoints * Access as: posthog.liveDebuggerBreakpointsPartialUpdate() */ liveDebuggerBreakpointsPartialUpdate: () => Promise<{ id: string; repository?: string | null; filename: string; line_number: number; enabled?: boolean; condition?: string | null; created_at: string; updated_at: string }>; /** * Create, Read, Update and Delete breakpoints for live debugging. * Tags: live_debugger_breakpoints * Access as: posthog.liveDebuggerBreakpointsDestroy() */ liveDebuggerBreakpointsDestroy: () => Promise; /** * Get active breakpoints (External API) * Tags: live_debugger_breakpoints * Access as: posthog.liveDebuggerBreakpointsActiveRetrieve() */ liveDebuggerBreakpointsActiveRetrieve: () => Promise<{ breakpoints: ({ id: string; repository?: string | null; filename: string; line_number: number; enabled: boolean; condition?: string | null })[] }>; /** * Get breakpoint hits * Tags: live_debugger_breakpoints * Access as: posthog.liveDebuggerBreakpointsBreakpointHitsRetrieve() */ liveDebuggerBreakpointsBreakpointHitsRetrieve: () => Promise<{ results: ({ id: string; lineNumber: number; functionName: string; timestamp: string; variables: { [key: string]: unknown }; stackTrace: (unknown)[]; breakpoint_id: string; filename: string })[]; count: number; has_more: boolean }>; /** * Team-level clustering configuration (event filters for automated pipelines). * Tags: llm_analytics * Access as: posthog.llmAnalyticsClusteringConfigList() */ llmAnalyticsClusteringConfigList: () => Promise<{ event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }>; /** * Team-level clustering configuration (event filters for automated pipelines). * Tags: llm_analytics * Access as: posthog.llmAnalyticsClusteringConfigSetEventFiltersCreate() */ llmAnalyticsClusteringConfigSetEventFiltersCreate: () => Promise<{ event_filters: ({ [key: string]: unknown })[]; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.llmAnalyticsClusteringJobsList() */ llmAnalyticsClusteringJobsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string })[] }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.llmAnalyticsClusteringJobsCreate() */ llmAnalyticsClusteringJobsCreate: () => Promise<{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.llmAnalyticsClusteringJobsRetrieve() */ llmAnalyticsClusteringJobsRetrieve: () => Promise<{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.llmAnalyticsClusteringJobsUpdate() */ llmAnalyticsClusteringJobsUpdate: () => Promise<{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.llmAnalyticsClusteringJobsPartialUpdate() */ llmAnalyticsClusteringJobsPartialUpdate: () => Promise<{ id: string; name: string; analysis_level: "trace" | "generation" | "evaluation"; event_filters?: unknown; enabled?: boolean; created_at: string; updated_at: string }>; /** * CRUD for clustering job configurations (max 10 per team). * Tags: llm_analytics * Access as: posthog.llmAnalyticsClusteringJobsDestroy() */ llmAnalyticsClusteringJobsDestroy: () => Promise; /** * Get the evaluation config for this team * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationConfigRetrieve() */ llmAnalyticsEvaluationConfigRetrieve: () => Promise<{ trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null } | null; created_at: string; updated_at: string }>; /** * Set the active provider key for evaluations * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationConfigSetActiveKeyCreate() */ llmAnalyticsEvaluationConfigSetActiveKeyCreate: () => Promise<{ trial_eval_limit: number; trial_evals_used: number; trial_evals_remaining: number; trial_grandfathered: boolean; trial_deprecation_date: string; active_provider_key: { id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null } | null; created_at: string; updated_at: string }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationReportsList() */ llmAnalyticsEvaluationReportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string })[] }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationReportsCreate() */ llmAnalyticsEvaluationReportsCreate: () => Promise<{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationReportsRetrieve() */ llmAnalyticsEvaluationReportsRetrieve: () => Promise<{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationReportsUpdate() */ llmAnalyticsEvaluationReportsUpdate: () => Promise<{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string }>; /** * CRUD for evaluation report configurations + report run history. * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationReportsPartialUpdate() */ llmAnalyticsEvaluationReportsPartialUpdate: () => Promise<{ id: string; evaluation: string; frequency?: "scheduled" | "every_n"; rrule?: string; starts_at: string | null; timezone_name: string; next_delivery_date: string | null; delivery_targets?: unknown; max_sample_size?: number; enabled?: boolean; deleted: boolean; last_delivered_at: string | null; report_prompt_guidance?: string; trigger_threshold?: number | null; cooldown_minutes?: number; daily_run_cap?: number; created_by: number | null; created_at: string }>; /** * Evaluation report configs are deleted only when their evaluation is deleted. Use PATCH enabled=false to stop delivery. * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationReportsDestroy() */ llmAnalyticsEvaluationReportsDestroy: () => Promise; /** * Trigger immediate report generation. * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationReportsGenerateCreate() */ llmAnalyticsEvaluationReportsGenerateCreate: () => Promise; /** * List report runs (history) for this report. * Tags: llm_analytics * Access as: posthog.llmAnalyticsEvaluationReportsRunsList() */ llmAnalyticsEvaluationReportsRunsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; report: string; content: unknown; metadata: unknown; period_start: string; period_end: string; delivery_status: "pending" | "delivered" | "partial_failure" | "failed"; delivery_errors: unknown; created_at: string })[] }>; /** * Generate an AI-powered summary of evaluation results. This endpoint analyzes evaluation runs and identifies patterns in passing and failing evaluations, providing actionable recommendations. Data is fetched server-side by evaluation ID to ensure data integrity. **Use Cases:** - Understand why evaluations are passing or failing - Identify systematic issues in LLM responses - Get recommendations for improving response quality - Review patterns across many evaluation runs at once * Tags: AI observability, llm_analytics * Access as: posthog.llmAnalyticsEvaluationSummaryCreate() */ llmAnalyticsEvaluationSummaryCreate: () => Promise<{ overall_assessment: string; pass_patterns: ({ title: string; description: string; frequency: string; example_generation_ids: (string)[] })[]; fail_patterns: ({ title: string; description: string; frequency: string; example_generation_ids: (string)[] })[]; na_patterns: (unknown)[]; recommendations: (string)[]; statistics: { total_analyzed: number; pass_count: number; fail_count: number; na_count: number } }>; /** * List available models for a provider. * Tags: llm_analytics * Access as: posthog.llmAnalyticsModelsRetrieve() */ llmAnalyticsModelsRetrieve: () => Promise<{ models: ({ id: string; posthog_available: boolean })[] }>; /** * * Tags: AI observability, llm_analytics * Access as: posthog.llmAnalyticsOfflineEvaluationsExperimentItemsCreate() */ llmAnalyticsOfflineEvaluationsExperimentItemsCreate: () => Promise<{ results: ((unknown)[])[] }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsParserRecipesList() */ llmAnalyticsParserRecipesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null })[] }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsParserRecipesCreate() */ llmAnalyticsParserRecipesCreate: () => Promise<{ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsParserRecipesRetrieve() */ llmAnalyticsParserRecipesRetrieve: () => Promise<{ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsParserRecipesPartialUpdate() */ llmAnalyticsParserRecipesPartialUpdate: () => Promise<{ id: string; name: string; source: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsParserRecipesDestroy() */ llmAnalyticsParserRecipesDestroy: () => Promise; /** * Validate LLM provider API keys without persisting them * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeyValidationsCreate() */ llmAnalyticsProviderKeyValidationsCreate: () => Promise<{ [key: string]: unknown }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysList() */ llmAnalyticsProviderKeysList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null })[] }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysCreate() */ llmAnalyticsProviderKeysCreate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysRetrieve() */ llmAnalyticsProviderKeysRetrieve: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysUpdate() */ llmAnalyticsProviderKeysUpdate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysPartialUpdate() */ llmAnalyticsProviderKeysPartialUpdate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysDestroy() */ llmAnalyticsProviderKeysDestroy: () => Promise; /** * Assign this key to evaluations and optionally re-enable them. * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysAssignCreate() */ llmAnalyticsProviderKeysAssignCreate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * Get evaluations using this key and alternative keys for replacement. * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysDependentConfigsRetrieve() */ llmAnalyticsProviderKeysDependentConfigsRetrieve: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysValidateCreate() */ llmAnalyticsProviderKeysValidateCreate: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * List enabled evaluations currently using trial credits for a given provider. * Tags: llm_analytics * Access as: posthog.llmAnalyticsProviderKeysTrialEvaluationsRetrieve() */ llmAnalyticsProviderKeysTrialEvaluationsRetrieve: () => Promise<{ id: string; provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; name: string; state: "unknown" | "ok" | "invalid" | "error"; error_message: string | null; api_key?: string; api_key_masked: string; azure_endpoint?: string; api_version?: string; azure_endpoint_display: string | null; api_version_display: string | null; set_as_active?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueueItemsList() */ llmAnalyticsReviewQueueItemsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number })[] }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueueItemsCreate() */ llmAnalyticsReviewQueueItemsCreate: () => Promise<{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueueItemsRetrieve() */ llmAnalyticsReviewQueueItemsRetrieve: () => Promise<{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueueItemsPartialUpdate() */ llmAnalyticsReviewQueueItemsPartialUpdate: () => Promise<{ id: string; queue_id: string; queue_name: string; trace_id: string; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueueItemsDestroy() */ llmAnalyticsReviewQueueItemsDestroy: () => Promise; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueuesList() */ llmAnalyticsReviewQueuesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number })[] }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueuesCreate() */ llmAnalyticsReviewQueuesCreate: () => Promise<{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueuesRetrieve() */ llmAnalyticsReviewQueuesRetrieve: () => Promise<{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueuesPartialUpdate() */ llmAnalyticsReviewQueuesPartialUpdate: () => Promise<{ id: string; name: string; pending_item_count: number; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsReviewQueuesDestroy() */ llmAnalyticsReviewQueuesDestroy: () => Promise; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsScoreDefinitionsList() */ llmAnalyticsScoreDefinitionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number })[] }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsScoreDefinitionsCreate() */ llmAnalyticsScoreDefinitionsCreate: () => Promise<{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsScoreDefinitionsRetrieve() */ llmAnalyticsScoreDefinitionsRetrieve: () => Promise<{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsScoreDefinitionsPartialUpdate() */ llmAnalyticsScoreDefinitionsPartialUpdate: () => Promise<{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsScoreDefinitionsNewVersionCreate() */ llmAnalyticsScoreDefinitionsNewVersionCreate: () => Promise<{ id: string; name: string; description: string; kind: "categorical" | "numeric" | "boolean"; archived: boolean; current_version: number; current_version_id: string | null; config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; created_at: string; updated_at: string | null; team: number }>; /** * Generate an AI-powered summary of an LLM trace or event. This endpoint analyzes the provided trace/event, generates a line-numbered text representation, and uses an LLM to create a concise summary with line references. **Two ways to use this endpoint:** 1. **By ID (recommended):** Pass `trace_id` or `generation_id` with an optional `date_from`/`date_to`. The backend fetches the data automatically. `summarize_type` is inferred. 2. **By data:** Pass the full trace/event data blob in `data` with `summarize_type`. This is how the frontend uses it. **Summary Format:** - Title (concise, max 10 words) - Mermaid flow diagram showing the main flow - 3-10 summary bullets with line references - "Interesting Notes" section for failures, successes, or unusual patterns - Line references in [L45] or [L45-52] format pointing to relevant sections The response includes the structured summary, the text representation, and metadata. * Tags: AI observability, llm_analytics * Access as: posthog.llmAnalyticsSummarizationCreate() */ llmAnalyticsSummarizationCreate: () => Promise<{ summary: { title: string; flow_diagram: string; summary_bullets: ({ text: string; line_refs: string })[]; interesting_notes: ({ text: string; line_refs: string })[] }; text_repr: string; metadata?: unknown }>; /** * Check which traces have cached summaries available. This endpoint allows batch checking of multiple trace IDs to see which ones have cached summaries. Returns only the traces that have cached summaries with their titles. **Use Cases:** - Load cached summaries on session view load - Avoid unnecessary LLM calls for already-summarized traces - Display summary previews without generating new summaries * Tags: AI observability, llm_analytics * Access as: posthog.llmAnalyticsSummarizationBatchCheckCreate() */ llmAnalyticsSummarizationBatchCheckCreate: () => Promise<{ summaries: ({ trace_id: string; title: string; cached?: boolean })[] }>; /** * Generate a human-readable text representation of an LLM trace event. This endpoint converts AI observability events ($ai_generation, $ai_span, $ai_embedding, or $ai_trace) into formatted text representations suitable for display, logging, or analysis. **Supported Event Types:** - `$ai_generation`: Individual LLM API calls with input/output messages - `$ai_span`: Logical spans with state transitions - `$ai_embedding`: Embedding generation events (text input → vector) - `$ai_trace`: Full traces with hierarchical structure **Options:** - `max_length`: Maximum character count (default: 2000000) - `truncated`: Enable middle-content truncation within events (default: true) - `truncate_buffer`: Characters at start/end when truncating (default: 1000) - `include_markers`: Use interactive markers vs plain text indicators (default: true) - Frontend: set true for `<<>>` markers - Backend/LLM: set false for `... (X chars truncated) ...` text - `collapsed`: Show summary vs full trace tree (default: false) - `include_hierarchy`: Include tree structure for traces (default: true) - `max_depth`: Maximum depth for hierarchical rendering (default: unlimited) - `tools_collapse_threshold`: Number of tools before auto-collapsing list (default: 5) - Tool lists >5 items show `<<>>` marker for frontend - Or `[+] AVAILABLE TOOLS: N` for backend when `include_markers: false` - `include_line_numbers`: Prefix each line with line number like L001:, L010: (default: false) **Use Cases:** - Frontend display: `truncated: true, include_markers: true, include_line_numbers: true` - Backend LLM context (summary): `truncated: true, include_markers: false, collapsed: true` - Backend LLM context (full): `truncated: false` The response includes the formatted text and metadata about the rendering. * Tags: AI observability, llm_analytics * Access as: posthog.llmAnalyticsTextReprCreate() */ llmAnalyticsTextReprCreate: () => Promise<{ text: string; metadata: { event_type?: string; event_id?: string; trace_id?: string; rendering: string; char_count: number; truncated: boolean; error?: string } }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsTraceReviewsList() */ llmAnalyticsTraceReviewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; reviewed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; scores: ({ id: string; definition_id: string; definition_name: string; definition_kind: string; definition_archived: boolean; definition_version_id: string; definition_version: number; definition_config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; categorical_values: unknown[] | null; numeric_value: string | null; boolean_value: boolean | null; created_at: string; updated_at: string | null })[]; team: number })[] }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsTraceReviewsCreate() */ llmAnalyticsTraceReviewsCreate: () => Promise<{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; reviewed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; scores: ({ id: string; definition_id: string; definition_name: string; definition_kind: string; definition_archived: boolean; definition_version_id: string; definition_version: number; definition_config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; categorical_values: unknown[] | null; numeric_value: string | null; boolean_value: boolean | null; created_at: string; updated_at: string | null })[]; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsTraceReviewsRetrieve() */ llmAnalyticsTraceReviewsRetrieve: () => Promise<{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; reviewed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; scores: ({ id: string; definition_id: string; definition_name: string; definition_kind: string; definition_archived: boolean; definition_version_id: string; definition_version: number; definition_config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; categorical_values: unknown[] | null; numeric_value: string | null; boolean_value: boolean | null; created_at: string; updated_at: string | null })[]; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsTraceReviewsPartialUpdate() */ llmAnalyticsTraceReviewsPartialUpdate: () => Promise<{ id: string; trace_id: string; trace_url: string; comment: string | null; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; reviewed_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; scores: ({ id: string; definition_id: string; definition_name: string; definition_kind: string; definition_archived: boolean; definition_version_id: string; definition_version: number; definition_config: { options: ({ key: string; label: string })[]; selection_mode?: "single" | "multiple"; min_selections?: number | null; max_selections?: number | null } | { min?: number | null; max?: number | null; step?: number | null } | { true_label?: string; false_label?: string }; categorical_values: unknown[] | null; numeric_value: string | null; boolean_value: boolean | null; created_at: string; updated_at: string | null })[]; team: number }>; /** * * Tags: llm_analytics * Access as: posthog.llmAnalyticsTraceReviewsDestroy() */ llmAnalyticsTraceReviewsDestroy: () => Promise; /** * Translate text to target language. * Tags: llm_analytics * Access as: posthog.llmAnalyticsTranslateCreate() */ llmAnalyticsTranslateCreate: () => Promise<{ [key: string]: unknown }>; /** * * Tags: llm_prompts * Access as: posthog.llmPromptsList() */ llmPromptsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; prompt: unknown; version: number; version_description: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[]; prompt_preview: string; prompt_size_bytes: number })[] }>; /** * * Tags: llm_prompts * Access as: posthog.llmPromptsCreate() */ llmPromptsCreate: () => Promise<{ id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }>; /** * * Tags: llm_prompts * Access as: posthog.llmPromptsNameRetrieve() */ llmPromptsNameRetrieve: () => Promise<{ id: string; name: string; prompt?: unknown; prompt_preview?: string; outline: ({ level: number; text: string })[]; version: number; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_prompts * Access as: posthog.llmPromptsNamePartialUpdate() */ llmPromptsNamePartialUpdate: () => Promise<{ id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }>; /** * * Tags: llm_prompts * Access as: posthog.llmPromptsNameArchiveCreate() */ llmPromptsNameArchiveCreate: () => Promise<{ id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }>; /** * * Tags: llm_prompts * Access as: posthog.llmPromptsNameDuplicateCreate() */ llmPromptsNameDuplicateCreate: () => Promise<{ id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }>; /** * * Tags: llm_prompts * Access as: posthog.llmPromptsResolveNameRetrieve() */ llmPromptsResolveNameRetrieve: () => Promise<{ prompt: { id: string; name: string; prompt: unknown; version: number; version_description?: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string; outline: ({ level: number; text: string })[] }; versions: ({ id: string; version: number; version_description: string | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; is_latest: boolean })[]; has_more: boolean }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsList() */ llmSkillsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string })[] }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsCreate() */ llmSkillsCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files?: ({ path: string; content: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsImportCreate() */ llmSkillsImportCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * Report whether the user already has a marketplace credential, without minting one. The token is unrecoverable, so an existing credential returns its mask only — the UI shows "already connected, existing setups keep working" and offers an explicit rotate. * Tags: llm_skills * Access as: posthog.llmSkillsMarketplaceInstallCommandRetrieve() */ llmSkillsMarketplaceInstallCommandRetrieve: () => Promise<{ status: "absent" | "exists" | "created" | "rotated"; connected: boolean; plugin_name: string; marketplace_name: string; label: string; repo_url: string; command: string | null; command_template: string; codex_command: string | null; codex_command_template: string; token: string | null; mask_value: string | null; created_at: string | null; last_rolled_at: string | null }>; /** * Mint the user's read-only marketplace credential (or rotate it) and return the install command. Per-user: rotating only ever invalidates this user's own credential, never a teammate's. * Tags: llm_skills * Access as: posthog.llmSkillsMarketplaceInstallCommandCreate() */ llmSkillsMarketplaceInstallCommandCreate: () => Promise<{ status: "absent" | "exists" | "created" | "rotated"; connected: boolean; plugin_name: string; marketplace_name: string; label: string; repo_url: string; command: string | null; command_template: string; codex_command: string | null; codex_command_template: string; token: string | null; mask_value: string | null; created_at: string | null; last_rolled_at: string | null }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNameRetrieve() */ llmSkillsNameRetrieve: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNamePartialUpdate() */ llmSkillsNamePartialUpdate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNameArchiveCreate() */ llmSkillsNameArchiveCreate: () => Promise; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNameDuplicateCreate() */ llmSkillsNameDuplicateCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNameExportRetrieve() */ llmSkillsNameExportRetrieve: () => Promise; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNameFilesCreate() */ llmSkillsNameFilesCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNameFilesRenameCreate() */ llmSkillsNameFilesRenameCreate: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNameFilesRetrieve() */ llmSkillsNameFilesRetrieve: () => Promise<{ path: string; content: string; content_type?: string }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsNameFilesDestroy() */ llmSkillsNameFilesDestroy: () => Promise<{ id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }>; /** * * Tags: llm_skills * Access as: posthog.llmSkillsResolveNameRetrieve() */ llmSkillsResolveNameRetrieve: () => Promise<{ skill: { id: string; name: string; description: string; body: string; license?: string; compatibility?: string; allowed_tools?: (string)[]; metadata?: { [key: string]: unknown }; category: string; files: ({ path: string; content_type?: string })[]; outline: ({ level: number; text: string })[]; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; deleted: boolean; is_latest: boolean; latest_version: number; version_count: number; first_version_created_at: string }; versions: ({ id: string; version: number; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; is_latest: boolean })[]; has_more: boolean }>; /** * * Tags: logs * Access as: posthog.logsAlertsList() */ logsAlertsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null })[] }>; /** * * Tags: logs * Access as: posthog.logsAlertsCreate() */ logsAlertsCreate: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsAlertsRetrieve() */ logsAlertsRetrieve: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsAlertsUpdate() */ logsAlertsUpdate: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsAlertsPartialUpdate() */ logsAlertsPartialUpdate: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsAlertsDestroy() */ logsAlertsDestroy: () => Promise; /** * Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically. * Tags: logs * Access as: posthog.logsAlertsDestinationsCreate() */ logsAlertsDestinationsCreate: () => Promise<{ hog_function_ids: (string)[] }>; /** * Delete a notification destination by deleting its HogFunction group atomically. * Tags: logs * Access as: posthog.logsAlertsDestinationsDeleteCreate() */ logsAlertsDestinationsDeleteCreate: () => Promise; /** * Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't change and there was no error) are filtered out since only the last 10 are kept and they carry no forensic value. Optional `?kind=...` narrows to a single kind. * Tags: logs * Access as: posthog.logsAlertsEventsList() */ logsAlertsEventsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; kind: "check" | "reset" | "enable" | "disable" | "snooze" | "unsnooze" | "threshold_change" | "broken_config"; state_before: string; state_after: string; threshold_breached: boolean; result_count: number | null; error_message: string | null; query_duration_ms: number | null })[] }>; /** * Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck. * Tags: logs * Access as: posthog.logsAlertsResetCreate() */ logsAlertsResetCreate: () => Promise<{ id: string; name?: string; enabled?: boolean; filters?: { filterGroup?: { type: "AND" | "OR"; values: ({ type: "AND" | "OR"; values: ({ type: unknown; values: (unknown | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] } | { key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] })[] } | null; serviceNames?: (string)[] | null; severityLevels?: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[] | null }; threshold_count?: number; threshold_operator?: "above" | "below"; window_minutes?: number; check_interval_minutes: number; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; evaluation_periods?: number; datapoints_to_alarm?: number; cooldown_minutes?: number; snooze_until?: string | null; next_check_at: string | null; last_notified_at: string | null; last_checked_at: string | null; consecutive_failures: number; last_error_message: string | null; state_timeline: ({ start: string; end: string; state: "not_firing" | "firing" | "pending_resolve" | "errored" | "snoozed" | "broken"; enabled: boolean })[]; destination_types: ("slack" | "webhook" | "teams")[]; first_enabled_at: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created. * Tags: logs * Access as: posthog.logsAlertsSimulateCreate() */ logsAlertsSimulateCreate: () => Promise<{ buckets: ({ timestamp: string; count: number; threshold_breached: boolean; state: string; notification: string; reason: string })[]; fire_count: number; resolve_count: number; total_buckets: number; threshold_count: number; threshold_operator: string }>; /** * * Tags: logs * Access as: posthog.logsAttributesRetrieve() */ logsAttributesRetrieve: () => Promise<{ results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }>; /** * * Tags: logs * Access as: posthog.logsCountCreate() */ logsCountCreate: () => Promise<{ count: number }>; /** * * Tags: logs * Access as: posthog.logsCountRangesCreate() */ logsCountRangesCreate: () => Promise<{ ranges: ({ date_from: string; date_to: string; count: number })[]; interval: string }>; /** * Explain a log entry using AI. POST /api/environments/:id/logs/explainLogWithAI/ * Tags: logs * Access as: posthog.logsExplainLogWithAiCreate() */ logsExplainLogWithAiCreate: () => Promise<{ uuid: string; timestamp: string; force_refresh?: boolean }>; /** * * Tags: logs * Access as: posthog.logsExportCreate() */ logsExportCreate: () => Promise<{ [key: string]: unknown }>; /** * * Tags: logs * Access as: posthog.logsFacetValuesCreate() */ logsFacetValuesCreate: () => Promise<{ results: ({ value: string; count: number })[] }>; /** * * Tags: logs * Access as: posthog.logsGroupByCreate() */ logsGroupByCreate: () => Promise<{ groups: ({ value: string; log_count: number; error_count: number; last_seen: string })[]; total_groups: number; total_logs: number; truncated: boolean }>; /** * * Tags: logs * Access as: posthog.logsHasLogsRetrieve() */ logsHasLogsRetrieve: () => Promise<{ [key: string]: unknown }>; /** * * Tags: logs * Access as: posthog.logsPatternsCreate() */ logsPatternsCreate: () => Promise<{ patterns: ({ pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; estimated_error_count: number; first_seen: string; last_seen: string; examples: ({ body: string; severity_text: string; service_name: string; timestamp: string })[]; services: (string)[]; sparkline: (number)[]; severity_counts: { [key: string]: number | undefined }; match_regex: string | null; match_literal: string | null })[]; scanned_count: number; total_count: number; sampled: boolean; sample_coverage_pct: number; sparkline_buckets: ({ start: string; end: string })[] }>; /** * * Tags: logs * Access as: posthog.logsPatternsDiffCreate() */ logsPatternsDiffCreate: () => Promise<{ entries: ({ classification: "new" | "rate_shift" | "gone" | "unchanged"; rate_ratio: number | null; pattern: { pattern: string; count: number; estimated_count: number; volume_share_pct: number; error_count: number; estimated_error_count: number; first_seen: string; last_seen: string; examples: ({ body: string; severity_text: string; service_name: string; timestamp: string })[]; services: (string)[]; sparkline: (number)[]; severity_counts: { [key: string]: number | undefined }; match_regex: string | null; match_literal: string | null }; baseline_estimated_count: number | null; baseline_volume_share_pct: number | null })[]; current: { scanned_count: number; total_count: number; sampled: boolean; sample_coverage_pct: number; date_from: string; date_to: string }; baseline: { scanned_count: number; total_count: number; sampled: boolean; sample_coverage_pct: number; date_from: string; date_to: string } }>; /** * * Tags: logs * Access as: posthog.logsQueryCreate() */ logsQueryCreate: () => Promise<{ query: { [key: string]: unknown }; results: ({ uuid: string; timestamp: string; observed_timestamp: string; body: string; severity_text: string; severity_number: number; level: string; trace_id: string; span_id: string; trace_flags?: number; attributes: { [key: string]: string | undefined }; resource_attributes: { [key: string]: string | undefined }; event_name?: string })[]; hasMore: boolean; nextCursor?: string | null; maxExportableLogs: number; columns?: unknown[] | null }>; /** * * Tags: logs * Access as: posthog.logsSamplingRulesList() */ logsSamplingRulesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null })[] }>; /** * * Tags: logs * Access as: posthog.logsSamplingRulesCreate() */ logsSamplingRulesCreate: () => Promise<{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsSamplingRulesRetrieve() */ logsSamplingRulesRetrieve: () => Promise<{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsSamplingRulesUpdate() */ logsSamplingRulesUpdate: () => Promise<{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsSamplingRulesPartialUpdate() */ logsSamplingRulesPartialUpdate: () => Promise<{ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsSamplingRulesDestroy() */ logsSamplingRulesDestroy: () => Promise; /** * Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired). * Tags: logs * Access as: posthog.logsSamplingRulesSimulateCreate() */ logsSamplingRulesSimulateCreate: () => Promise<{ estimated_reduction_pct: number; notes: string }>; /** * Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1). * Tags: logs * Access as: posthog.logsSamplingRulesReorderCreate() */ logsSamplingRulesReorderCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; enabled?: boolean; priority?: number | null; rule_type: "severity_sampling" | "path_drop" | "rate_limit"; scope_service?: string | null; scope_path_pattern?: string | null; scope_attribute_filters?: ({ [key: string]: unknown })[]; config: unknown; version: number; created_by: number; created_at: string; updated_at: string | null })[] }>; /** * * Tags: logs * Access as: posthog.logsServicesCreate() */ logsServicesCreate: () => Promise<{ services: ({ service_name: string; log_count: number; error_count: number; error_rate: number; volume_share_pct?: number; severity_breakdown?: { debug: number; info: number; warn: number; error: number }; active_rules?: ({ rule_id: string; rule_name: string; summary_string: string })[] })[]; sparkline: ({ time: string; service_name: string; count: number })[]; summary?: { top_services_count: number; top_services_volume_share_pct: number } }>; /** * * Tags: logs * Access as: posthog.logsSparklineCreate() */ logsSparklineCreate: () => Promise<{ results: ({ time: string; severity?: string; service?: string; count: number; bytes_uncompressed?: number })[] }>; /** * * Tags: logs * Access as: posthog.logsValuesRetrieve() */ logsValuesRetrieve: () => Promise<{ results: ({ id: string; name: string; count?: number })[]; refreshing: boolean }>; /** * * Tags: logs * Access as: posthog.logsViewsList() */ logsViewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null })[] }>; /** * * Tags: logs * Access as: posthog.logsViewsCreate() */ logsViewsCreate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsViewsRetrieve() */ logsViewsRetrieve: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsViewsUpdate() */ logsViewsUpdate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsViewsPartialUpdate() */ logsViewsPartialUpdate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * * Tags: logs * Access as: posthog.logsViewsDestroy() */ logsViewsDestroy: () => Promise; /** * Get all views associated with a specific managed viewset. GET /api/environments/{team_id}/managed_viewsets/{kind}/ * Tags: managed_viewsets * Access as: posthog.managedViewsetsRetrieve() */ managedViewsetsRetrieve: () => Promise; /** * Enable or disable a managed viewset by kind. PUT /api/environments/{team_id}/managed_viewsets/{kind}/ with body {"enabled": true/false} * Tags: managed_viewsets * Access as: posthog.managedViewsetsUpdate() */ managedViewsetsUpdate: () => Promise; /** * List conversion goals * Tags: marketing_analytics * Access as: posthog.marketingAnalyticsConversionGoalsRetrieve() */ marketingAnalyticsConversionGoalsRetrieve: () => Promise<{ goals: ({ id: string; name: string; kind: string; target_label: string; last_30d_count: number; integrated_count: number | null; events_without_utm_source: number | null; events_with_unmatched_utm_source: number | null; non_integrated_count: number | null; integrated_pct: number | null; is_misconfigured: boolean; misconfig_reason: string | null; is_approximate: boolean; approximation_reason: string | null })[]; attribution_window_days: number; attribution_mode: string; has_misconfigured: boolean }>; /** * List marketing data sources * Tags: marketing_analytics * Access as: posthog.marketingAnalyticsDataSourcesRetrieve() */ marketingAnalyticsDataSourcesRetrieve: () => Promise<{ integrations: ({ source_type: string; is_native: boolean; display_name: string; connected: boolean; last_sync_at: string | null; last_sync_status: string; last_error: string | null; rows_last_24h: number; rows_last_7d: number; sources_map_present: boolean; schema_columns_mapped: (string)[]; schema_columns_required_missing: (string)[]; required_tables: ({ table_name: string; present: boolean; should_sync: boolean; status: string | null; last_synced_at: string | null })[]; settings_url: string; schemas_url: string | null; diagnosis: string; fix_suggestion: string | null })[]; has_any_data: boolean; overall_status: string; issues_summary: (string)[] }>; /** * Diagnose marketing analytics * Tags: marketing_analytics * Access as: posthog.marketingAnalyticsDiagnoseRetrieve() */ marketingAnalyticsDiagnoseRetrieve: () => Promise<{ integrations: ({ integration_key: string; source_type: string; display_name: string; overall_status: string; diagnosis: string; data_source?: { source_type: string; is_native: boolean; display_name: string; connected: boolean; last_sync_at: string | null; last_sync_status: string; last_error: string | null; rows_last_24h: number; rows_last_7d: number; sources_map_present: boolean; schema_columns_mapped: (string)[]; schema_columns_required_missing: (string)[]; required_tables: ({ table_name: string; present: boolean; should_sync: boolean; status: string | null; last_synced_at: string | null })[]; settings_url: string; schemas_url: string | null; diagnosis: string; fix_suggestion: string | null } | null; attribution?: { integration_key: string; display_name: string; events_with_utm_last_7d: number; events_matched_last_7d: number; events_unmatched_likely_yours_last_7d: number; last_event_with_matching_utm_at: string | null; matched_pct: number; sample_unmatched_utm_sources: ({ raw_value: string; event_count: number; suggested_integration: string | null })[] } | null; recommended_actions: ({ title: string; detail: string; severity: string; target_tool: string | null })[] })[]; overall_status: string; summary: string; conversion_goals?: { goals: ({ id: string; name: string; kind: string; target_label: string; last_30d_count: number; integrated_count: number | null; events_without_utm_source: number | null; events_with_unmatched_utm_source: number | null; non_integrated_count: number | null; integrated_pct: number | null; is_misconfigured: boolean; misconfig_reason: string | null; is_approximate: boolean; approximation_reason: string | null })[]; attribution_window_days: number; attribution_mode: string; has_misconfigured: boolean } | null; recommended_actions: ({ title: string; detail: string; severity: string; target_tool: string | null })[] }>; /** * Explain a conversion goal * Tags: marketing_analytics * Access as: posthog.marketingAnalyticsExplainConversionGoalRetrieve() */ marketingAnalyticsExplainConversionGoalRetrieve: () => Promise<{ goal_id: string; goal_name: string; kind: string; period: { date_from: string | null; date_to: string | null }; total_count: number; integrated_count: number | null; events_without_utm_source: number | null; events_with_unmatched_utm_source: number | null; non_integrated_count: number | null; by_event: (unknown[])[]; by_utm_source: (unknown[])[]; by_matched_integration: (unknown[])[]; samples: ({ event_uuid: string; timestamp: string; distinct_id: string; utm_source: string | null; utm_campaign: string | null; matched_integration: string | null })[]; notes: (string)[] }>; /** * Suggest conversion goals * Tags: marketing_analytics * Access as: posthog.marketingAnalyticsSuggestConversionGoalsRetrieve() */ marketingAnalyticsSuggestConversionGoalsRetrieve: () => Promise<{ candidates: ({ event_name: string; last_30d_count: number; distinct_users_30d: number; pct_with_utm_source: number; pct_with_utm_campaign: number; top_utm_sources: (unknown[])[]; is_already_a_goal: boolean; suggestion_score: number; suggestion_reason: string })[]; lookback_days: number; excluded_events_count: number }>; /** * Suggest UTM source mappings * Tags: marketing_analytics * Access as: posthog.marketingAnalyticsSuggestUtmMappingsRetrieve() */ marketingAnalyticsSuggestUtmMappingsRetrieve: () => Promise<{ source_suggestions: ({ raw_utm_source: string; suggested_target: string; suggested_target_display_name: string; reason: string })[]; campaign_suggestions: ({ integration: string; integration_display_name: string; suggested_clean_name: string; raw_campaign_values: (string)[]; confidence: number; method: string; reason: string })[]; raw_unmatched_samples: ({ raw_utm_source: string; event_count: number; suggested_integration: string | null })[]; full_utm_source_catalogue: ({ raw_utm_source: string; event_count: number; matched_integration: string | null; matched_integration_display_name: string | null; suggested_integration: string | null })[]; current_mappings: ({ raw_utm_source: string; target: string; target_display_name: string; source: string })[]; total_unmatched_events_in_window: number; total_events_with_utm_in_window: number; lookback_days_used: number; notes: (string)[] }>; /** * * Tags: marketing_analytics * Access as: posthog.marketingAnalyticsTestMappingCreate() */ marketingAnalyticsTestMappingCreate: () => Promise; /** * Run UTM audit * Tags: marketing_analytics * Access as: posthog.marketingAnalyticsUtmAuditRetrieve() */ marketingAnalyticsUtmAuditRetrieve: () => Promise<{ total_campaigns: number; campaigns_with_issues: number; campaigns_without_issues: number; total_spend_at_risk: number; results: ({ campaign_name: string; campaign_id: string; source_name: string; spend: number; clicks: number; impressions: number; has_utm_events: boolean; event_count: number; issues: ({ field: string; severity: "error" | "warning"; message: string })[] })[]; all_utm_events: ({ utm_campaign: string; utm_source: string; event_count: number; campaign_match: "none" | "auto" | "mapped"; source_match: "none" | "auto" | "mapped"; matched_campaign: string | null })[] }>; /** * * Tags: max_tools * Access as: posthog.maxToolsCreateAndQueryInsightCreate() */ maxToolsCreateAndQueryInsightCreate: () => Promise<{ [key: string]: unknown }>; /** * List MCP feedback submissions for the current project, newest first. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsFeedbackList() */ mcpAnalyticsFeedbackList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; kind: "feedback" | "missing_capability"; goal: string; summary: string; category: string; blocked: boolean | null; attempted_tool: string; mcp_client_name: string; mcp_client_version: string; mcp_protocol_version: string; mcp_transport: string; mcp_session_id: string; mcp_trace_id: string; created_at: string; updated_at: string })[] }>; /** * Create a new MCP feedback submission for the current project. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsFeedbackCreate() */ mcpAnalyticsFeedbackCreate: () => Promise<{ id: string; kind: "feedback" | "missing_capability"; goal: string; summary: string; category: string; blocked: boolean | null; attempted_tool: string; mcp_client_name: string; mcp_client_version: string; mcp_protocol_version: string; mcp_transport: string; mcp_session_id: string; mcp_trace_id: string; created_at: string; updated_at: string }>; /** * Return the most recent intent cluster snapshot for the current project. Returns an empty IDLE snapshot when no clustering run has happened yet. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsIntentClustersRetrieve() */ mcpAnalyticsIntentClustersRetrieve: () => Promise<({ status: "idle" | "computing" | "error"; error_message: string; last_computed_at: string | null; last_computed_by_email: string; clusters: ({ id: number; label: string; intent_count: number; session_count: number; call_count: number; error_count: number; error_rate_pct: number; routing_entropy: number; tool_distribution: ({ tool: string; count: number; pct: number; errors: number; error_rate_pct: number })[]; sample_intents: (string)[]; journey: { paths: ({ steps: (string | null)[]; outcome: "completed" | "error"; count: number })[]; total_sessions: number; leak: { steps: (string | null)[]; outcome: "completed" | "error"; count: number } | null } | null })[]; computed_with: { distance_threshold: number; embedding_model: string; n_intents: number; n_clusters: number } | null })[]>; /** * Trigger an asynchronous recompute of the intent cluster snapshot. The task runs in the background; poll the GET endpoint for progress (status transitions to 'idle' or 'error'). * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsIntentClustersRecompute() */ mcpAnalyticsIntentClustersRecompute: () => Promise; /** * List missing capability reports for the current project, newest first. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsMissingCapabilitiesList() */ mcpAnalyticsMissingCapabilitiesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; kind: "feedback" | "missing_capability"; goal: string; summary: string; category: string; blocked: boolean | null; attempted_tool: string; mcp_client_name: string; mcp_client_version: string; mcp_protocol_version: string; mcp_transport: string; mcp_session_id: string; mcp_trace_id: string; created_at: string; updated_at: string })[] }>; /** * Create a new missing capability report for the current project. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsMissingCapabilitiesCreate() */ mcpAnalyticsMissingCapabilitiesCreate: () => Promise<{ id: string; kind: "feedback" | "missing_capability"; goal: string; summary: string; category: string; blocked: boolean | null; attempted_tool: string; mcp_client_name: string; mcp_client_version: string; mcp_protocol_version: string; mcp_transport: string; mcp_session_id: string; mcp_trace_id: string; created_at: string; updated_at: string }>; /** * List MCP sessions for the current project, derived by grouping $mcp_tool_call events by $mcp_session_id. Ordered by newest session start first by default. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsSessionsList() */ mcpAnalyticsSessionsList: () => Promise<{ results: ({ session_id: string; tool_calls: number; session_start: string; session_end: string; distinct_id_count: number; tools_used: (string)[]; mcp_client_name: string; distinct_id: string; person_email: string; person_name: string; intent: string })[]; has_next: boolean }>; /** * Generate (or return the cached) LLM summary of the agent's goal for a session, derived from its recorded $mcp_intents. The first call summarises and persists the result; subsequent calls return the stored summary. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsSessionsGenerateIntent() */ mcpAnalyticsSessionsGenerateIntent: () => Promise<{ session_id: string; intent: string }>; /** * List a page of the $mcp_tool_call events that belong to a given $session_id, in chronological order. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsSessionsToolCalls() */ mcpAnalyticsSessionsToolCalls: () => Promise<{ results: ({ event_id: string; timestamp: string; tool_name: string; intent: string; is_error: boolean; error_message: string; duration_ms: number | null })[]; has_next: boolean }>; /** * Aggregate counters, top tools, agent clients, and the most recent tool calls for the last 30 days, computed in one request. Powers the dashboard's activity view; always computed fresh so polling callers watch data arrive. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsSessionsActivityOverview() */ mcpAnalyticsSessionsActivityOverview: () => Promise<{ stats: { total_calls: number; distinct_tools: number; distinct_sessions: number; distinct_clients: number; calls_with_intent: number; error_calls: number; missing_capability_reports: number }; top_tools: ({ tool: string; calls: number; errors: number })[]; clients: ({ client: string; calls: number })[]; recent_calls: ({ timestamp: string; tool: string; intent: string | null; is_error: boolean; error_message: string | null; duration_ms: number | null; client_name: string | null })[] }>; /** * Generate (or return the cached) LLM digest of what agents are trying to do with this MCP server, derived from the most recent recorded $mcp_intents across all sessions. Content-addressed cache: only regenerates when new intents arrive. Powers the dashboard's low-volume activity stage. * Tags: mcp_analytics * Access as: posthog.mcpAnalyticsSessionsIntentDigest() */ mcpAnalyticsSessionsIntentDigest: () => Promise<{ digest: string | null; intent_count: number }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsList() */ mcpServerInstallationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null })[] }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsCreate() */ mcpServerInstallationsCreate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsRetrieve() */ mcpServerInstallationsRetrieve: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsUpdate() */ mcpServerInstallationsUpdate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsPartialUpdate() */ mcpServerInstallationsPartialUpdate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsDestroy() */ mcpServerInstallationsDestroy: () => Promise; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsProxyCreate() */ mcpServerInstallationsProxyCreate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * Escalate a personal installation to a team-wide shared one. Owner-only AND admin-only: sharing exposes the owner's credential to every project member and all autonomous agents, so it carries the same gate as creating a shared install outright. * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsShareCreate() */ mcpServerInstallationsShareCreate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsToolsRetrieve() */ mcpServerInstallationsToolsRetrieve: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; tool_name: string; display_name: string; description: string; input_schema: unknown; approval_state?: "approved" | "needs_approval" | "do_not_use"; last_seen_at: string; removed_at: string | null; created_at: string; updated_at: string | null })[] }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsToolsPartialUpdate() */ mcpServerInstallationsToolsPartialUpdate: () => Promise<{ id: string; tool_name: string; display_name: string; description: string; input_schema: unknown; approval_state?: "approved" | "needs_approval" | "do_not_use"; last_seen_at: string; removed_at: string | null; created_at: string; updated_at: string | null }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsToolsRefreshCreate() */ mcpServerInstallationsToolsRefreshCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; tool_name: string; display_name: string; description: string; input_schema: unknown; approval_state?: "approved" | "needs_approval" | "do_not_use"; last_seen_at: string; removed_at: string | null; created_at: string; updated_at: string | null })[] }>; /** * De-escalate a shared installation back to personal. Allowed for the credential owner OR a project admin (the reclaim path for shared credentials). The row always stays owned by the ORIGINAL owner — an admin unsharing someone else's install must not capture their credential. * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsUnshareCreate() */ mcpServerInstallationsUnshareCreate: () => Promise<{ id: string; template_id: string | null; name: string; icon_key: string; display_name?: string; url?: string; description?: string; auth_type?: "api_key" | "oauth"; is_enabled?: boolean; scope: "personal" | "shared"; is_owner: boolean; needs_reauth: boolean; pending_oauth: boolean; proxy_url: string; tool_count: number; created_at: string; updated_at: string | null }>; /** * Start (or re-start) an OAuth flow. Pass ``template_id`` to (re)connect a catalog template, or ``installation_id`` to reconnect an existing custom install using its cached metadata and per-user DCR creds. * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsAuthorizeRetrieve() */ mcpServerInstallationsAuthorizeRetrieve: () => Promise; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsInstallCustomCreate() */ mcpServerInstallationsInstallCustomCreate: () => Promise<{ redirect_url: string }>; /** * * Tags: mcp_server_installations * Access as: posthog.mcpServerInstallationsInstallTemplateCreate() */ mcpServerInstallationsInstallTemplateCreate: () => Promise<{ redirect_url: string }>; /** * Lists curated MCP server templates that users can install with one click. Templates are seeded by PostHog operators and carry shared, encrypted OAuth client credentials. Inactive templates are hidden from the catalog. * Tags: mcp_servers * Access as: posthog.mcpServersList() */ mcpServersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; url: string; docs_url?: string; description?: string; auth_type?: "api_key" | "oauth"; icon_key?: string; category?: "business" | "data" | "design" | "dev" | "infra" | "productivity" })[] }>; /** * Invoke an MCP tool by name. This endpoint allows MCP callers to invoke Max AI tools directly without going through the full LangChain conversation flow. Scopes are resolved dynamically per tool via dangerously_get_required_scopes. * Tags: mcp_tools * Access as: posthog.mcpToolsCreate() */ mcpToolsCreate: () => Promise<{ [key: string]: unknown }>; /** * Search PostHog documentation * Tags: docs, mcp_tools * Access as: posthog.docsSearch() */ docsSearch: () => Promise<{ content: string }>; /** * * Tags: messaging_templates * Access as: posthog.messagingTemplatesList() */ messagingTemplatesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean })[] }>; /** * * Tags: messaging_templates * Access as: posthog.messagingTemplatesCreate() */ messagingTemplatesCreate: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * * Tags: messaging_templates * Access as: posthog.messagingTemplatesRetrieve() */ messagingTemplatesRetrieve: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * * Tags: messaging_templates * Access as: posthog.messagingTemplatesUpdate() */ messagingTemplatesUpdate: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * * Tags: messaging_templates * Access as: posthog.messagingTemplatesPartialUpdate() */ messagingTemplatesPartialUpdate: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: messaging_templates * Access as: posthog.messagingTemplatesDestroy() */ messagingTemplatesDestroy: () => Promise; /** * * Tags: messaging_templates * Access as: posthog.messagingTemplatesDesignPartialUpdate() */ messagingTemplatesDesignPartialUpdate: () => Promise<{ id: string; name: string; description?: string; created_at: string; updated_at: string; content?: { templating?: "liquid"; email?: { subject?: string; text?: string; html?: string; design?: { counters?: { [key: string]: unknown }; schemaVersion: number; body: { id?: string; rows: ({ [key: string]: unknown })[]; headers?: ({ [key: string]: unknown })[]; footers?: ({ [key: string]: unknown })[]; values?: { [key: string]: unknown } } } } | null }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; type?: string; message_category?: string | null; deleted?: boolean }>; /** * Observed values for one metric attribute key, most frequent first. Backs the filter bar's value autocomplete. * Tags: metrics, metrics * Access as: posthog.metricsAttributeValuesRetrieve() */ metricsAttributeValuesRetrieve: () => Promise<{ results: ({ id: string; name: string; count: number })[] }>; /** * Distinct attribute keys seen on the team's metrics (datapoint and resource attributes merged), most frequent first. Backs the filter bar's key autocomplete. * Tags: metrics, metrics * Access as: posthog.metricsAttributesRetrieve() */ metricsAttributesRetrieve: () => Promise<{ results: ({ name: string })[]; count: number }>; /** * Characterize a metric anomaly: compare an anomaly window against a baseline, find the onset, and rank which label values moved. * Tags: metrics, metrics * Access as: posthog.metricsCharacterizeCreate() */ metricsCharacterizeCreate: () => Promise<{ metric_name: string; aggregation: string; interval: string; baseline_from: string; baseline_to: string; anomaly_from: string; anomaly_to: string; baseline_mean: number; baseline_stddev: number; anomaly_mean: number; anomaly_peak: number; change_ratio: number; direction: "up" | "down" | "flat"; onset_time: string | null; top_movers: ({ key: string; label: string; baseline_value: number; anomaly_value: number; change_ratio: number })[]; series: { labels: { [key: string]: string | undefined }; points: ({ time: string; value: number | null })[]; metric_name?: string | null; clause?: string | null } }>; /** * * Tags: metrics, metrics * Access as: posthog.metricsHasMetricsRetrieve() */ metricsHasMetricsRetrieve: () => Promise<{ hasMetrics: boolean }>; /** * * Tags: metrics, metrics * Access as: posthog.metricsQueryCreate() */ metricsQueryCreate: () => Promise<{ results: ({ labels: { [key: string]: string | undefined }; points: ({ time: string; value: number | null })[]; metric_name?: string | null; clause?: string | null })[] }>; /** * Raw individual emissions for a metric (the events model), newest first — backs the Samples view and the metric->trace pivot. * Tags: metrics, metrics * Access as: posthog.metricsSamplesCreate() */ metricsSamplesCreate: () => Promise<{ results: ({ timestamp: string; metric_name: string; metric_type: string; value: number; count: number; unit: string; aggregation_temporality: string; is_monotonic: boolean; service_name: string; trace_id: string; span_id: string; attributes: { [key: string]: string | undefined }; resource_attributes: { [key: string]: string | undefined } })[] }>; /** * Distinct metric names for the team. Backs the picker UI. * Tags: metrics, metrics * Access as: posthog.metricsValuesRetrieve() */ metricsValuesRetrieve: () => Promise<{ results: ({ name: string; metric_type: string })[] }>; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksList() */ notebooksList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; title: string | null; deleted: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; user_access_level: string | null; _create_in_folder?: string })[] }>; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksCreate() */ notebooksCreate: () => Promise<{ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; version?: number; deleted?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; user_access_level: string | null; parent_resource: { [key: string]: unknown } | null; _create_in_folder?: string }>; /** * * Tags: notebooks * Access as: posthog.notebooksSharingList() */ notebooksSharingList: () => Promise<({ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] })[]>; /** * Create a new password for the sharing configuration. * Tags: notebooks * Access as: posthog.notebooksSharingPasswordsCreate() */ notebooksSharingPasswordsCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a password from the sharing configuration. * Tags: notebooks * Access as: posthog.notebooksSharingPasswordsDestroy() */ notebooksSharingPasswordsDestroy: () => Promise; /** * * Tags: notebooks * Access as: posthog.notebooksSharingRefreshCreate() */ notebooksSharingRefreshCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksRetrieve() */ notebooksRetrieve: () => Promise<{ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; version?: number; deleted?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; user_access_level: string | null; parent_resource: { [key: string]: unknown } | null; _create_in_folder?: string }>; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksUpdate() */ notebooksUpdate: () => Promise<{ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; version?: number; deleted?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; user_access_level: string | null; parent_resource: { [key: string]: unknown } | null; _create_in_folder?: string }>; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksPartialUpdate() */ notebooksPartialUpdate: () => Promise<{ id: string; short_id: string; title?: string | null; content?: unknown; text_content?: string | null; version?: number; deleted?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; user_access_level: string | null; parent_resource: { [key: string]: unknown } | null; _create_in_folder?: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: notebooks * Access as: posthog.notebooksDestroy() */ notebooksDestroy: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksActivityRetrieve() */ notebooksActivityRetrieve: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksCollabMarkdownSaveCreate() */ notebooksCollabMarkdownSaveCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksCollabPresenceCreate() */ notebooksCollabPresenceCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksCollabSaveCreate() */ notebooksCollabSaveCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksCollabStreamRetrieve() */ notebooksCollabStreamRetrieve: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksHogqlExecuteCreate() */ notebooksHogqlExecuteCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksKernelConfigCreate() */ notebooksKernelConfigCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksKernelDataframeRetrieve() */ notebooksKernelDataframeRetrieve: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksKernelExecuteCreate() */ notebooksKernelExecuteCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksKernelExecuteStreamCreate() */ notebooksKernelExecuteStreamCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksKernelRestartCreate() */ notebooksKernelRestartCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksKernelStartCreate() */ notebooksKernelStartCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksKernelStatusRetrieve() */ notebooksKernelStatusRetrieve: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksKernelStopCreate() */ notebooksKernelStopCreate: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksAllActivityRetrieve() */ notebooksAllActivityRetrieve: () => Promise; /** * The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement. * Tags: notebooks * Access as: posthog.notebooksRecordingCommentsRetrieve() */ notebooksRecordingCommentsRetrieve: () => Promise; /** * * Tags: object_media_previews * Access as: posthog.objectMediaPreviewsList() */ objectMediaPreviewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_at: string; updated_at: string | null; media_url: string; media_type: string; metadata?: unknown; uploaded_media_id?: string | null; exported_asset_id?: string | null; event_definition_id?: string | null })[] }>; /** * * Tags: object_media_previews * Access as: posthog.objectMediaPreviewsCreate() */ objectMediaPreviewsCreate: () => Promise<{ id: string; created_at: string; updated_at: string | null; media_url: string; media_type: string; metadata?: unknown; uploaded_media_id?: string | null; exported_asset_id?: string | null; event_definition_id?: string | null }>; /** * * Tags: object_media_previews * Access as: posthog.objectMediaPreviewsRetrieve() */ objectMediaPreviewsRetrieve: () => Promise<{ id: string; created_at: string; updated_at: string | null; media_url: string; media_type: string; metadata?: unknown; uploaded_media_id?: string | null; exported_asset_id?: string | null; event_definition_id?: string | null }>; /** * * Tags: object_media_previews * Access as: posthog.objectMediaPreviewsUpdate() */ objectMediaPreviewsUpdate: () => Promise<{ id: string; created_at: string; updated_at: string | null; media_url: string; media_type: string; metadata?: unknown; uploaded_media_id?: string | null; exported_asset_id?: string | null; event_definition_id?: string | null }>; /** * * Tags: object_media_previews * Access as: posthog.objectMediaPreviewsPartialUpdate() */ objectMediaPreviewsPartialUpdate: () => Promise<{ id: string; created_at: string; updated_at: string | null; media_url: string; media_type: string; metadata?: unknown; uploaded_media_id?: string | null; exported_asset_id?: string | null; event_definition_id?: string | null }>; /** * * Tags: object_media_previews * Access as: posthog.objectMediaPreviewsDestroy() */ objectMediaPreviewsDestroy: () => Promise; /** * Get the preferred media preview for an event definition. Most recent user-uploaded, then most recent exported asset. Requires event_definition (query param). * Tags: object_media_previews * Access as: posthog.objectMediaPreviewsPreferredForEventRetrieve() */ objectMediaPreviewsPreferredForEventRetrieve: () => Promise<{ id: string; created_at: string; updated_at: string | null; media_url: string; media_type: string; metadata?: unknown; uploaded_media_id?: string | null; exported_asset_id?: string | null; event_definition_id?: string | null }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsList() */ personsList: () => Promise<{ next?: string | null; previous?: string | null; count?: number; results?: ({ id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null })[] }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsRetrieve() */ personsRetrieve: () => Promise<{ id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }>; /** * Only for setting properties on the person. "properties" from the request data will be updated via a "$set" event. This means that only the properties listed will be updated, but other properties won't be removed nor updated. If you would like to remove a property use the `delete_property` endpoint. * Tags: persons * Access as: posthog.personsUpdate() */ personsUpdate: () => Promise<{ id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsPartialUpdate() */ personsPartialUpdate: () => Promise<{ id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsActivityRetrieve() */ personsActivityRetrieve: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsDeletePropertyCreate() */ personsDeletePropertyCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsEmailsList() */ personsEmailsList: () => Promise<({ invocation_id: string; action_id: string; function_id: string; function_name: string; parent_run_id: string; kind: string; distinct_id: string; person_id: string; recipient: string; subject: string; status: string; sent_at: string })[]>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsPropertiesTimelineRetrieve() */ personsPropertiesTimelineRetrieve: () => Promise; /** * Split distinct_ids off a merged person. Two mutually exclusive modes: - **`distinct_ids_to_split`** (recommended for surgical edits): moves only the listed distinct_ids off this person onto new single-id persons. The original person keeps every other distinct_id and its properties. - **`main_distinct_id`**: keeps only the specified distinct_id on this person; moves every *other* distinct_id off onto its own new person. If omitted, the first distinct_id is kept. The original person always retains its properties. To clear individual properties afterward, use the `delete_property` endpoint. The split runs asynchronously: a 201 response means the task was enqueued. Newly-created split-off persons get a deterministic UUID derived from `(team_id, distinct_id)`, so they can be located client-side without polling. If you need to delete a split-off person after this call, prefer looking it up by that deterministic UUID rather than by distinct_id, since the latter still resolves to the original merged person until the async task completes. * Tags: persons * Access as: posthog.personsSplitCreate() */ personsSplitCreate: () => Promise<{ success: boolean }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsUpdatePropertyCreate() */ personsUpdatePropertyCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsAllActivityRetrieve() */ personsAllActivityRetrieve: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsBatchByDistinctIdsCreate() */ personsBatchByDistinctIdsCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsBatchByUuidsCreate() */ personsBatchByUuidsCreate: () => Promise; /** * This endpoint allows you to bulk delete persons, either by the PostHog person IDs or by distinct IDs. You can pass in a maximum of 1000 IDs per call. Only events captured before the request will be deleted. * Tags: persons * Access as: posthog.personsBulkDeleteCreate() */ personsBulkDeleteCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsCohortsRetrieve() */ personsCohortsRetrieve: () => Promise; /** * List the status of queued event deletions for persons. When you delete a person with `delete_events=true`, an async deletion is queued. Use this endpoint to check whether those deletions are still pending or have been completed. * Tags: persons * Access as: posthog.personsDeletionStatusList() */ personsDeletionStatusList: () => Promise<{ next?: string | null; previous?: string | null; count?: number; results?: ({ person_uuid: string; created_at: string; status: string; delete_verified_at: string | null })[] }>; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsFunnelRetrieve() */ personsFunnelRetrieve: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsFunnelCreate() */ personsFunnelCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsLifecycleRetrieve() */ personsLifecycleRetrieve: () => Promise; /** * Get person properties as they existed at a specific point in time. This endpoint reconstructs person properties by querying ClickHouse events for $set and $set_once operations up to the specified timestamp. Query parameters: - distinct_id: The distinct_id of the person - timestamp: ISO datetime string for the point in time (e.g., "2023-06-15T14:30:00Z") - include_set_once: Whether to handle $set_once operations (default: false) * Tags: persons, persons * Access as: posthog.personsPropertiesAtTimeRetrieve() */ personsPropertiesAtTimeRetrieve: () => Promise<{ id: number; name: string; distinct_ids: (string)[]; properties: { [key: string]: string | null | undefined }; created_at: string; uuid: string; last_seen_at: string | null; point_in_time_metadata: { queried_timestamp: string; include_set_once: boolean; distinct_id_used: string | null; person_id_used: string | null; query_mode: string; distinct_ids_queried: (string)[]; distinct_ids_count: number } }>; /** * Reset a distinct_id for a deleted person. This allows the distinct_id to be used again. * Tags: persons * Access as: posthog.personsResetPersonDistinctIdCreate() */ personsResetPersonDistinctIdCreate: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsTrendsRetrieve() */ personsTrendsRetrieve: () => Promise; /** * This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs. * Tags: persons * Access as: posthog.personsValuesRetrieve() */ personsValuesRetrieve: () => Promise; /** * * Tags: plugin_configs * Access as: posthog.pluginConfigsLogsList() */ pluginConfigsLogsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; team_id: number; plugin_id: number; plugin_config_id: number; timestamp: string; source: "SYSTEM" | "PLUGIN" | "CONSOLE"; type: "DEBUG" | "LOG" | "INFO" | "WARN" | "ERROR"; message: string; instance_id: string })[] }>; /** * * Tags: product_enablement * Access as: posthog.productEnablementCreate() */ productEnablementCreate: () => Promise<{ results: { [key: string]: string | undefined } }>; /** * * Tags: product_tours * Access as: posthog.productToursList() */ productToursList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; internal_targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; targeting_flag_filters: { [key: string]: unknown } | null; content?: unknown; draft_content: unknown; has_draft: boolean; auto_launch?: boolean; start_date?: string | null; end_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; updated_at: string; archived?: boolean; search_match_type: "exact" | "similar" | unknown })[] }>; /** * * Tags: product_tours * Access as: posthog.productToursCreate() */ productToursCreate: () => Promise<{ id: string; name: string; description?: string; internal_targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; targeting_flag_filters?: unknown; content?: unknown; auto_launch?: boolean; start_date?: string | null; end_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; updated_at: string; archived?: boolean; creation_context?: "app" | "toolbar" }>; /** * * Tags: product_tours * Access as: posthog.productToursRetrieve() */ productToursRetrieve: () => Promise<{ id: string; name: string; description?: string; internal_targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; targeting_flag_filters: { [key: string]: unknown } | null; content?: unknown; draft_content: unknown; has_draft: boolean; auto_launch?: boolean; start_date?: string | null; end_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; updated_at: string; archived?: boolean; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: product_tours * Access as: posthog.productToursUpdate() */ productToursUpdate: () => Promise<{ id: string; name: string; description?: string; internal_targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; targeting_flag_filters: { [key: string]: unknown } | null; content?: unknown; draft_content: unknown; has_draft: boolean; auto_launch?: boolean; start_date?: string | null; end_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; updated_at: string; archived?: boolean; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: product_tours * Access as: posthog.productToursPartialUpdate() */ productToursPartialUpdate: () => Promise<{ id: string; name: string; description?: string; internal_targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; targeting_flag_filters?: unknown; content?: unknown; auto_launch?: boolean; start_date?: string | null; end_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; updated_at: string; archived?: boolean; creation_context?: "app" | "toolbar" }>; /** * * Tags: product_tours * Access as: posthog.productToursDestroy() */ productToursDestroy: () => Promise; /** * Discard draft content. * Tags: product_tours * Access as: posthog.productToursDiscardDraftDestroy() */ productToursDiscardDraftDestroy: () => Promise<{ id: string; name: string; description?: string; internal_targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; targeting_flag_filters: { [key: string]: unknown } | null; content?: unknown; draft_content: unknown; has_draft: boolean; auto_launch?: boolean; start_date?: string | null; end_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; updated_at: string; archived?: boolean; search_match_type: "exact" | "similar" | unknown }>; /** * Save draft content (server-side merge). No side effects triggered. * Tags: product_tours * Access as: posthog.productToursDraftPartialUpdate() */ productToursDraftPartialUpdate: () => Promise<{ id: string; name: string; description?: string; internal_targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; targeting_flag_filters: { [key: string]: unknown } | null; content?: unknown; draft_content: unknown; has_draft: boolean; auto_launch?: boolean; start_date?: string | null; end_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; updated_at: string; archived?: boolean; search_match_type: "exact" | "similar" | unknown }>; /** * Lightweight polling endpoint for draft change detection. * Tags: product_tours * Access as: posthog.productToursDraftStatusRetrieve() */ productToursDraftStatusRetrieve: () => Promise<{ updated_at: string; has_draft: boolean }>; /** * Generate tour step content using AI. * Tags: product_tours * Access as: posthog.productToursGenerateCreate() */ productToursGenerateCreate: () => Promise<{ steps: ({ step_id: string; title: string; description: string })[] }>; /** * Commit draft to live tour. Runs full validation and triggers side effects. Accepts an optional body payload. If provided, merges it into the draft before publishing so the caller can save + publish in a single request. * Tags: product_tours * Access as: posthog.productToursPublishDraftCreate() */ productToursPublishDraftCreate: () => Promise<{ id: string; name: string; description?: string; internal_targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; targeting_flag_filters: { [key: string]: unknown } | null; content?: unknown; draft_content: unknown; has_draft: boolean; auto_launch?: boolean; start_date?: string | null; end_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; updated_at: string; archived?: boolean; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: project_secret_api_keys * Access as: posthog.projectSecretApiKeysList() */ projectSecretApiKeysList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] })[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.projectSecretApiKeysCreate() */ projectSecretApiKeysCreate: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.projectSecretApiKeysRetrieve() */ projectSecretApiKeysRetrieve: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.projectSecretApiKeysUpdate() */ projectSecretApiKeysUpdate: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.projectSecretApiKeysPartialUpdate() */ projectSecretApiKeysPartialUpdate: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * * Tags: project_secret_api_keys * Access as: posthog.projectSecretApiKeysDestroy() */ projectSecretApiKeysDestroy: () => Promise; /** * Roll a project secret API key * Tags: project_secret_api_keys * Access as: posthog.projectSecretApiKeysRollCreate() */ projectSecretApiKeysRollCreate: () => Promise<{ id: string; label: string; value: string; mask_value: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; last_used_at: string | null; last_rolled_at: string | null; scopes: (string)[] }>; /** * Get all property access control rules for a property definition. * Tags: property_access_controls * Access as: posthog.propertyAccessControlsRetrieve() */ propertyAccessControlsRetrieve: () => Promise<{ access_controls: ({ id: string; access_level: "read_write" | "read" | "none"; organization_member: string | null; role: string | null; created_by: number | null; created_at: string; updated_at: string })[]; available_access_levels: (string)[]; default_access_level: string }>; /** * Create or update a property access control rule. * Tags: property_access_controls * Access as: posthog.propertyAccessControlsCreate() */ propertyAccessControlsCreate: () => Promise<{ id: string; access_level: "read_write" | "read" | "none"; organization_member: string | null; role: string | null; created_by: number | null; created_at: string; updated_at: string }>; /** * Delete a property access control rule. The rule is identified by `property_definition_id` plus an optional `organization_member` or `role` query parameter. Omitting both targets deletes the default rule. * Tags: property_access_controls * Access as: posthog.propertyAccessControlsDestroy() */ propertyAccessControlsDestroy: () => Promise; /** * * Tags: property_definitions * Access as: posthog.propertyDefinitionsList() */ propertyDefinitionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string | null; tags?: (unknown)[]; is_numerical: boolean; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_seen_on_filtered_events: boolean | null; property_type?: "DateTime" | "String" | "Numeric" | "Boolean" | "Duration" | "" | null; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; hidden?: boolean | null })[] }>; /** * * Tags: property_definitions * Access as: posthog.propertyDefinitionsRetrieve() */ propertyDefinitionsRetrieve: () => Promise<{ id: string; name: string; description?: string | null; tags?: (unknown)[]; is_numerical: boolean; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_seen_on_filtered_events: boolean | null; property_type?: "DateTime" | "String" | "Numeric" | "Boolean" | "Duration" | "" | null; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; hidden?: boolean | null }>; /** * * Tags: property_definitions * Access as: posthog.propertyDefinitionsUpdate() */ propertyDefinitionsUpdate: () => Promise<{ id: string; name: string; description?: string | null; tags?: (unknown)[]; is_numerical: boolean; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_seen_on_filtered_events: boolean | null; property_type?: "DateTime" | "String" | "Numeric" | "Boolean" | "Duration" | "" | null; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; hidden?: boolean | null }>; /** * * Tags: property_definitions * Access as: posthog.propertyDefinitionsPartialUpdate() */ propertyDefinitionsPartialUpdate: () => Promise<{ id: string; name: string; description?: string | null; tags?: (unknown)[]; is_numerical: boolean; updated_at: string; updated_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; is_seen_on_filtered_events: boolean | null; property_type?: "DateTime" | "String" | "Numeric" | "Boolean" | "Duration" | "" | null; verified?: boolean; verified_at: string | null; verified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; hidden?: boolean | null }>; /** * * Tags: property_definitions * Access as: posthog.propertyDefinitionsDestroy() */ propertyDefinitionsDestroy: () => Promise; /** * Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list * Tags: property_definitions * Access as: posthog.propertyDefinitionsBulkUpdateTagsCreate() */ propertyDefinitionsBulkUpdateTagsCreate: () => Promise<{ updated: ({ id: number; tags: (string)[] })[]; skipped: ({ id: number; reason: string })[] }>; /** * Allows a caller to provide a list of event names and a single property name Returns a map of the event names to a boolean representing whether that property has ever been seen with that event_name * Tags: property_definitions * Access as: posthog.propertyDefinitionsSeenTogetherRetrieve() */ propertyDefinitionsSeenTogetherRetrieve: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: query * Access as: posthog.queryCreate() */ queryCreate: () => Promise<{ [key: string]: unknown }>; /** * (Experimental) * Tags: query * Access as: posthog.queryRetrieve() */ queryRetrieve: () => Promise<{ query_status: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } }>; /** * (Experimental) * Tags: query * Access as: posthog.queryDestroy() */ queryDestroy: () => Promise; /** * Get query log details from query_log_archive table for a specific query_id, the query must have been issued in last 24 hours. * Tags: query * Access as: posthog.queryLogRetrieve() */ queryLogRetrieve: () => Promise<{ [key: string]: unknown }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: query * Access as: posthog.queryCreateWithKind() */ queryCreateWithKind: () => Promise; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: query * Access as: posthog.queryCheckAuthForAsyncCreate() */ queryCheckAuthForAsyncCreate: () => Promise<{ [key: string]: unknown }>; /** * DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized. * Tags: query * Access as: posthog.queryDraftSqlRetrieve() */ queryDraftSqlRetrieve: () => Promise<{ [key: string]: unknown }>; /** * Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version. * Tags: query * Access as: posthog.queryUpgradeCreate() */ queryUpgradeCreate: () => Promise<{ query: { custom_name?: string | null; event?: string | null; fixedProperties?: ({ key: string; label?: string | null; operator?: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi" | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: "exact" | "is_not" | "icontains" | "not_icontains" | "regex" | "not_regex" | "gt" | "gte" | "lt" | "lte" | "is_set" | "is_not_set" | "is_date_exact" | "is_date_before" | "is_date_after" | "between" | "not_between" | "min" | "max" | "in" | "not_in" | "is_cleaned_path_exact" | "flag_evaluates_to" | "semver_eq" | "semver_neq" | "semver_gt" | "semver_gte" | "semver_lt" | "semver_lte" | "semver_tilde" | "semver_caret" | "semver_wildcard" | "icontains_multi" | "not_icontains_multi"; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null; kind?: string; limit?: number | null; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: ({ key: string; label?: string | null; operator?: unknown | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: "tag_name" | "text" | "href" | "selector"; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { cohort_name?: string | null; key?: string; label?: string | null; operator?: unknown | null; type?: string; value: number } | { key: "duration" | "active_seconds" | "inactive_seconds" | string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { group_key_names?: { [key: string]: string | undefined } | null; group_type_index?: number | null; key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator?: string; type?: string; value: boolean | string } | { key: string; label?: string | null; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { type?: string } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "log" | "log_attribute" | "log_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type: "span" | "span_attribute" | "span_resource_attribute"; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null } | { key: string; label?: string | null; operator: unknown; type?: string; value?: (string | number | boolean)[] | string | number | boolean | null })[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: "total" | "dau" | "weekly_active" | "monthly_active" | "unique_session" | "first_time_for_user" | "first_matching_event_for_user" | "total" | "first_time_for_user" | "first_time_for_user_with_filters" | "avg" | "sum" | "min" | "max" | "median" | "p75" | "p90" | "p95" | "p99" | "avg_count_per_actor" | "min_count_per_actor" | "max_count_per_actor" | "median_count_per_actor" | "p75_count_per_actor" | "p90_count_per_actor" | "p95_count_per_actor" | "p99_count_per_actor" | "total" | "sum" | "unique_session" | "min" | "max" | "avg" | "dau" | "unique_group" | "hogql" | "total" | "dau" | string | string | null; math_group_type_index?: 0 | 1 | 2 | 3 | 4 | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: { property?: string | null; static?: "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" | null } | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: "AND" | "OR"; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null } | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null } | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null } | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: ({ type: "AND" | "OR"; values: ({ type: unknown; values: ({ type: unknown; values: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] })[] } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: { bounceRateDurationSeconds?: number | null; bounceRatePageViewMode?: "count_pageviews" | "uniq_urls" | "uniq_page_screen_autocaptures" | null; convertToProjectTimezone?: boolean | null; customChannelTypeRules?: ({ channel_type: string; combiner: unknown; id: string; items: ({ id: string; key: "utm_source" | "utm_medium" | "utm_campaign" | "referring_domain" | "url" | "pathname" | "hostname"; op: "exact" | "is_not" | "is_set" | "is_not_set" | "icontains" | "not_icontains" | "regex" | "not_regex"; value?: string | (string)[] | null })[] })[] | null; dataWarehouseEventsModifiers?: ({ distinct_id_field: string; id_field: string; table_name: string; timestamp_field: string })[] | null; debug?: boolean | null; forceClickhouseDataSkippingIndexes?: (string)[] | null; formatCsvAllowDoubleQuotes?: boolean | null; inCohortVia?: "auto" | "leftjoin" | "subquery" | "leftjoin_conjoined" | null; inlineCohortCalculation?: "off" | "auto" | "always" | null; materializationMode?: "auto" | "legacy_null_as_string" | "legacy_null_as_null" | "disabled" | null; materializedColumnsOptimizationMode?: "disabled" | "optimized" | null; optimizeJoinedFilters?: boolean | null; optimizeProjections?: boolean | null; parserMode?: "cpp_only" | "cpp_with_rust_shadow" | "cpp_with_rust_py_shadow" | "rust_with_cpp_shadow" | "rust_only" | "rust_py_only" | "rust_py_with_cpp_shadow" | null; personsArgMaxVersion?: "auto" | "v1" | "v2" | null; personsJoinMode?: "inner" | "left" | null; personsOnEventsMode?: "disabled" | "person_id_no_override_properties_on_events" | "person_id_override_properties_on_events" | "person_id_override_properties_joined" | null; propertyGroupsMode?: "enabled" | "disabled" | "optimized" | null; pushDownPredicates?: boolean | null; s3TableUseInvalidColumns?: boolean | null; sessionIdPushdown?: boolean | null; sessionPropertyPreAggregation?: boolean | null; sessionTableVersion?: "auto" | "v1" | "v2" | "v3" | null; sessionsV2JoinMode?: "string" | "uuid" | null; timings?: boolean | null; useMaterializedViews?: boolean | null; usePreaggregatedIntermediateResults?: boolean | null; usePreaggregatedTableTransforms?: boolean | null; useWebAnalyticsPreAggregatedTables?: boolean | null } | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: { date_from: string; date_to: string } | null; resolved_date_range?: { date_from: string; date_to: string } | null; results: ((unknown)[])[]; timings?: ({ k: string; t: number })[] | null; types: (string)[]; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; select: (string)[]; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: { complete?: boolean | null; dashboard_id?: number | null; end_time?: string | null; error?: boolean | null; error_code?: string | null; error_message?: string | null; expiration_time?: string | null; id: string; insight_id?: number | null; labels?: (string)[] | null; pickup_time?: string | null; query_async?: boolean; query_progress?: { active_cpu_time: number; bytes_read: number; estimated_rows_total: number; rows_read: number; time_elapsed: number } | null; results?: unknown; start_time?: string | null; task_id?: string | null; team_id: number } | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: ({ k: string; t: number })[] | null; types?: (string)[] | null; warnings?: ({ message: string; schema_name: string; source_id?: string | null; source_type: string; status: string; table_name: string; type?: string } | { message: string; resources: (string)[]; type?: string })[] | null } | null; series?: number | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | { type: unknown; values: (unknown)[] } | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | unknown)[]; tags?: { name?: string | null; productKey?: string | null; scene?: string | null } | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | { [key: string]: { assignmentBy?: string; color?: "preset-1" | "preset-2" | "preset-3" | "preset-4" | "preset-5" | "preset-6" | "preset-7" | "preset-8" | "preset-9" | "preset-10" | "preset-11" | "preset-12" | "preset-13" | "preset-14" | "preset-15" | null; hidden?: boolean | null } | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: { breakdown?: string | (string | number)[] | number | null; breakdown_group_type_index?: number | null; breakdown_hide_other_aggregation?: boolean | null; breakdown_histogram_bin_count?: number | null; breakdown_limit?: number | null; breakdown_normalize_url?: boolean | null; breakdown_path_cleaning?: boolean | null; breakdown_type?: "cohort" | "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "data_warehouse" | "data_warehouse_person_property" | "revenue_analytics" | null; breakdowns?: ({ group_type_index?: number | null; histogram_bin_count?: number | null; normalize_url?: boolean | null; property: string | number; type?: "person" | "event" | "event_metadata" | "group" | "session" | "hogql" | "cohort" | "revenue_analytics" | "data_warehouse" | "data_warehouse_person_property" | null })[] | null } | null; compareFilter?: { compare?: boolean | null; compare_to?: string | null } | null; dataColorTheme?: number | null; dateRange?: { date_from?: string | null; date_to?: string | null; daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] | null; excludeIncompletePeriods?: boolean | null; explicitDate?: boolean | null } | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: { curve?: "linear" | "smooth" | null } | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: ({ borderColor?: string | null; displayIfCrossed?: boolean | null; displayLabel?: boolean | null; label: string; position?: "start" | "end" | null; value: number })[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: "top" | "bottom" | "left" | "right" | null; resultCustomizations?: { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: ({ custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; nodes: (unknown | unknown | unknown)[]; operator: unknown; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | unknown | { aggregation_target_field: string; custom_name?: string | null; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: "Auto" | "ActionsLineGraph" | "ActionsBar" | "ActionsUnstackedBar" | "ActionsStackedBar" | "ActionsAreaGraph" | "ActionsLineGraphCumulative" | "BoldNumber" | "Metric" | "ActionsPie" | "ActionsBarValue" | "ActionsTable" | "WorldMap" | "CalendarHeatmap" | "TwoDimensionalHeatmap" | "BoxPlot" | "SlopeGraph" | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: { aggregation_target_field?: string | null; custom_name?: string | null; id?: string | number | null; kind?: "ActionsNode" | "EventsNode" | null; name?: string | null; order?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; table_name?: string | null; timestamp_field?: string | null; type?: "actions" | "events" | "data_warehouse" | "new_entity" | "groups" | null; uuid?: string | null } | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelsFilter?: { binCount?: number | null; breakdownAttributionType?: "first_touch" | "last_touch" | "all_events" | "step" | null; breakdownAttributionValue?: number | null; breakdownSorting?: string | null; chartStyle?: unknown | null; customAggregationTarget?: boolean | null; exclusions?: ({ custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null } | { custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; funnelFromStep: number; funnelToStep: number; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; version?: number | null })[] | null; funnelAggregateByHogQL?: string | null; funnelFromStep?: number | null; funnelOrderType?: "strict" | "unordered" | "ordered" | null; funnelStepReference?: "total" | "previous" | null; funnelToStep?: number | null; funnelVizType?: "steps" | "time_to_convert" | "trends" | "flow" | null; funnelWindowInterval?: number | null; funnelWindowIntervalUnit?: "second" | "minute" | "hour" | "day" | "week" | "month" | null; goalLines?: (unknown)[] | null; hiddenLegendBreakdowns?: (string)[] | null; hideIncompleteConversionWindowPeriods?: boolean | null; layout?: "horizontal" | "vertical" | null; legendPosition?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; showAnnotations?: boolean | null; showLegend?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; useUdf?: boolean | null } | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; total_median_conversion_time?: number | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; version?: number | null }; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: "value" | "position" | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: { assignmentBy?: string; color?: unknown | null; hidden?: boolean | null } | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | { aggregation_target_field: string; created_at_field: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: { actionId: number } | { customEventName: string } | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: { denominator?: number | null; numerator: number } | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: { denominator?: number | null; numerator: number } | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: ("Visitors" | "Views" | "AvgTimeOnPage" | "Clicks" | "BounceRate" | "AverageScrollPercentage" | "ScrollGt80Percentage" | "TotalConversions" | "UniqueConversions" | "ConversionRate" | "ConvertingUsers" | "RageClicks" | "DeadClicks" | "Errors" | "ASC" | "DESC")[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: "pre_aggregated" | "lazy_precompute" | "live" | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: { enabled?: boolean | null; forceSamplingRate?: unknown | null } | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; source?: { breakdown?: string | (string)[] | number | null; compare?: "current" | "previous" | null; day?: string | number | null; includeRecordings?: boolean | null; interval?: number | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; series?: number | null; source: { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; calendarHeatmapFilter?: { bucketBySessionStart?: boolean | null } | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { boxplot_data?: ({ day: string; label: string; max: number; mean: number; median: number; min: number; p25: number; p75: number; series_index?: number | null; series_label?: string | null })[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown | unknown)[]; tags?: unknown | null; trendsFilter?: { aggregationAxisFormat?: "numeric" | "duration" | "duration_ms" | "percentage" | "percentage_scaled" | "currency" | "short" | null; aggregationAxisPostfix?: string | null; aggregationAxisPrefix?: string | null; breakdown_histogram_bin_count?: number | null; chartStyle?: unknown | null; confidenceLevel?: number | null; decimalPlaces?: number | null; detailedResultsAggregationType?: "total" | "average" | "median" | null; display?: unknown | null; excludeBoxPlotOutliers?: boolean | null; formula?: string | null; formulaNodes?: ({ custom_name?: string | null; formula: string })[] | null; formulas?: (string)[] | null; goalLines?: (unknown)[] | null; hiddenLegendIndexes?: (number)[] | null; hideWeekends?: boolean | null; legendPosition?: unknown | null; metricChangeDecreaseColor?: string | null; metricChangeIncreaseColor?: string | null; metricColorByDirection?: boolean | null; metricLineDecreaseColor?: string | null; metricLineIncreaseColor?: string | null; metricShowChange?: boolean | null; metricSummary?: "total" | "average" | "latest" | null; minDecimalPlaces?: number | null; movingAverageIntervals?: number | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showAlertThresholdLines?: boolean | null; showAnnotations?: boolean | null; showConfidenceIntervals?: boolean | null; showLabelsOnSeries?: boolean | null; showLegend?: boolean | null; showMovingAverage?: boolean | null; showMultipleYAxes?: boolean | null; showPercentStackView?: boolean | null; showTrendLines?: boolean | null; showValuesOnSeries?: boolean | null; smoothingIntervals?: number | null; stackBreakdownValues?: boolean | null; xAxisLabel?: string | null; yAxisLabel?: string | null; yAxisScaleType?: "log10" | "linear" | null } | null; version?: number | null } | unknown | { aggregation_group_type_index?: number | null; breakdownFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ breakdown_value?: string | number | null; date: string; label: string; values: ({ aggregation_value?: number | null; count: number; label?: string | null })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; retentionFilter: { aggregationProperty?: string | null; aggregationPropertyType?: "event" | "person" | "data_warehouse" | null; aggregationType?: "count" | "sum" | "avg" | null; chartStyle?: unknown | null; cohortLabelStartIndex?: number | null; cumulative?: boolean | null; customAggregationTarget?: boolean | null; dashboardDisplay?: "table_only" | "graph_only" | "all" | null; display?: unknown | null; goalLines?: (unknown)[] | null; meanRetentionCalculation?: "simple" | "weighted" | "none" | null; minimumOccurrences?: number | null; period?: "Hour" | "Day" | "Week" | "Month" | null; retentionCustomBrackets?: (number)[] | null; retentionReference?: "total" | "previous" | null; retentionType?: "retention_recurring" | "retention_first_time" | "retention_first_ever_occurrence" | null; returningEntity?: unknown | null; selectedInterval?: number | null; showTrendLines?: boolean | null; targetEntity?: unknown | null; timeWindowMode?: "strict_calendar_dates" | "24_hour_windows" | null; totalIntervals?: number | null }; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; funnelPathsFilter?: { funnelPathType?: "funnel_path_before_step" | "funnel_path_between_steps" | "funnel_path_after_step" | null; funnelSource: unknown; funnelStep?: number | null } | null; kind?: string; modifiers?: unknown | null; pathsFilter: { edgeLimit?: number | null; endPoint?: string | null; excludeEvents?: (string)[] | null; includeEventTypes?: ("$pageview" | "$screen" | "custom_event" | "hogql")[] | null; localPathCleaningFilters?: ({ alias?: string | null; order?: number | null; regex?: string | null })[] | null; maxEdgeWeight?: number | null; minEdgeWeight?: number | null; pathDropoffKey?: string | null; pathEndKey?: string | null; pathGroupings?: (string)[] | null; pathReplacements?: boolean | null; pathStartKey?: string | null; pathsHogQLExpression?: string | null; showFullUrls?: boolean | null; startPoint?: string | null; stepLimit?: number | null }; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ average_conversion_time: number; source: string; target: string; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; intervalCount?: number | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; stickinessFilter?: { chartStyle?: unknown | null; computedAs?: "non_cumulative" | "cumulative" | null; display?: unknown | null; hiddenLegendIndexes?: (number)[] | null; legendPosition?: unknown | null; resultCustomizationBy?: unknown | null; resultCustomizations?: { [key: string]: unknown | undefined } | { [key: string]: unknown | undefined } | null; showLegend?: boolean | null; showMultipleYAxes?: boolean | null; showValuesOnSeries?: boolean | null; stickinessCriteria?: { operator: "gte" | "lte" | "exact"; value: number } | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; customAggregationTarget?: boolean | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; lifecycleFilter?: { legendPosition?: unknown | null; showLegend?: boolean | null; showPercentagesOnSeries?: boolean | null; showValuesOnSeries?: boolean | null; stacked?: boolean | null; toggledLifecycles?: ("new" | "resurrecting" | "returning" | "dormant")[] | null } | null; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; breakdownBy: "Page" | "InitialPage" | "ExitPage" | "ExitClick" | "PreviousPage" | "ScreenName" | "InitialChannelType" | "InitialReferringDomain" | "InitialReferringURL" | "InitialUTMSource" | "InitialUTMCampaign" | "InitialUTMMedium" | "InitialUTMTerm" | "InitialUTMContent" | "InitialUTMSourceMediumCampaign" | "Browser" | "OS" | "Viewport" | "DeviceType" | "Country" | "Region" | "City" | "Timezone" | "Language" | "FrustrationMetrics"; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeAvgTimeOnPage?: boolean | null; includeBounceRate?: boolean | null; includeHost?: boolean | null; includeRevenue?: boolean | null; includeScrollDepth?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; isIncreaseBad?: boolean | null; key: string; kind: "unit" | "duration_s" | "percentage" | "currency"; previous?: number | null; value?: number | null })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null }; status?: string | null; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null } | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: { compare?: unknown | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; funnelTrendsDropOff?: boolean | null; funnelTrendsEntrancePeriodStart?: string | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: unknown; tags?: unknown | null; version?: number | null }; version?: number | null }; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: "increase" | "decrease" | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null }; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: "increase" | "decrease" | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | { custom_name?: string | null; data_warehouse_join_key: string; events_join_key: string; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; table_name: string; timestamp_field: string; version?: number | null })[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: { ignore_zeros?: boolean | null; lower_bound_percentile?: number | null; upper_bound_percentile?: number | null } | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null }; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null } | null; breakdown_results?: ({ baseline: { covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; step_counts?: (number)[] | null; step_sessions?: (({ event_uuid: string; person_id: string; session_id: string; timestamp: string })[])[] | null; sum: number; sum_squares: number; validation_failures?: ("not-enough-exposures" | "baseline-mean-is-zero" | "not-enough-metric-data")[] | null }; breakdown_value: (string | number | number)[]; variants: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; ignore_zeros?: boolean | null; isSharedMetric?: boolean | null; kind?: string; lower_bound_percentile?: number | null; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; source: unknown | unknown | unknown; threshold?: number | null; upper_bound_percentile?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; funnel_order_type?: unknown | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; series: (unknown | unknown | unknown)[]; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; conversion_window?: number | null; conversion_window_unit?: unknown | null; denominator: unknown | unknown | unknown; denominator_outlier_handling?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; numerator: unknown | unknown | unknown; numerator_outlier_handling?: unknown | null; response?: { [key: string]: unknown } | null; sharedMetricId?: number | null; uuid?: string | null; version?: number | null } | { breakdownFilter?: unknown | null; completion_event: unknown | unknown | unknown; conversion_window?: number | null; conversion_window_unit?: unknown | null; fingerprint?: string | null; goal?: unknown | null; isSharedMetric?: boolean | null; kind?: string; metric_type?: string; name?: string | null; response?: { [key: string]: unknown } | null; retention_window_end: number; retention_window_start: number; retention_window_unit: unknown; sharedMetricId?: number | null; start_event: unknown | unknown | unknown; start_handling: "first_seen" | "last_seen"; uuid?: string | null; version?: number | null } | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value" | null; significant?: boolean | null; stats_version?: number | null; variant_results?: ({ confidence_interval?: (number)[] | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; p_value?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | ({ chance_to_win?: number | null; covariate_sum?: number | null; covariate_sum_product?: number | null; covariate_sum_squares?: number | null; credible_interval?: (number)[] | null; denominator_sum?: number | null; denominator_sum_squares?: number | null; key: string; method?: string; number_of_samples: number; numerator_denominator_sum_product?: number | null; significant?: boolean | null; step_counts?: (number)[] | null; step_sessions?: ((unknown)[])[] | null; sum: number; sum_squares: number; validation_failures?: (unknown)[] | null })[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: ({ end?: number | null; fix?: string | null; message: string; start?: number | null })[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | unknown | { kind?: string; response?: { breakdown?: ({ label: string; value: string | number })[] | null; breakdowns?: ({ values: ({ label: string; value: string | number })[] })[] | null; compare?: ({ label: string; value: string })[] | null; day?: ({ label: string; value: string | string | number })[] | null; interval?: ({ label: string; value: number })[] | null; series?: ({ label: string; value: number })[] | null; status?: ({ label: string; value: string })[] | null; warnings?: (unknown)[] | null } | null; source: unknown | unknown | { funnelCorrelationPersonConverted?: boolean | null; funnelCorrelationPersonEntity?: unknown | unknown | unknown | null; funnelCorrelationPropertyValues?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; response?: unknown | null; source: { funnelCorrelationEventExcludePropertyNames?: (string)[] | null; funnelCorrelationEventNames?: (string)[] | null; funnelCorrelationExcludeEventNames?: (string)[] | null; funnelCorrelationExcludeNames?: (string)[] | null; funnelCorrelationNames?: (string)[] | null; funnelCorrelationType: "events" | "properties" | "event_with_properties"; kind?: string; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { events: ({ correlation_type: "success" | "failure"; event: { elements: (unknown)[]; event: string; properties: { [key: string]: unknown } }; failure_count: number; odds_ratio: number; success_count: number })[]; skewed: boolean }; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; source: unknown; version?: number | null }; tags?: unknown | null; version?: number | null } | { compare?: unknown | null; day?: string | number | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; operator?: unknown | null; response?: unknown | null; series?: number | null; source: unknown; tags?: unknown | null; version?: number | null } | { exposureConfig?: { event: string; kind?: string; properties: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[]; response?: { [key: string]: unknown } | null; version?: number | null } | unknown | null; featureFlagKey?: string | null; funnelStep?: number | null; funnelStepBreakdown?: number | string | number | (number | string | number)[] | null; includeRecordings?: boolean | null; kind?: string; modifiers?: unknown | null; multipleVariantHandling?: "exclude" | "first_seen" | null; response?: unknown | null; source: { experiment_id?: number | null; kind?: string; metric: unknown | unknown | unknown | unknown; modifiers?: unknown | null; name?: string | null; precomputation_mode?: "precomputed" | "direct" | null; response?: { baseline?: unknown | null; breakdown_results?: ({ baseline: unknown; breakdown_value: (string | number | number)[]; variants: (unknown)[] | (unknown)[] })[] | null; clickhouse_sql?: string | null; credible_intervals?: { [key: string]: (number)[] | undefined } | null; hogql?: string | null; insight?: ({ [key: string]: unknown })[] | null; is_precomputed?: boolean | null; kind?: string; metric?: unknown | unknown | unknown | unknown | null; p_value?: number | null; probability?: { [key: string]: number | undefined } | null; significance_code?: "significant" | "not_enough_exposure" | "low_win_probability" | "high_loss" | "high_p_value" | null; significant?: boolean | null; stats_version?: number | null; variant_results?: (unknown)[] | (unknown)[] | null; variants?: ({ absolute_exposure: number; count: number; exposure: number; key: string })[] | ({ failure_count: number; key: string; success_count: number })[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null }; tags?: unknown | null; version?: number | null }; version?: number | null } | { after?: string | null; before?: string | null; kind?: string; modifiers?: unknown | null; personId?: string | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ events: ({ distinct_id: string; elements: ({ attr_class?: (string)[] | null; attr_id?: string | null; attributes: { [key: string]: string | undefined }; href?: string | null; nth_child?: number | null; nth_of_type?: number | null; order?: number | null; tag_name: string; text?: string | null })[]; elements_chain?: string | null; event: string; id: string; person?: { distinct_ids: (string)[]; is_identified?: boolean | null; properties: { [key: string]: unknown } } | null; person_id?: string | null; person_mode?: string | null; properties: { [key: string]: unknown }; timestamp: string; uuid?: string | null })[]; recording_duration_s?: number | null; sessionId?: string | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | { connectionId?: string | null; explain?: boolean | null; filters?: { dateRange?: unknown | null; filterTestAccounts?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null } | null; kind?: string; modifiers?: unknown | null; name?: string | null; query: string; response?: { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: { ch_table_names?: (string)[] | null; errors: (unknown)[]; isUsingIndices?: "undecisive" | "no" | "partial" | "yes" | null; isValid?: boolean | null; notices: (unknown)[]; query?: string | null; table_names?: (string)[] | null; warnings: (unknown)[] } | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sendRawQuery?: boolean | null; tags?: unknown | null; values?: { [key: string]: unknown } | null; variables?: { [key: string]: { code_name: string; isNull?: boolean | null; value?: unknown; variableId: string } | undefined } | null; version?: number | null } | { connectionId?: string | null; debug?: boolean | null; filters?: unknown | null; globals?: { [key: string]: unknown } | null; kind?: string; language: "hog" | "hogJson" | "hogQL" | "hogQLExpr" | "hogTemplate" | "liquid"; modifiers?: unknown | null; query: string; response?: unknown | null; sourceQuery?: unknown | unknown | { cohort?: number | null; distinctId?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; search?: string | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; actionSteps?: ({ event?: string | null; href?: string | null; href_matching?: "contains" | "exact" | "regex" | null | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; selector?: string | null; tag_name?: string | null; text?: string | null; text_matching?: "contains" | "exact" | "regex" | null | null; url?: string | null; url_matching?: "contains" | "exact" | "regex" | null | null })[] | null; after?: string | null; before?: string | null; event?: string | null; events?: (string)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; source?: unknown | null; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { actionId?: number | null; after?: string | null; before?: string | null; event?: string | null; eventProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; filterTestAccounts?: boolean | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; select: (string)[]; tags?: unknown | null; version?: number | null; where?: (string)[] | null } | { fixedProperties?: (unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: unknown | null; search?: string | null; select?: (string)[] | null; source?: unknown | unknown | unknown | unknown | unknown | unknown | null; tags?: unknown | null; version?: number | null } | { group_type_index: number; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; properties?: (unknown | unknown)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tags?: unknown | null; version?: number | null } | unknown | { kind?: string; response?: { breakdown?: (unknown)[] | null; breakdowns?: ({ values: (unknown)[] })[] | null; compare?: ({ label: string; value: string })[] | null; day?: ({ label: string; value: string | string | number })[] | null; interval?: ({ label: string; value: number })[] | null; series?: ({ label: string; value: number })[] | null; status?: ({ label: string; value: string })[] | null; warnings?: (unknown)[] | null } | null; source: unknown | unknown | unknown | unknown | unknown; version?: number | null } | { after?: string | null; before?: string | null; kind?: string; modifiers?: unknown | null; personId?: string | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ events: ({ distinct_id: string; elements: ({ attr_class?: (string)[] | null; attr_id?: string | null; attributes: { [key: string]: string | undefined }; href?: string | null; nth_child?: number | null; nth_of_type?: number | null; order?: number | null; tag_name: string; text?: string | null })[]; elements_chain?: string | null; event: string; id: string; person?: { distinct_ids: (string)[]; is_identified?: boolean | null; properties: { [key: string]: unknown } } | null; person_id?: string | null; person_mode?: string | null; properties: { [key: string]: unknown }; timestamp: string; uuid?: string | null })[]; recording_duration_s?: number | null; sessionId?: string | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { code?: string | null; kind?: string; modifiers?: unknown | null; response?: { bytecode?: (unknown)[] | null; coloredBytecode?: (unknown)[] | null; results: unknown; stdout?: string | null } | null; tags?: unknown | null; version?: number | null } | unknown | { connectionId?: string | null; debug?: boolean | null; filters?: unknown | null; globals?: { [key: string]: unknown } | null; kind?: string; language: "hog" | "hogJson" | "hogQL" | "hogQLExpr" | "hogTemplate" | "liquid"; modifiers?: unknown | null; query: string; response?: unknown | null; sourceQuery?: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { connectionId?: string | null; endPosition: number; filters?: unknown | null; globals?: { [key: string]: unknown } | null; kind?: string; language: unknown; modifiers?: unknown | null; query: string; response?: { incomplete_list: boolean; suggestions: ({ detail?: string | null; documentation?: string | null; insertText: string; kind: "Method" | "Function" | "Constructor" | "Field" | "Variable" | "Class" | "Struct" | "Interface" | "Module" | "Property" | "Event" | "Operator" | "Unit" | "Value" | "Constant" | "Enum" | "EnumMember" | "Keyword" | "Text" | "Color" | "File" | "Reference" | "Customcolor" | "Folder" | "TypeParameter" | "User" | "Issue" | "Snippet"; label: string })[]; timings?: (unknown)[] | null } | null; sourceQuery?: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; drillDownLevel?: unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: unknown | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | unknown)[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: unknown | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ url: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; searchTerm?: string | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { dateRange: unknown; kind?: string; properties: (unknown | unknown | unknown | unknown)[]; response?: { data: { [key: string]: unknown }; error?: { code: "platform_access_required" | "query_execution_failed"; detail: string } | null; status: "success" | "error" } | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ current_value: number; dimension_type: string; dimension_value: string; impact_score: number; metric: string; percent_change: number; previous_value: number })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { assignee?: { id: string | number; type: "user" | "role" } | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { dateRange?: unknown | null; issueId: string; kind?: string; limit?: number | null; maxDistance?: number | null; modelName?: "text-embedding-3-small-1536" | "text-embedding-3-large-3072" | null; modifiers?: unknown | null; offset?: number | null; rendering?: string | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ description: string; distance: number; first_seen: string; id: string; library?: string | null; name: string; status: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownProperties: (string)[]; dateRange?: unknown | null; filterTestAccounts?: boolean | null; issueId: string; kind?: string; maxValuesPerProperty?: number | null; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { total_count: number; values: ({ count: number; value: string })[] } | undefined }; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { after?: string | null; customColumns?: (string)[] | null; dateRange: unknown; excludeAttributes?: boolean | null; filterGroup: unknown; kind?: string; limit?: number | null; liveLogsCheckpoint?: string | null; modifiers?: unknown | null; offset?: number | null; orderBy?: "latest" | "earliest" | null; resourceFingerprint?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; serviceNames: (string)[]; severityLevels: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; sparklineBreakdownBy?: "severity" | "service" | null; tags?: unknown | null; version?: number | null } | { attributeType: string; dateRange?: unknown | null; filterGroup?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { count: number; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ matchedOn: "key" | "value"; matchedValue?: string | null; name: string; propertyFilterType: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; searchValues?: boolean | null; serviceNames?: (string)[] | null; severityLevels?: (unknown)[] | null; tags?: unknown | null; version?: number | null } | { attributeKey: string; attributeType: string; dateRange?: unknown | null; filterGroup?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ count?: number | null; id: string; name: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; serviceNames?: (string)[] | null; severityLevels?: (unknown)[] | null; tags?: unknown | null; version?: number | null } | { clauses: ({ aggregation: "sum" | "avg" | "count" | "min" | "max" | "quantile" | "rate" | "increase" | "histogram_quantile"; filters?: ({ key: string; op: "eq" | "neq" | "regex" | "not_regex"; scope?: "resource" | "attribute" | "auto" | null; value: string })[] | null; groupBy?: ({ key: string; scope?: unknown | null })[] | null; metricName: string; metricType?: "gauge" | "sum" | "histogram" | "exponential_histogram" | "summary" | null; name: string; quantile?: number | null })[]; dateRange?: unknown | null; formula?: string | null; interval?: string | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ clause?: string | null; labels: { [key: string]: string | undefined }; metricName?: string | null; points: ({ time: string; value: number })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { after?: string | null; dateRange: unknown; excludeAttributes?: boolean | null; filterGroup?: unknown | null; flatSpans?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: "timestamp" | "duration" | null; orderDirection?: unknown | null; prefetchSpans?: number | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; rootSpans?: boolean | null; serviceNames?: (string)[] | null; statusCodes?: (number)[] | null; tags?: unknown | null; traceId?: string | null; version?: number | null } | { compareFilter?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { compare?: ({ avg_duration_nano: number; count: number; error_count: number; name: string; p50_duration_nano: number; p95_duration_nano: number; p999_duration_nano: number; p99_duration_nano: number; service_name: string; total_duration_nano: number })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { compare?: ({ avg_duration_nano: number; avg_start_offset_nano: number; calls_per_parent_invocation?: number | null; count: number; error_count: number; name: string; p50_duration_nano: number; p95_duration_nano: number; p999_duration_nano: number; p99_duration_nano: number; parent_name: string; parent_service: string; service_name: string; total_duration_nano: number })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceName: string; serviceNames?: (string)[] | null; spanName: string; tags?: unknown | null; version?: number | null } | { breakdownKey: string; breakdownType: "span" | "span_attribute" | "span_resource_attribute"; compareFilter?: unknown | null; dateRange: unknown; excludeBreakdownFilter?: boolean | null; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: "count" | "error_count" | null; response?: { compare?: ({ count: number; error_count: number; p50_duration_nano: number; p95_duration_nano: number; value: string })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { aggregation_group_type_index?: number | null; calendarHeatmapFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { allAggregations: number; columnAggregations: ({ column: number; value: number })[]; data: ({ column: number; row: number; value: number })[]; rowAggregations: ({ row: number; value: number })[] }; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; tags?: unknown | null; version?: number | null } | { actions?: ({ [key: string]: unknown })[] | null; after?: string | null; comment_text?: unknown | null; console_log_filters?: (unknown)[] | null; date_from?: string | null; date_to?: string | null; distinct_ids?: (string)[] | null; events?: ({ [key: string]: unknown })[] | null; filter_test_accounts?: boolean | null; having_predicates?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; hide_viewed_recordings?: "current-user" | "any-user" | null | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; operand?: unknown | null; order?: "duration" | "recording_duration" | "inactive_seconds" | "active_seconds" | "start_time" | "console_error_count" | "click_count" | "keypress_count" | "mouse_activity_count" | "activity_score" | "recording_ttl" | "surfacing_score" | null; order_direction?: "ASC" | "DESC" | null; person_uuid?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { error?: string | null; has_next: boolean; hogql?: string | null; modifiers?: unknown | null; next_cursor?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ active_seconds?: number | null; activity_score?: number | null; click_count?: number | null; console_error_count?: number | null; console_log_count?: number | null; console_warn_count?: number | null; distinct_id?: string | null; email?: string | null; end_time: string; expiry_time?: string | null; external_references?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: unknown }; issue_id: string; metadata?: { [key: string]: string | undefined } | null; title: string })[] | null; has_summary?: boolean | null; id: string; inactive_seconds?: number | null; keypress_count?: number | null; matches_filters?: boolean | null; matching_events?: ({ events: ({ timestamp: string; uuid: string })[]; session_id?: string | null })[] | null; mouse_activity_count?: number | null; ongoing?: boolean | null; person?: { created_at?: string | null; distinct_ids: (string)[]; id?: string | null; is_identified?: boolean | null; last_seen_at?: string | null; name?: string | null; properties: { [key: string]: unknown }; uuid?: string | null } | null; recording_duration: number; recording_ttl?: number | null; retention_period_days?: number | null; snapshot_library?: string | null; snapshot_source: "web" | "mobile" | "unknown"; start_time: string; start_url?: string | null; summary?: string | null; summary_outcome?: { description?: string | null; success?: boolean | null } | null; viewed: boolean; viewers: (string)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; session_ids?: (string)[] | null; session_recording_id?: string | null; tags?: unknown | null; user_modified_filters?: { [key: string]: unknown } | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { newerTimestamp?: string | null; newerTraceId?: string | null; olderTimestamp?: string | null; olderTraceId?: string | null; timings?: (unknown)[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; timestamp: string; traceId: string; version?: number | null } | { embedding: (number)[]; embeddingVersion?: number | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ distance: number; id: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { group_key?: string | null; group_type_index?: number | null; kind?: string; modifiers?: unknown | null; person_id?: string | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ change_from_previous_pct?: number | null; display: "number" | "sparkline"; format: "numeric" | "currency"; id: string; interval: number; name: string; previous: number; timeseries?: (number)[] | null; timeseries_labels?: (string)[] | null; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; key: "total_requests" | "total_bytes_read" | "total_cpu_seconds" | "avg_query_duration_ms" | "p95_query_duration_ms" | "error_rate" | "materialized_requests" | "inline_requests"; previous?: number | null; value?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: unknown | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownBy?: unknown | null; compareFilter?: unknown | null; dateRange?: unknown | null; endpointNames?: (string)[] | null; interval?: unknown | null; kind?: string; materializationType?: unknown | null; metric: "bytes_read" | "cpu_seconds" | "requests" | "query_duration" | "error_rate"; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ error_rate_pct: number; errors: number; harness: string; sessions: number; total_calls: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName?: string | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; distinct_id: string; error_rate_pct: number; errors: number; harnesses: (string)[]; last_seen: string; person_properties: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ harnesses: (string)[]; last_seen: string; message: string; occurrences: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; conversations: number; errors: number; p50_ms?: number | null; p95_ms?: number | null; users: number; with_intent: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; day: string; errors: number; p50: number; p95: number; sessions: number; users: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ description: string; last_seen: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ harness: string; intent: string; intent_source: string; timestamp: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; neighborDirection: "before" | "after"; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ co_occurrences: number; neighbor_tool: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | null; startPosition: number; tags?: unknown | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | null; tags?: unknown | null; variables?: { [key: string]: unknown | undefined } | null; version?: number | null } | { connectionId?: string | null; endPosition: number; filters?: unknown | null; globals?: { [key: string]: unknown } | null; kind?: string; language: unknown; modifiers?: unknown | null; query: string; response?: { incomplete_list: boolean; suggestions: ({ detail?: string | null; documentation?: string | null; insertText: string; kind: "Method" | "Function" | "Constructor" | "Field" | "Variable" | "Class" | "Struct" | "Interface" | "Module" | "Property" | "Event" | "Operator" | "Unit" | "Value" | "Constant" | "Enum" | "EnumMember" | "Keyword" | "Text" | "Color" | "File" | "Reference" | "Customcolor" | "Folder" | "TypeParameter" | "User" | "Issue" | "Snippet"; label: string })[]; timings?: (unknown)[] | null } | null; sourceQuery?: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { breakdown: ({ property: string; type?: string })[]; dateRange?: unknown | null; interval: "day" | "month"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdown: (unknown)[]; dateRange?: unknown | null; interval: unknown; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ churn: unknown; contraction: unknown; expansion: unknown; new: unknown; total: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ key: "revenue" | "paying_customer_count" | "avg_revenue_per_customer"; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; groupBy: "month" | "all"; kind?: string; modifiers?: unknown | null; properties: (unknown)[]; response?: { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; event?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; kind?: string; limit?: number | null; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; orderBy?: (string)[] | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: number; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; version?: number | null } | { conversion_goal_id: string; conversion_goal_name: string; custom_name?: string | null; distinct_id_field: string; dw_source_type?: string | null; fixedProperties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; id: string; id_field: string; kind?: string; math?: unknown | unknown | unknown | unknown | unknown | unknown | string | string | null; math_group_type_index?: unknown | null; math_hogql?: string | null; math_multiplier?: number | null; math_property?: string | null; math_property_revenue_currency?: unknown | null; math_property_type?: string | null; name?: string | null; optionalInFunnel?: boolean | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { [key: string]: unknown } | null; schema_map: { [key: string]: string | unknown | undefined }; table_name: string; timestamp_field: string; version?: number | null } | null; drillDownLevel?: "channel" | "source" | "campaign" | "ad_group" | "ad" | "medium" | "content" | "term" | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: { integrationSourceIds?: (string)[] | null } | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | "ASC" | "DESC")[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (({ changeFromPreviousPct?: number | null; hasComparison?: boolean | null; isIncreaseBad?: boolean | null; key: string; kind: unknown; previous?: number | string | null; value?: number | string | null })[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; drillDownLevel?: unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; integrationFilter?: unknown | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; draftConversionGoal?: unknown | unknown | unknown | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ((string | unknown)[])[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; select?: (string)[] | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | unknown | unknown | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: unknown | null; sampling?: unknown | null; samplingFactor?: number | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; metric: "INP" | "LCP" | "CLS" | "FCP"; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; percentile: "p75" | "p90" | "p99"; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ good: ({ path: string; value: number })[]; needs_improvements: (unknown)[]; poor: (unknown)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; thresholds: (number)[]; useSessionsTable?: boolean | null; useWebAnalyticsPrecompute?: boolean | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ url: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; searchTerm?: string | null; stripQueryParams?: boolean | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { dateRange: unknown; kind?: string; properties: (unknown | unknown | unknown | unknown)[]; response?: { data: { [key: string]: unknown }; error?: { code: "platform_access_required" | "query_execution_failed"; detail: string } | null; status: "success" | "error" } | null; version?: number | null } | { aggregation_group_type_index?: number | null; compareFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; doPathCleaning?: boolean | null; filterTestAccounts?: boolean | null; includeRevenue?: boolean | null; interval?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; orderBy?: (unknown | unknown)[] | null; properties: (unknown | unknown | unknown | unknown)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ current_value: number; dimension_type: string; dimension_value: string; impact_score: number; metric: string; percent_change: number; previous_value: number })[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sampling?: unknown | null; samplingFactor?: number | null; tags?: unknown | null; useSessionsTable?: boolean | null; version?: number | null } | { filters?: { dateRange?: unknown | null; properties?: (unknown)[] | null } | null; groupBy: ("ChannelType" | "Medium" | "Source" | "Campaign" | "AdIds" | "ReferringDomain" | "InitialURL")[]; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { assignee?: { id: string | number; type: "user" | "role" } | null; dateRange: unknown; filterGroup?: unknown | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; issueId?: string | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy: "last_seen" | "first_seen" | "occurrences" | "users" | "sessions"; orderDirection?: "ASC" | "DESC" | null; pendingFingerprintIssueStateUpdates?: ({ assigned_role_id?: string | null; assigned_user_id?: number | null; fingerprint: string; first_seen: string; is_deleted: number; issue_description?: string | null; issue_id: string; issue_name?: string | null; issue_status: string; version: number })[] | null; personId?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aggregations?: { occurrences: number; sessions: number; users: number; volumeRange?: (number)[] | null; volume_buckets: ({ label: string; value: number })[] } | null; assignee?: unknown | null; cohort?: { id: number; name: string } | null; description?: string | null; external_issues?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: "slack" | "salesforce" | "hubspot" | "google-pubsub" | "google-cloud-service-account" | "google-cloud-storage" | "google-ads" | "google-analytics" | "google-search-console" | "google-sheets" | "linkedin-ads" | "snapchat" | "stripe" | "intercom" | "email" | "twilio" | "linear" | "github" | "gitlab" | "meta-ads" | "clickup" | "reddit-ads" | "databricks" | "tiktok-ads" | "bing-ads" | "vercel" | "azure-blob" | "firebase" | "jira" | "pinterest-ads" | "customerio-app" | "customerio-webhook" | "customerio-track" | "postgresql" | "aws-s3" | "s3-compatible" } })[] | null; first_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; first_seen: string; function?: string | null; id: string; last_event?: { distinct_id: string; properties: string; timestamp: string; uuid: string } | null; last_seen: string; library?: string | null; name?: string | null; source?: string | null; status: "archived" | "active" | "resolved" | "pending_release" | "suppressed" })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchQuery?: string | null; status?: unknown | string | null; tags?: unknown | null; useQueryV2?: boolean | null; useQueryV3?: boolean | null; version?: number | null; volumeResolution: number; withAggregations?: boolean | null; withFirstEvent?: boolean | null; withLastEvent?: boolean | null } | { dateRange?: unknown | null; issueId: string; kind?: string; limit?: number | null; maxDistance?: number | null; modelName?: "text-embedding-3-small-1536" | "text-embedding-3-large-3072" | null; modifiers?: unknown | null; offset?: number | null; rendering?: string | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ description: string; distance: number; first_seen: string; id: string; library?: string | null; name: string; status: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownProperties: (string)[]; dateRange?: unknown | null; filterTestAccounts?: boolean | null; issueId: string; kind?: string; maxValuesPerProperty?: number | null; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: { total_count: number; values: ({ count: number; value: string })[] } | undefined }; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { events: (string)[]; kind?: string; modifiers?: unknown | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ assignee?: unknown | null; cohort?: unknown | null; description?: string | null; event: string; external_issues?: (unknown)[] | null; first_seen: string; id: string; last_seen: string; library?: string | null; name?: string | null; odds_ratio: number; population: { both: number; exception_only: number; neither: number; success_only: number }; status: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { after?: string | null; customColumns?: (string)[] | null; dateRange: unknown; excludeAttributes?: boolean | null; filterGroup: unknown; kind?: string; limit?: number | null; liveLogsCheckpoint?: string | null; modifiers?: unknown | null; offset?: number | null; orderBy?: "latest" | "earliest" | null; resourceFingerprint?: string | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; serviceNames: (string)[]; severityLevels: ("trace" | "debug" | "info" | "warn" | "error" | "fatal")[]; sparklineBreakdownBy?: "severity" | "service" | null; tags?: unknown | null; version?: number | null } | { attributeType: string; dateRange?: unknown | null; filterGroup?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { count: number; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ matchedOn: "key" | "value"; matchedValue?: string | null; name: string; propertyFilterType: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; searchValues?: boolean | null; serviceNames?: (string)[] | null; severityLevels?: (unknown)[] | null; tags?: unknown | null; version?: number | null } | { attributeKey: string; attributeType: string; dateRange?: unknown | null; filterGroup?: unknown | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ count?: number | null; id: string; name: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; serviceNames?: (string)[] | null; severityLevels?: (unknown)[] | null; tags?: unknown | null; version?: number | null } | { clauses: ({ aggregation: "sum" | "avg" | "count" | "min" | "max" | "quantile" | "rate" | "increase" | "histogram_quantile"; filters?: ({ key: string; op: "eq" | "neq" | "regex" | "not_regex"; scope?: "resource" | "attribute" | "auto" | null; value: string })[] | null; groupBy?: ({ key: string; scope?: unknown | null })[] | null; metricName: string; metricType?: "gauge" | "sum" | "histogram" | "exponential_histogram" | "summary" | null; name: string; quantile?: number | null })[]; dateRange?: unknown | null; formula?: string | null; interval?: string | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ clause?: string | null; labels: { [key: string]: string | undefined }; metricName?: string | null; points: ({ time: string; value: number })[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { after?: string | null; dateRange: unknown; excludeAttributes?: boolean | null; filterGroup?: unknown | null; flatSpans?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; orderBy?: "timestamp" | "duration" | null; orderDirection?: unknown | null; prefetchSpans?: number | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; rootSpans?: boolean | null; serviceNames?: (string)[] | null; statusCodes?: (number)[] | null; tags?: unknown | null; traceId?: string | null; version?: number | null } | { compareFilter?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { compare?: ({ avg_duration_nano: number; count: number; error_count: number; name: string; p50_duration_nano: number; p95_duration_nano: number; p999_duration_nano: number; p99_duration_nano: number; service_name: string; total_duration_nano: number })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dateRange: unknown; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { compare?: ({ avg_duration_nano: number; avg_start_offset_nano: number; calls_per_parent_invocation?: number | null; count: number; error_count: number; name: string; p50_duration_nano: number; p95_duration_nano: number; p999_duration_nano: number; p99_duration_nano: number; parent_name: string; parent_service: string; service_name: string; total_duration_nano: number })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceName: string; serviceNames?: (string)[] | null; spanName: string; tags?: unknown | null; version?: number | null } | { breakdownKey: string; breakdownType: "span" | "span_attribute" | "span_resource_attribute"; compareFilter?: unknown | null; dateRange: unknown; excludeBreakdownFilter?: boolean | null; filterGroup?: unknown | null; kind?: string; modifiers?: unknown | null; orderBy?: "count" | "error_count" | null; response?: { compare?: ({ count: number; error_count: number; p50_duration_nano: number; p95_duration_nano: number; value: string })[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; serviceNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { experiment_id?: number | null; fingerprint?: string | null; funnels_query: unknown; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { count_query: unknown; experiment_id?: number | null; exposure_query?: unknown | null; fingerprint?: string | null; kind?: string; modifiers?: unknown | null; name?: string | null; response?: { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; uuid?: string | null; version?: number | null } | { aggregation_group_type_index?: number | null; calendarHeatmapFilter?: unknown | null; conversionGoal?: unknown | unknown | null; dataColorTheme?: number | null; dateRange?: unknown | null; filterTestAccounts?: boolean | null; interval?: unknown | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | unknown | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { allAggregations: number; columnAggregations: ({ column: number; value: number })[]; data: ({ column: number; row: number; value: number })[]; rowAggregations: ({ row: number; value: number })[] }; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; samplingFactor?: number | null; series: (unknown | unknown | unknown)[]; tags?: unknown | null; version?: number | null } | { actions?: ({ [key: string]: unknown })[] | null; after?: string | null; comment_text?: unknown | null; console_log_filters?: (unknown)[] | null; date_from?: string | null; date_to?: string | null; distinct_ids?: (string)[] | null; events?: ({ [key: string]: unknown })[] | null; filter_test_accounts?: boolean | null; having_predicates?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; hide_viewed_recordings?: "current-user" | "any-user" | null | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; operand?: unknown | null; order?: "duration" | "recording_duration" | "inactive_seconds" | "active_seconds" | "start_time" | "console_error_count" | "click_count" | "keypress_count" | "mouse_activity_count" | "activity_score" | "recording_ttl" | "surfacing_score" | null; order_direction?: "ASC" | "DESC" | null; person_uuid?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { error?: string | null; has_next: boolean; hogql?: string | null; modifiers?: unknown | null; next_cursor?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ active_seconds?: number | null; activity_score?: number | null; click_count?: number | null; console_error_count?: number | null; console_log_count?: number | null; console_warn_count?: number | null; distinct_id?: string | null; email?: string | null; end_time: string; expiry_time?: string | null; external_references?: ({ external_url: string; id: string; integration: { display_name: string; id: number; kind: unknown }; issue_id: string; metadata?: { [key: string]: string | undefined } | null; title: string })[] | null; has_summary?: boolean | null; id: string; inactive_seconds?: number | null; keypress_count?: number | null; matches_filters?: boolean | null; matching_events?: ({ events: ({ timestamp: string; uuid: string })[]; session_id?: string | null })[] | null; mouse_activity_count?: number | null; ongoing?: boolean | null; person?: { created_at?: string | null; distinct_ids: (string)[]; id?: string | null; is_identified?: boolean | null; last_seen_at?: string | null; name?: string | null; properties: { [key: string]: unknown }; uuid?: string | null } | null; recording_duration: number; recording_ttl?: number | null; retention_period_days?: number | null; snapshot_library?: string | null; snapshot_source: "web" | "mobile" | "unknown"; start_time: string; start_url?: string | null; summary?: string | null; summary_outcome?: { description?: string | null; success?: boolean | null } | null; viewed: boolean; viewers: (string)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; session_ids?: (string)[] | null; session_recording_id?: string | null; tags?: unknown | null; user_modified_filters?: { [key: string]: unknown } | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; groupKey?: string | null; groupTypeIndex?: number | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; personId?: string | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; randomOrder?: boolean | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ aiSessionId?: string | null; createdAt: string; distinctId: string; errorCount?: number | null; events: ({ createdAt: string; event: "$ai_generation" | "$ai_embedding" | "$ai_span" | "$ai_trace" | "$ai_metric" | "$ai_feedback" | "$ai_evaluation" | "$ai_tag" | "$ai_trace_summary" | "$ai_generation_summary" | "$ai_trace_clusters" | "$ai_generation_clusters" | string; id: string; properties: { [key: string]: unknown }; sentiment?: { label: string; message_count?: number | null; messages?: { [key: string]: { label: string; score: number; scores?: { [key: string]: number | undefined } | null } | undefined } | null; score: number; scores?: { [key: string]: number | undefined } | null } | null })[]; id: string; inputCost?: number | null; inputState?: unknown; inputTokens?: number | null; isSupportTrace?: boolean | null; outputCost?: number | null; outputState?: unknown; outputTokens?: number | null; person?: { created_at: string; distinct_id: string; properties: { [key: string]: unknown }; uuid: string } | null; requestCost?: number | null; sentiment?: unknown | null; tools?: (string)[] | null; totalCost?: number | null; totalLatency?: number | null; traceName?: string | null; webSearchCost?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; searchTerm?: string | null; showColumnConfigurator?: boolean | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; traceId: string; version?: number | null } | { dateRange?: unknown | null; includeSentiment?: boolean | null; kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; sessionId: string; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; filterSupportTraces?: boolean | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { newerTimestamp?: string | null; newerTraceId?: string | null; olderTimestamp?: string | null; olderTraceId?: string | null; timings?: (unknown)[] | null; warnings?: (unknown)[] | null } | null; tags?: unknown | null; timestamp: string; traceId: string; version?: number | null } | { embedding: (number)[]; embeddingVersion?: number | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ distance: number; id: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { group_key?: string | null; group_type_index?: number | null; kind?: string; modifiers?: unknown | null; person_id?: string | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ change_from_previous_pct?: number | null; display: "number" | "sparkline"; format: "numeric" | "currency"; id: string; interval: number; name: string; previous: number; timeseries?: (number)[] | null; timeseries_labels?: (string)[] | null; value: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { allRolesUnassigned?: boolean | null; assignedToUserIds?: (number)[] | null; filterExpression?: string | null; kind?: string; limit?: number | null; metrics?: (string)[] | null; modifiers?: unknown | null; offset?: number | null; orderBy?: (string)[] | null; response?: { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; search?: string | null; select?: (string)[] | null; tagNames?: (string)[] | null; tags?: unknown | null; version?: number | null } | { compareFilter?: unknown | null; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; materializationType?: "materialized" | "inline" | null | null; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ changeFromPreviousPct?: number | null; key: "total_requests" | "total_bytes_read" | "total_cpu_seconds" | "avg_query_duration_ms" | "p95_query_duration_ms" | "error_rate" | "materialized_requests" | "inline_requests"; previous?: number | null; value?: number | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownBy: "Endpoint" | "MaterializationType" | "ApiKey" | "Status"; dateRange?: unknown | null; endpointNames?: (string)[] | null; kind?: string; limit?: number | null; materializationType?: unknown | null; modifiers?: unknown | null; offset?: number | null; orderBy?: ("requests" | "bytes_read" | "cpu_seconds" | "avg_query_duration_ms" | "error_rate" | "ASC" | "DESC")[] | null; response?: { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { breakdownBy?: unknown | null; compareFilter?: unknown | null; dateRange?: unknown | null; endpointNames?: (string)[] | null; interval?: unknown | null; kind?: string; materializationType?: unknown | null; metric: "bytes_read" | "cpu_seconds" | "requests" | "query_duration" | "error_rate"; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ [key: string]: unknown })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { dateRange?: unknown | null; filterTestAccounts?: boolean | null; kind?: string; modifiers?: unknown | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ error_rate_pct: number; errors: number; harness: string; sessions: number; total_calls: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName?: string | null; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; distinct_id: string; error_rate_pct: number; errors: number; harnesses: (string)[]; last_seen: string; person_properties: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ harnesses: (string)[]; last_seen: string; message: string; occurrences: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; conversations: number; errors: number; p50_ms?: number | null; p95_ms?: number | null; users: number; with_intent: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ calls: number; day: string; errors: number; p50: number; p95: number; sessions: number; users: number })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ description: string; last_seen: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ harness: string; intent: string; intent_source: string; timestamp: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | { dateRange?: unknown | null; kind?: string; modifiers?: unknown | null; neighborDirection: "before" | "after"; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ co_occurrences: number; neighbor_tool: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; toolName: string; version?: number | null } | null; startPosition: number; tags?: unknown | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | null; tags?: unknown | null; variables?: { [key: string]: unknown | undefined } | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { end_date?: string | null; experiment_id?: number | null; experiment_name: string; exposure_criteria?: { exposure_config?: unknown | unknown | null; filterTestAccounts?: boolean | null; multiple_variant_handling?: unknown | null } | null; feature_flag: { [key: string]: unknown }; holdout?: { created_at?: string | null; created_by?: { distinct_id: string; email: string; first_name: string; hedgehog_config?: { accessories?: ("beret" | "cap" | "chef" | "cowboy" | "eyepatch" | "flag" | "glasses" | "graduation" | "parrot" | "party" | "pineapple" | "sunglasses" | "tophat" | "xmas-hat" | "xmas-antlers" | "xmas-scarf")[] | null; color?: "green" | "red" | "blue" | "purple" | "dark" | "light" | "greyscale" | "sepia" | "invert" | "rainbow" | null; skin?: "default" | "spiderhog" | "robohog" | "hogzilla" | "ghost" | null; use_as_profile: boolean } | null; id: number; is_email_verified?: unknown; last_name?: string | null; role_at_organization?: string | null; uuid: string } | null; description?: string | null; filters: ({ aggregation_group_type_index?: number | null; description?: string | null; exposure_frozen?: boolean | null; exposure_frozen_cohort?: number | null; properties?: (unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown)[] | null; rollout_percentage?: number | null; sort_key?: string | null; users_affected?: number | null; variant?: string | null })[]; id: number; name: string; updated_at?: string | null; user_access_level?: "none" | "member" | "admin" | "viewer" | "editor" | "manager" | null } | null; kind?: string; modifiers?: unknown | null; response?: { bias_risk?: { multiple_variant_percentage: number } | null; date_range: unknown; kind?: string; sample_ratio_mismatch?: { expected: { [key: string]: number | undefined }; p_value: number } | null; timeseries: ({ days: (string)[]; exposure_counts: (number)[]; variant: string })[]; total_exposures: { [key: string]: number | undefined }; warnings?: (unknown)[] | null } | null; start_date?: string | null; tags?: unknown | null; version?: number | null } | { dateRange: unknown; distance_func: "L1Distance" | "L2Distance" | "cosineDistance"; document_types: (string)[]; kind?: string; limit?: number | null; model: string; modifiers?: unknown | null; offset?: number | null; order_by: "distance" | "timestamp"; order_direction: "asc" | "desc"; origin: { document_id: string; document_type: string; product: string; timestamp: string }; products: (string)[]; renderings: (string)[]; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ distance: number; origin?: { document_id: string; document_type: string; model_name: unknown; product: string; rendering: string; timestamp: string } | null; result: { document_id: string; document_type: string; model_name: unknown; product: string; rendering: string; timestamp: string } })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; threshold?: number | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { chartSettings?: { goalLines?: (unknown)[] | null; heatmap?: { gradient?: ({ color: string; value: number })[] | null; gradientPreset?: string | null; gradientScaleMode?: "absolute" | "relative" | null; nullLabel?: string | null; nullValue?: string | null; sortColumn?: string | null; sortOrder?: "asc" | "desc" | null; valueColumn?: string | null; xAxisColumn?: string | null; xAxisLabel?: string | null; yAxisColumn?: string | null; yAxisLabel?: string | null } | null; leftYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; pie?: { showTotal?: boolean | null; sliceContent?: "labels" | "values" | "none" | null; valueDisplay?: "absolute" | "percentage" | null } | null; resultCustomizations?: { [key: string]: unknown | undefined } | null; rightYAxisSettings?: { label?: string | null; scale?: "linear" | "logarithmic" | null; showGridLines?: boolean | null; showTicks?: boolean | null; startAtZero?: boolean | null } | null; seriesBreakdownColumn?: string | null; showLegend?: boolean | null; showNullsAsZero?: boolean | null; showPieTotal?: boolean | null; showTotalRow?: boolean | null; showValuesOnSeries?: boolean | null; showXAxisBorder?: boolean | null; showXAxisTicks?: boolean | null; showYAxisBorder?: boolean | null; stackBars100?: boolean | null; xAxis?: { column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null } | null; xAxisLabel?: string | null; yAxis?: ({ column: string; settings?: { display?: { color?: string | null; displayType?: "auto" | "line" | "bar" | "area" | null; label?: string | null; trendLine?: boolean | null; yAxisPosition?: "left" | "right" | null } | null; formatting?: { decimalPlaces?: number | null; prefix?: string | null; style?: "none" | "number" | "short" | "percent" | null; suffix?: string | null } | null } | null })[] | null; yAxisAtZero?: boolean | null } | null; display?: unknown | null; kind?: string; source: unknown; tableSettings?: { columns?: (unknown)[] | null; conditionalFormatting?: ({ bytecode: (unknown)[]; color: string; colorMode?: "light" | "dark" | null; columnName: string; id: string; input: string; templateId: string })[] | null; pinnedColumns?: (string)[] | null; transpose?: boolean | null } | null; version?: number | null } | { allowSorting?: boolean | null; columns?: (string)[] | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hiddenColumns?: (string)[] | null; kind?: string; pinnedColumns?: (string)[] | null; propertiesViaUrl?: boolean | null; response?: { [key: string]: unknown } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; nextCursor?: string | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit: number; missing_actors_count?: number | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types?: (string)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { clickhouse?: string | null; columns?: (unknown)[] | null; error?: string | null; explain?: (string)[] | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; metadata?: unknown | null; modifiers?: unknown | null; offset?: number | null; query?: string | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { dateFrom?: string | null; dateTo?: string | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStale?: boolean | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; preComputeStrategy?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: unknown; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { [key: string]: unknown | undefined }; samplingRate?: unknown | null; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; samplingRate?: unknown | null; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { credible_intervals: { [key: string]: (number)[] | undefined }; expected_loss: number; funnels_query?: unknown | null; insight: (({ [key: string]: unknown })[])[]; kind?: string; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | { count_query?: unknown | null; credible_intervals: { [key: string]: (number)[] | undefined }; exposure_query?: unknown | null; insight: ({ [key: string]: unknown })[]; kind?: string; p_value: number; probability: { [key: string]: number | undefined }; significance_code: unknown; significant: boolean; stats_version?: number | null; variants: (unknown)[]; warnings?: (unknown)[] | null } | { columns?: (string)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns?: (unknown)[] | null; error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: (unknown)[]; timings?: (unknown)[] | null; types?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | { columns: (unknown)[]; error?: string | null; hasMore?: boolean | null; hogql: string; kind?: string; limit: number; metricsResults?: (number | null)[] | null; modifiers?: unknown | null; offset: number; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ((unknown)[])[]; timings?: (unknown)[] | null; types: (string)[]; warnings?: (unknown | unknown)[] | null } | null; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showHogQLEditor?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; tags?: unknown | null; version?: number | null } | { allowSorting?: boolean | null; context?: { eventDefinitionId?: string | null; type: "event_definition" | "team_columns" } | null; contextKey?: string | null; defaultColumns?: (string)[] | null; embedded?: boolean | null; expandable?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; propertiesViaUrl?: boolean | null; shortId: string; showAbsoluteTime?: boolean | null; showActions?: boolean | null; showColumnConfigurator?: boolean | null; showCorrelationTable?: boolean | null; showCount?: boolean | null; showDateRange?: boolean | null; showElapsedTime?: boolean | null; showEventFilter?: boolean | null; showEventsFilter?: boolean | null; showExport?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showHogQLEditor?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showOpenEditorButton?: boolean | null; showPersistentColumnConfigurator?: boolean | null; showPropertyFilter?: boolean | ("metadata" | "actions" | "cohorts" | "cohorts_with_all" | "data_warehouse" | "data_warehouse_source_tables" | "data_warehouse_properties" | "data_warehouse_person_properties" | "elements" | "events" | "internal_events" | "internal_event_properties" | "event_properties" | "event_feature_flags" | "event_metadata" | "numerical_event_properties" | "person_properties" | "person_metadata" | "pageview_urls" | "pageview_events" | "screens" | "screen_events" | "email_addresses" | "autocapture_events" | "custom_events" | "wildcard" | "groups" | "persons" | "feature_flags" | "insights" | "experiments" | "plugins" | "dashboards" | "name_groups" | "session_properties" | "hogql_expression" | "notebooks" | "log_entries" | "error_tracking_issues" | "logs" | "log_attributes" | "log_resource_attributes" | "metric_attributes" | "spans" | "span_attributes" | "span_resource_attributes" | "replay" | "replay_saved_filters" | "revenue_analytics_properties" | "resources" | "error_tracking_properties" | "activity_log_properties" | "mcp_properties" | "max_ai_context" | "workflow_variables" | "suggested_filters" | "recent_filters" | "pinned_filters" | "empty")[] | null; showRecordingColumn?: boolean | null; showReload?: boolean | null; showResults?: boolean | null; showResultsTable?: boolean | null; showSavedFilters?: boolean | null; showSavedQueries?: boolean | null; showSearch?: boolean | null; showSourceQueryOptions?: boolean | null; showTable?: boolean | null; showTableViews?: boolean | null; showTestAccountFilters?: boolean | null; showTimings?: boolean | null; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | { embedded?: boolean | null; full?: boolean | null; hidePersonsModal?: boolean | null; hideTooltipOnScroll?: boolean | null; kind?: string; showCorrelationTable?: boolean | null; showFilters?: boolean | null; showHeader?: boolean | null; showLastComputation?: boolean | null; showLastComputationRefresh?: boolean | null; showResults?: boolean | null; showTable?: boolean | null; source: unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown; suppressSessionAnalysisWarning?: boolean | null; version?: number | null; vizSpecificOptions?: { ActionsPie?: { disableHoverOffset?: boolean | null; hideAggregation?: boolean | null } | null; RETENTION?: { hideLineGraph?: boolean | null; hideSizeColumn?: boolean | null; useSmallLayout?: boolean | null } | null } | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { connectionId?: string | null; kind?: string; modifiers?: unknown | null; response?: { joins: ({ created_at?: string | null; created_by?: { distinct_id: string; email: string; first_name: string; hedgehog_config?: { accessories?: ("beret" | "cap" | "chef" | "cowboy" | "eyepatch" | "flag" | "glasses" | "graduation" | "parrot" | "party" | "pineapple" | "sunglasses" | "tophat" | "xmas-hat" | "xmas-antlers" | "xmas-scarf")[] | null; color?: "green" | "red" | "blue" | "purple" | "dark" | "light" | "greyscale" | "sepia" | "invert" | "rainbow" | null; skin?: "default" | "spiderhog" | "robohog" | "hogzilla" | "ghost" | null; use_as_profile: boolean } | null; id: number; is_email_verified?: unknown; last_name?: string | null; role_at_organization?: string | null; uuid: string } | null; field_name?: string | null; id: string; joining_table_key?: string | null; joining_table_name?: string | null; source_table_key?: string | null; source_table_name?: string | null })[]; tables: { [key: string]: { fields: { [key: string]: { chain?: (string | number)[] | null; fields?: (string)[] | null; hogql_value: string; id?: string | null; name: string; schema_valid: boolean; table?: string | null; type: "integer" | "float" | "decimal" | "string" | "datetime" | "date" | "boolean" | "array" | "json" | "lazy_table" | "virtual_table" | "field_traverser" | "expression" | "view" | "materialized_view" | "unknown" } | undefined }; id: string; name: string; row_count?: number | null; type?: string } | { fields: { [key: string]: { chain?: (string | number)[] | null; fields?: (string)[] | null; hogql_value: string; id?: string | null; name: string; schema_valid: boolean; table?: string | null; type: "integer" | "float" | "decimal" | "string" | "datetime" | "date" | "boolean" | "array" | "json" | "lazy_table" | "virtual_table" | "field_traverser" | "expression" | "view" | "materialized_view" | "unknown" } | undefined }; id: string; name: string; row_count?: number | null; type?: string } | { fields: { [key: string]: unknown | undefined }; format: string; id: string; name: string; row_count?: number | null; schema?: { id: string; incremental: boolean; last_synced_at?: string | null; name: string; should_sync: boolean; status?: string | null } | null; search_aliases?: (string)[] | null; source?: { access_method?: string | null; id: string; last_synced_at?: string | null; prefix: string; source_type: string; status: string } | null; type?: string; url_pattern: string } | { fields: { [key: string]: unknown | undefined }; id: string; name: string; query: unknown; row_count?: number | null; type?: string } | { fields: { [key: string]: unknown | undefined }; id: string; kind: "revenue_analytics_charge" | "revenue_analytics_customer" | "revenue_analytics_mrr" | "revenue_analytics_product" | "revenue_analytics_revenue_item" | "revenue_analytics_subscription"; name: string; query: unknown; row_count?: number | null; source_id?: string | null; type?: string } | { fields: { [key: string]: unknown | undefined }; id: string; name: string; row_count?: number | null; type?: string } | { fields: { [key: string]: unknown | undefined }; id: string; last_run_at?: string | null; name: string; query: unknown; row_count?: number | null; status?: string | null; type?: string } | { fields: { [key: string]: unknown | undefined }; id: string; name: string; query: unknown; row_count?: number | null; status?: string | null; type?: string } | undefined } } | null; tags?: unknown | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { kind?: string; modifiers?: unknown | null; response?: { questions: (string)[]; warnings?: (unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { kind?: string; limit?: number | null; modifiers?: unknown | null; offset?: number | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ count: number; event: string })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { actionId?: number | null; event?: string | null; kind?: string; limit?: number | null; maxPropertyValues?: number | null; modifiers?: unknown | null; offset?: number | null; properties?: (string)[] | null; response?: { error?: string | null; hasMore?: boolean | null; hogql?: string | null; limit?: number | null; modifiers?: unknown | null; offset?: number | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ property: string; sample_count: number; sample_values: (string)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | { groupTypeIndex?: number | null; kind?: string; maxPropertyValues?: number | null; modifiers?: unknown | null; properties: (string)[]; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: { sample_count: number; sample_values: (string | number | boolean | number)[] } | ({ sample_count: number; sample_values: (string | number | boolean | number)[] })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; tags?: unknown | null; version?: number | null } | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | unknown | { event_names?: (string)[] | null; is_column?: boolean | null; kind?: string; modifiers?: unknown | null; property_key: string; property_type: "event" | "person"; response?: { error?: string | null; hogql?: string | null; modifiers?: unknown | null; query_status?: unknown | null; resolved_compare_date_range?: unknown | null; resolved_date_range?: unknown | null; results: ({ count?: number | null; name?: string | number | boolean | null })[]; timings?: (unknown)[] | null; warnings?: (unknown | unknown)[] | null } | null; search_value?: string | null; tags?: unknown | null; version?: number | null } }>; /** * Get a team's quota-limit state * Tags: quota_limits, quota_limits * Access as: posthog.quotaLimitsList() */ quotaLimitsList: () => Promise<({ limited: { [key: string]: { limited: boolean } | undefined } })[]>; /** * API for custom sandbox base images, built on top of the VM sandbox base via an image-builder agent. Custom images only run on the Modal VM runtime, so every action is gated on the `tasks-modal-vm-sandbox` flag (org-enabled with `user_created` in its origin_products payload). * Tags: sandbox-custom-images, sandbox_custom_images * Access as: posthog.sandboxCustomImagesList() */ sandboxCustomImagesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description: string; repository?: string; private?: boolean; status: string; version: number; modal_image_name: string; spec?: { [key: string]: unknown }; spec_yaml?: string; scan_result?: { [key: string]: unknown }; build_log?: string; error: string; builder_task_id?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null })[] }>; /** * Create a draft custom image and start its interactive image-builder agent task. The returned builder_task_id points at the conversation. * Tags: sandbox-custom-images, sandbox_custom_images * Access as: posthog.sandboxCustomImagesCreate() */ sandboxCustomImagesCreate: () => Promise<{ id: string; name: string; description: string; repository?: string; private?: boolean; status: string; version: number; modal_image_name: string; spec?: { [key: string]: unknown }; spec_yaml?: string; scan_result?: { [key: string]: unknown }; build_log?: string; error: string; builder_task_id?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null }>; /** * API for custom sandbox base images, built on top of the VM sandbox base via an image-builder agent. Custom images only run on the Modal VM runtime, so every action is gated on the `tasks-modal-vm-sandbox` flag (org-enabled with `user_created` in its origin_products payload). * Tags: sandbox-custom-images, sandbox_custom_images * Access as: posthog.sandboxCustomImagesRetrieve() */ sandboxCustomImagesRetrieve: () => Promise<{ id: string; name: string; description: string; repository?: string; private?: boolean; status: string; version: number; modal_image_name: string; spec?: { [key: string]: unknown }; spec_yaml?: string; scan_result?: { [key: string]: unknown }; build_log?: string; error: string; builder_task_id?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null }>; /** * API for custom sandbox base images, built on top of the VM sandbox base via an image-builder agent. Custom images only run on the Modal VM runtime, so every action is gated on the `tasks-modal-vm-sandbox` flag (org-enabled with `user_created` in its origin_products payload). * Tags: sandbox-custom-images, sandbox_custom_images * Access as: posthog.sandboxCustomImagesDestroy() */ sandboxCustomImagesDestroy: () => Promise; /** * Persist the image spec (from the request body or the builder agent's sandbox), run the security scan, and on pass build and publish the image. * Tags: sandbox-custom-images, sandbox_custom_images * Access as: posthog.sandboxCustomImagesBuildCreate() */ sandboxCustomImagesBuildCreate: () => Promise<{ id: string; name: string; description: string; repository?: string; private?: boolean; status: string; version: number; modal_image_name: string; spec?: { [key: string]: unknown }; spec_yaml?: string; scan_result?: { [key: string]: unknown }; build_log?: string; error: string; builder_task_id?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null }>; /** * Revive (or reuse) the image's builder agent session. When the previous session has ended, a fresh one is started seeded with the stored spec — use this to update an existing image. * Tags: sandbox-custom-images, sandbox_custom_images * Access as: posthog.sandboxCustomImagesBuilderTaskCreate() */ sandboxCustomImagesBuilderTaskCreate: () => Promise<{ id: string; name: string; description: string; repository?: string; private?: boolean; status: string; version: number; modal_image_name: string; spec?: { [key: string]: unknown }; spec_yaml?: string; scan_result?: { [key: string]: unknown }; build_log?: string; error: string; builder_task_id?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null }>; /** * API for managing sandbox environments that control network access for task runs. * Tags: sandbox-environments, sandbox_environments * Access as: posthog.sandboxList() */ sandboxList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; network_access_level: string; allowed_domains?: (string)[]; repositories?: (string)[]; private: boolean; internal: boolean; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null; custom_image_id?: string | null; custom_image_name?: string | null; custom_image_status?: string | null })[] }>; /** * API for managing sandbox environments that control network access for task runs. * Tags: sandbox-environments, sandbox_environments * Access as: posthog.sandboxCreate() */ sandboxCreate: () => Promise<{ id: string; name: string; network_access_level: string; allowed_domains?: (string)[]; repositories?: (string)[]; private: boolean; internal: boolean; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null; custom_image_id?: string | null; custom_image_name?: string | null; custom_image_status?: string | null }>; /** * API for managing sandbox environments that control network access for task runs. * Tags: sandbox-environments, sandbox_environments * Access as: posthog.sandboxRetrieve() */ sandboxRetrieve: () => Promise<{ id: string; name: string; network_access_level: string; allowed_domains?: (string)[]; repositories?: (string)[]; private: boolean; internal: boolean; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null; custom_image_id?: string | null; custom_image_name?: string | null; custom_image_status?: string | null }>; /** * API for managing sandbox environments that control network access for task runs. * Tags: sandbox-environments, sandbox_environments * Access as: posthog.sandboxPartialUpdate() */ sandboxPartialUpdate: () => Promise<{ id: string; name: string; network_access_level: string; allowed_domains?: (string)[]; repositories?: (string)[]; private: boolean; internal: boolean; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; created_at?: string | null; updated_at?: string | null; custom_image_id?: string | null; custom_image_name?: string | null; custom_image_status?: string | null }>; /** * API for managing sandbox environments that control network access for task runs. * Tags: sandbox-environments, sandbox_environments * Access as: posthog.sandboxDestroy() */ sandboxDestroy: () => Promise; /** * List saved heatmaps for the project. A saved heatmap pins a page URL and a set of viewport widths, and (for type 'screenshot') renders the page so heatmap data can be overlaid on it. * Tags: saved * Access as: posthog.savedList() */ savedList: () => Promise<({ results: ({ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null })[]; count: number })[]>; /** * Create a saved heatmap for a page URL. For type 'screenshot' (the default) this enqueues a headless render of the page at each target width; poll the saved heatmap or its content endpoint until status is 'completed'. Provide 'widths' to control which viewport widths are rendered. * Tags: saved * Access as: posthog.savedCreate() */ savedCreate: () => Promise<{ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null }>; /** * Get a single saved heatmap by its short_id, including per-width render status. * Tags: saved * Access as: posthog.savedRetrieve() */ savedRetrieve: () => Promise<{ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null }>; /** * Update a saved heatmap (e.g. rename, change widths, or soft-delete via 'deleted'). Changing the URL of a 'screenshot' heatmap triggers a re-render. * Tags: saved * Access as: posthog.savedPartialUpdate() */ savedPartialUpdate: () => Promise<{ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: saved * Access as: posthog.savedDestroy() */ savedDestroy: () => Promise; /** * Re-run screenshot generation for a saved heatmap of type 'screenshot'. Clears existing renders and re-renders at every target width; status returns to 'processing'. * Tags: saved * Access as: posthog.savedRegenerateCreate() */ savedRegenerateCreate: () => Promise<{ id: string; short_id: string; name?: string | null; url: string; data_url?: string | null; target_widths?: unknown; type?: "screenshot" | "iframe" | "recording"; status: "processing" | "completed" | "failed"; has_content: boolean; snapshots: ({ width: number; has_content: boolean })[]; deleted?: boolean; block_consent_modals?: boolean; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string; exception: string | null }>; /** * Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation. * Tags: saved_query_column_annotations * Access as: posthog.savedQueryColumnAnnotationsList() */ savedQueryColumnAnnotationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; saved_query: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null })[] }>; /** * Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation. * Tags: saved_query_column_annotations * Access as: posthog.savedQueryColumnAnnotationsCreate() */ savedQueryColumnAnnotationsCreate: () => Promise<{ id: string; saved_query: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null }>; /** * Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation. * Tags: saved_query_column_annotations * Access as: posthog.savedQueryColumnAnnotationsRetrieve() */ savedQueryColumnAnnotationsRetrieve: () => Promise<{ id: string; saved_query: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null }>; /** * Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation. * Tags: saved_query_column_annotations * Access as: posthog.savedQueryColumnAnnotationsUpdate() */ savedQueryColumnAnnotationsUpdate: () => Promise<{ id: string; saved_query: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null }>; /** * Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation. * Tags: saved_query_column_annotations * Access as: posthog.savedQueryColumnAnnotationsPartialUpdate() */ savedQueryColumnAnnotationsPartialUpdate: () => Promise<{ id: string; saved_query: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null }>; /** * Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation. * Tags: saved_query_column_annotations * Access as: posthog.savedQueryColumnAnnotationsDestroy() */ savedQueryColumnAnnotationsDestroy: () => Promise; /** * Create, read, update and delete scheduled changes. * Tags: scheduled_changes * Access as: posthog.scheduledChangesList() */ scheduledChangesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; is_recurring?: boolean; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | null; cron_expression?: string | null; last_executed_at: string | null; end_date?: string | null; timezone: string | null })[] }>; /** * Create, read, update and delete scheduled changes. * Tags: scheduled_changes * Access as: posthog.scheduledChangesCreate() */ scheduledChangesCreate: () => Promise<{ id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; is_recurring?: boolean; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | null; cron_expression?: string | null; last_executed_at: string | null; end_date?: string | null; timezone: string | null }>; /** * Create, read, update and delete scheduled changes. * Tags: scheduled_changes * Access as: posthog.scheduledChangesRetrieve() */ scheduledChangesRetrieve: () => Promise<{ id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; is_recurring?: boolean; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | null; cron_expression?: string | null; last_executed_at: string | null; end_date?: string | null; timezone: string | null }>; /** * Create, read, update and delete scheduled changes. * Tags: scheduled_changes * Access as: posthog.scheduledChangesUpdate() */ scheduledChangesUpdate: () => Promise<{ id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; is_recurring?: boolean; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | null; cron_expression?: string | null; last_executed_at: string | null; end_date?: string | null; timezone: string | null }>; /** * Create, read, update and delete scheduled changes. * Tags: scheduled_changes * Access as: posthog.scheduledChangesPartialUpdate() */ scheduledChangesPartialUpdate: () => Promise<{ id: number; team_id: number; record_id: string; model_name: "FeatureFlag"; payload: unknown; scheduled_at: string; executed_at: string | null; failure_reason: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string; is_recurring?: boolean; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | null; cron_expression?: string | null; last_executed_at: string | null; end_date?: string | null; timezone: string | null }>; /** * Create, read, update and delete scheduled changes. * Tags: scheduled_changes * Access as: posthog.scheduledChangesDestroy() */ scheduledChangesDestroy: () => Promise; /** * * Tags: schema_property_groups * Access as: posthog.schemaPropertyGroupsList() */ schemaPropertyGroupsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * * Tags: schema_property_groups * Access as: posthog.schemaPropertyGroupsCreate() */ schemaPropertyGroupsCreate: () => Promise<{ id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: schema_property_groups * Access as: posthog.schemaPropertyGroupsRetrieve() */ schemaPropertyGroupsRetrieve: () => Promise<{ id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: schema_property_groups * Access as: posthog.schemaPropertyGroupsUpdate() */ schemaPropertyGroupsUpdate: () => Promise<{ id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: schema_property_groups * Access as: posthog.schemaPropertyGroupsPartialUpdate() */ schemaPropertyGroupsPartialUpdate: () => Promise<{ id: string; name: string; description?: string; properties?: ({ id: string; name: string; property_type: "DateTime" | "String" | "Numeric" | "Boolean" | "Object"; is_required?: boolean; is_optional_in_types?: boolean; description?: string; created_at: string; updated_at: string })[]; events: ({ id: string; name: string })[]; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } }>; /** * * Tags: schema_property_groups * Access as: posthog.schemaPropertyGroupsDestroy() */ schemaPropertyGroupsDestroy: () => Promise; /** * Get SDK health report for a project * Tags: sdk_health, sdk_health * Access as: posthog.sdkHealthReportRetrieve() */ sdkHealthReportRetrieve: () => Promise<{ overall_health: "healthy" | "needs_attention"; health: "success" | "warning" | "danger"; needs_updating_count: number; team_sdk_count: number; sdks: ({ lib: string; readable_name: string; latest_version: string; needs_updating: boolean; is_outdated: boolean; is_old: boolean; severity: "none" | "warning" | "danger"; reason: string; banners: (string)[]; releases: ({ version: string; count: number; max_timestamp: string; release_date: string | null; days_since_release: number | null; released_ago: string | null; is_outdated: boolean; is_old: boolean; needs_updating: boolean; is_current_or_newer: boolean; status_reason: string; sql_query: string; activity_page_url: string })[]; outdated_traffic_alerts: ({ version: string; threshold_percent: number })[] })[] }>; /** * API for retrieving and managing stored group session summaries. * Tags: session_group_summaries * Access as: posthog.sessionGroupSummariesList() */ sessionGroupSummariesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; title: string; session_count: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } })[] }>; /** * API for retrieving and managing stored group session summaries. * Tags: session_group_summaries * Access as: posthog.sessionGroupSummariesCreate() */ sessionGroupSummariesCreate: () => Promise<{ id: string; title: string; session_ids: (string)[]; summary: unknown; extra_summary_context: unknown; run_metadata: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * API for retrieving and managing stored group session summaries. * Tags: session_group_summaries * Access as: posthog.sessionGroupSummariesRetrieve() */ sessionGroupSummariesRetrieve: () => Promise<{ id: string; title: string; session_ids: (string)[]; summary: unknown; extra_summary_context: unknown; run_metadata: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * API for retrieving and managing stored group session summaries. * Tags: session_group_summaries * Access as: posthog.sessionGroupSummariesUpdate() */ sessionGroupSummariesUpdate: () => Promise<{ id: string; title: string; session_ids: (string)[]; summary: unknown; extra_summary_context: unknown; run_metadata: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * API for retrieving and managing stored group session summaries. * Tags: session_group_summaries * Access as: posthog.sessionGroupSummariesPartialUpdate() */ sessionGroupSummariesPartialUpdate: () => Promise<{ id: string; title: string; session_ids: (string)[]; summary: unknown; extra_summary_context: unknown; run_metadata: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; team: number }>; /** * API for retrieving and managing stored group session summaries. * Tags: session_group_summaries * Access as: posthog.sessionGroupSummariesDestroy() */ sessionGroupSummariesDestroy: () => Promise; /** * Override list to include synthetic playlists. Synthetics have no DB row, so we compute each one's position in the merged sort and split the requested page between synthetics and a DB queryset slice. The merge/rank/sort is all in-memory, so each phase is wrapped in a span and the input sizes are recorded as span attributes — a slow response on a team with many playlists then shows up as a wide span against a large db_count. * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsList() */ sessionRecordingPlaylistsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string })[] }>; /** * * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsCreate() */ sessionRecordingPlaylistsCreate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string }>; /** * * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsRetrieve() */ sessionRecordingPlaylistsRetrieve: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string }>; /** * * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsUpdate() */ sessionRecordingPlaylistsUpdate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string }>; /** * * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsPartialUpdate() */ sessionRecordingPlaylistsPartialUpdate: () => Promise<{ id: number; short_id: string; name?: string | null; derived_name?: string | null; description?: string; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; filters?: unknown; last_modified_at: string; last_modified_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; recordings_counts: { [key: string]: { [key: string]: number | boolean | null | undefined } | undefined }; type?: "collection" | "filters" | unknown; is_synthetic: boolean; _create_in_folder?: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsDestroy() */ sessionRecordingPlaylistsDestroy: () => Promise; /** * * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsRecordingsRetrieve() */ sessionRecordingPlaylistsRecordingsRetrieve: () => Promise; /** * * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsRecordingsCreate() */ sessionRecordingPlaylistsRecordingsCreate: () => Promise; /** * * Tags: replay, session_recording_playlists * Access as: posthog.sessionRecordingPlaylistsRecordingsDestroy() */ sessionRecordingPlaylistsRecordingsDestroy: () => Promise; /** * * Tags: replay, session_recordings * Access as: posthog.sessionRecordingsList() */ sessionRecordingsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; distinct_id: string | null; viewed: boolean; viewers: (string)[]; recording_duration: number; active_seconds: number | null; inactive_seconds: number | null; start_time: string | null; end_time: string | null; click_count: number | null; keypress_count: number | null; mouse_activity_count: number | null; console_log_count: number | null; console_warn_count: number | null; console_error_count: number | null; start_url: string | null; person?: { id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }; retention_period_days: number | null; expiry_time: string | null; recording_ttl: number | null; snapshot_source: string | null; snapshot_library: string | null; ongoing: boolean; activity_score: number | null; has_summary: boolean; summary_outcome: { description?: string | null; success?: boolean | null } | null; external_references: ({ [key: string]: unknown })[]; matches_filters: boolean })[] }>; /** * * Tags: replay, session_recordings * Access as: posthog.sessionRecordingsRetrieve() */ sessionRecordingsRetrieve: () => Promise<{ id: string; distinct_id: string | null; viewed: boolean; viewers: (string)[]; recording_duration: number; active_seconds: number | null; inactive_seconds: number | null; start_time: string | null; end_time: string | null; click_count: number | null; keypress_count: number | null; mouse_activity_count: number | null; console_log_count: number | null; console_warn_count: number | null; console_error_count: number | null; start_url: string | null; person?: { id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }; retention_period_days: number | null; expiry_time: string | null; recording_ttl: number | null; snapshot_source: string | null; snapshot_library: string | null; ongoing: boolean; activity_score: number | null; has_summary: boolean; summary_outcome: { description?: string | null; success?: boolean | null } | null; external_references: ({ [key: string]: unknown })[]; matches_filters: boolean }>; /** * * Tags: replay, session_recordings * Access as: posthog.sessionRecordingsUpdate() */ sessionRecordingsUpdate: () => Promise<{ id: string; distinct_id: string | null; viewed: boolean; viewers: (string)[]; recording_duration: number; active_seconds: number | null; inactive_seconds: number | null; start_time: string | null; end_time: string | null; click_count: number | null; keypress_count: number | null; mouse_activity_count: number | null; console_log_count: number | null; console_warn_count: number | null; console_error_count: number | null; start_url: string | null; person?: { id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }; retention_period_days: number | null; expiry_time: string | null; recording_ttl: number | null; snapshot_source: string | null; snapshot_library: string | null; ongoing: boolean; activity_score: number | null; has_summary: boolean; summary_outcome: { description?: string | null; success?: boolean | null } | null; external_references: ({ [key: string]: unknown })[]; matches_filters: boolean }>; /** * * Tags: replay, session_recordings * Access as: posthog.sessionRecordingsPartialUpdate() */ sessionRecordingsPartialUpdate: () => Promise<{ id: string; distinct_id: string | null; viewed: boolean; viewers: (string)[]; recording_duration: number; active_seconds: number | null; inactive_seconds: number | null; start_time: string | null; end_time: string | null; click_count: number | null; keypress_count: number | null; mouse_activity_count: number | null; console_log_count: number | null; console_warn_count: number | null; console_error_count: number | null; start_url: string | null; person?: { id: number; name: string; distinct_ids: (string)[]; properties?: unknown; created_at: string; uuid: string; last_seen_at: string | null }; retention_period_days: number | null; expiry_time: string | null; recording_ttl: number | null; snapshot_source: string | null; snapshot_library: string | null; ongoing: boolean; activity_score: number | null; has_summary: boolean; summary_outcome: { description?: string | null; success?: boolean | null } | null; external_references: ({ [key: string]: unknown })[]; matches_filters: boolean }>; /** * * Tags: replay, session_recordings * Access as: posthog.sessionRecordingsDestroy() */ sessionRecordingsDestroy: () => Promise; /** * * Tags: session_recordings * Access as: posthog.sessionRecordingsSharingList() */ sessionRecordingsSharingList: () => Promise<({ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] })[]>; /** * Create a new password for the sharing configuration. * Tags: session_recordings * Access as: posthog.sessionRecordingsSharingPasswordsCreate() */ sessionRecordingsSharingPasswordsCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a password from the sharing configuration. * Tags: session_recordings * Access as: posthog.sessionRecordingsSharingPasswordsDestroy() */ sessionRecordingsSharingPasswordsDestroy: () => Promise; /** * * Tags: session_recordings * Access as: posthog.sessionRecordingsSharingRefreshCreate() */ sessionRecordingsSharingRefreshCreate: () => Promise<{ created_at: string; enabled?: boolean; access_token: string | null; settings?: unknown; password_required?: boolean; share_passwords: ({ id: number; created_at: string; note?: string | null; created_by_email: string; is_active: boolean })[] }>; /** * Delete a batch of session recordings by session ID. Deletion is permanent and cannot be undone. IDs that don't match an existing recording are skipped and counted in `total_requested` but not `deleted_count`. * Tags: replay, session_recordings * Access as: posthog.sessionRecordingsBulkDeleteCreate() */ sessionRecordingsBulkDeleteCreate: () => Promise<{ success: boolean; deleted_count: number; total_requested: number; failed_ids: (string)[] }>; /** * Retrieve the team's session summaries configuration (product context used to tailor single-session replay summaries). * Tags: session_summaries * Access as: posthog.retrieveSessionSummariesConfig() */ retrieveSessionSummariesConfig: () => Promise<{ product_context?: string; custom_tags?: { [key: string]: string | undefined } }>; /** * Update the team's session summaries configuration (product context used to tailor single-session replay summaries). * Tags: session_summaries * Access as: posthog.updateSessionSummariesConfig() */ updateSessionSummariesConfig: () => Promise<{ product_context?: string; custom_tags?: { [key: string]: string | undefined } }>; /** * Generate AI summary for a group of session recordings to find patterns and generate a notebook. * Tags: session_summaries * Access as: posthog.createSessionSummaries() */ createSessionSummaries: () => Promise<{ session_ids: (string)[]; focus_area?: string }>; /** * Generate AI individual summary for each session, without grouping. * Tags: replay, session_summaries * Access as: posthog.createSessionSummariesIndividually() */ createSessionSummariesIndividually: () => Promise<{ session_ids: (string)[]; focus_area?: string }>; /** * * Tags: sessions * Access as: posthog.sessionsPropertyDefinitionsRetrieve() */ sessionsPropertyDefinitionsRetrieve: () => Promise; /** * * Tags: sessions * Access as: posthog.sessionsValuesRetrieve() */ sessionsValuesRetrieve: () => Promise; /** * Return current processing state including pause status. * Tags: signals * Access as: posthog.signalsProcessingList() */ signalsProcessingList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ paused_until: string | null })[] }>; /** * View and control signal processing pipeline state for a team. * Tags: signals * Access as: posthog.signalsProcessingPauseUpdate() */ signalsProcessingPauseUpdate: () => Promise<{ status: string; paused_until: string }>; /** * View and control signal processing pipeline state for a team. * Tags: signals * Access as: posthog.signalsProcessingPauseDestroy() */ signalsProcessingPauseDestroy: () => Promise<{ status: string; paused_until: string }>; /** * * Tags: signals * Access as: posthog.signalsReportsList() */ signalsReportsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; title: string | null; summary: string | null; status: "potential" | "candidate" | "in_progress" | "pending_input" | "ready" | "resolved" | "failed" | "deleted" | "suppressed"; total_weight: number; signal_count: number; signals_at_run: number; created_at: string; updated_at: string; artefact_count: number; priority: string | null; actionability: string | null; already_addressed: boolean | null; dismissal_reason: string | null; dismissal_note: string | null; is_suggested_reviewer: boolean; source_products: (string)[]; scout_name: string | null; implementation_pr_url: string | null })[] }>; /** * * Tags: signals * Access as: posthog.signalsReportsRetrieve() */ signalsReportsRetrieve: () => Promise<{ id: string; title: string | null; summary: string | null; status: "potential" | "candidate" | "in_progress" | "pending_input" | "ready" | "resolved" | "failed" | "deleted" | "suppressed"; total_weight: number; signal_count: number; signals_at_run: number; created_at: string; updated_at: string; artefact_count: number; priority: string | null; actionability: string | null; already_addressed: boolean | null; dismissal_reason: string | null; dismissal_note: string | null; is_suggested_reviewer: boolean; source_products: (string)[]; scout_name: string | null; implementation_pr_url: string | null }>; /** * Edit a report's title or summary * Tags: signals * Access as: posthog.signalsReportsPartialUpdate() */ signalsReportsPartialUpdate: () => Promise<{ id: string; title: string | null; summary: string | null; status: "potential" | "candidate" | "in_progress" | "pending_input" | "ready" | "resolved" | "failed" | "deleted" | "suppressed"; total_weight: number; signal_count: number; signals_at_run: number; created_at: string; updated_at: string; artefact_count: number; priority: string | null; actionability: string | null; already_addressed: boolean | null; dismissal_reason: string | null; dismissal_note: string | null; is_suggested_reviewer: boolean; source_products: (string)[]; scout_name: string | null; implementation_pr_url: string | null }>; /** * List a report's signals * Tags: signals * Access as: posthog.signalsReportsSignalsRetrieve() */ signalsReportsSignalsRetrieve: () => Promise<{ report: { id: string; title: string | null; summary: string | null; status: "potential" | "candidate" | "in_progress" | "pending_input" | "ready" | "resolved" | "failed" | "deleted" | "suppressed"; total_weight: number; signal_count: number; signals_at_run: number; created_at: string; updated_at: string; artefact_count: number; priority: string | null; actionability: string | null; already_addressed: boolean | null; dismissal_reason: string | null; dismissal_note: string | null; is_suggested_reviewer: boolean; source_products: (string)[]; scout_name: string | null; implementation_pr_url: string | null }; signals: ({ signal_id: string; content: string; source_product: "session_replay" | "llm_analytics" | "github" | "linear" | "zendesk" | "conversations" | "error_tracking" | "endpoints" | "pganalyze" | "signals_scout" | "logs" | "health_checks" | "replay_vision"; source_type: "session_analysis_cluster" | "session_problem" | "evaluation" | "evaluation_report" | "issue" | "ticket" | "issue_created" | "issue_reopened" | "issue_spiking" | "endpoint_execution_failed" | "endpoint_breakdown_limit_exceeded" | "cross_source_issue" | "alert_state_change" | "health_issue" | "scanner_finding"; source_id: string; weight: number; timestamp: string; extra: { session_id: string; segment_title: string; start_time: string; end_time: string; problem_type: "confusion" | "abandonment" | "blocking_exception" | "non_blocking_exception" | "failure"; distinct_id: string; session_start_time?: string | null; session_end_time?: string | null; session_duration?: number | null; session_active_seconds?: number | null; exported_asset_id?: number | null; event_history?: ({ event: string; timestamp: string; current_url?: string | null; event_type?: string | null; interaction_text?: string | null })[] | null } | { evaluation_id: string; target_event_id?: string | null; target_event_type?: string | null; trace_id: string; model?: string | null; provider?: string | null } | { evaluation_id: string; evaluation_name: string; evaluation_description: string; report_id: string; report_run_id: string; period_start: string; period_end: string } | { url: string; type: string | null; tags: (string)[]; created_at: string; priority: string | null; status: string } | { html_url: string; number: number; labels: (string)[]; created_at: string; updated_at: string; locked: boolean; state: string } | { url: string; identifier: string; number: number; priority: number; priority_label: string; labels: (string)[]; state_name: string | null; state_type: string | null; team_name: string | null; created_at: string; updated_at: string } | { ticket_number: number; channel_source: string; channel_detail: string | null; status: string; priority: string | null; created_at: string; email_subject: string | null } | { fingerprint: string } | { severity: string | null; references: ({ kind?: string | null; name?: string | null; url?: string | null; queryText?: string | null })[]; database_id: string | null; server_human_id: string | null; server_name: string | null; synced_at: string } | { endpoint_name: string; endpoint_version: number | null; materialized: boolean; saved_query_id: string | null; error_class: string; error_message: string } | { endpoint_name: string; breakdown_limit: number } | { scout_run_id: string; task_run_id: string; task_id?: string | null; finding_id: string; skill_name: string; skill_version: number; confidence: number; severity?: "P0" | "P1" | "P2" | "P3" | "P4" | null; hypothesis?: string | null; evidence: ({ source_product: string; entity_id?: string | null; summary: string })[]; dedupe_keys?: (string)[] | null; tags?: (string)[] | null; time_range?: { date_from: string; date_to: string } | null; mcp_trace_id?: string | null } | { alert_id: string; alert_name: string; action: "firing" | "broken"; threshold_count: number; threshold_operator: "above" | "below"; window_minutes: number; result_count: number | null; consecutive_failures: number; filters: { [key: string]: unknown }; url: string } | { scanner_id: string; scanner_name: string; scanner_type: string; observation_id: string; session_id: string; confidence: number; problem_type: string; start_time: number; end_time: number; url: string; exported_asset_id: number; distinct_id?: string | null; recording_start_time?: string | null; recording_end_time?: string | null; recording_duration?: number | null; recording_active_seconds?: number | null } | { kind: string; severity: "critical" | "warning" | "info"; issue_id: string; title: string; summary: string; link: string; url: string; payload: { [key: string]: unknown } }; match_metadata?: { parent_signal_id: string; match_query: string; reason: string; specificity?: { pr_title: string; specific_enough: boolean; reason: string } | null } | { reason: string; rejected_signal_ids: (string)[]; specificity_rejection?: { pr_title: string; specific_enough: boolean; reason: string } | null } | null })[] }>; /** * Transition a report to a new state. The model validates allowed transitions. The request body is validated by SignalReportStateRequestSerializer — only the fields it declares (state, dismissal_reason, dismissal_note, snooze_for) are read, and only snooze_for is ever forwarded to transition_to. Any other key is ignored, so internal transition_to kwargs (reset_weight, error, ...) can't be injected. Body: { "state": "suppressed" | "potential", # Optional dismissal feedback (honored when state == "suppressed" or "potential"): "dismissal_reason": "", "dismissal_note": "free-form text", # Optional, only honored for state == "potential": "snooze_for": , } * Tags: signals * Access as: posthog.signalsReportsStateCreate() */ signalsReportsStateCreate: () => Promise<{ id: string; title: string | null; summary: string | null; status: "potential" | "candidate" | "in_progress" | "pending_input" | "ready" | "resolved" | "failed" | "deleted" | "suppressed"; total_weight: number; signal_count: number; signals_at_run: number; created_at: string; updated_at: string; artefact_count: number; priority: string | null; actionability: string | null; already_addressed: boolean | null; dismissal_reason: string | null; dismissal_note: string | null; is_suggested_reviewer: boolean; source_products: (string)[]; scout_name: string | null; implementation_pr_url: string | null }>; /** * List a report's artefacts * Tags: signals * Access as: posthog.signalsReportArtefactsList() */ signalsReportArtefactsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; type: "video_segment" | "safety_judgment" | "actionability_judgment" | "priority_judgment" | "signal_finding" | "repo_selection" | "suggested_reviewers" | "dismissal" | "code_reference" | "commit" | "task_run" | "note" | "title_change" | "summary_change"; content: { [key: string]: unknown } | (unknown)[]; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; first_name: string; last_name: string; email: string } | null; task_id: string | null })[] }>; /** * Append an artefact to a report * Tags: signals * Access as: posthog.signalsReportArtefactsCreate() */ signalsReportArtefactsCreate: () => Promise<{ id: string; report_id: string; type: string; content: unknown; created_at: string; updated_at: string | null; task_id: string | null }>; /** * Get a single artefact * Tags: signals * Access as: posthog.signalsReportArtefactsRetrieve() */ signalsReportArtefactsRetrieve: () => Promise<{ id: string; type: "video_segment" | "safety_judgment" | "actionability_judgment" | "priority_judgment" | "signal_finding" | "repo_selection" | "suggested_reviewers" | "dismissal" | "code_reference" | "commit" | "task_run" | "note" | "title_change" | "summary_change"; content: { [key: string]: unknown } | (unknown)[]; created_at: string; updated_at: string | null; created_by: { id: number; uuid: string; first_name: string; last_name: string; email: string } | null; task_id: string | null }>; /** * Replace an artefact's content * Tags: signals * Access as: posthog.signalsReportArtefactsPartialUpdate() */ signalsReportArtefactsPartialUpdate: () => Promise<{ id: string; report_id: string; type: string; content: unknown; created_at: string; updated_at: string | null; task_id: string | null }>; /** * Delete an artefact * Tags: signals * Access as: posthog.signalsReportArtefactsDestroy() */ signalsReportArtefactsDestroy: () => Promise; /** * Fetch the diff for a commit artefact * Tags: signals * Access as: posthog.signalsReportArtefactsDiff() */ signalsReportArtefactsDiff: () => Promise<{ diff: string; truncated: boolean }>; /** * Transition many reports to a new state in one call. Each id is processed independently: a report whose transition isn't allowed from its current status is reported as `skipped` (a 409 on the single-report endpoint) and the rest still go through. Returns one result per requested id (in request order, after de-duplication) plus per-outcome counts. The whole call is 200 even on partial failure — inspect `results` / the counts to see what happened. * Tags: signals * Access as: posthog.signalsReportsBulkStateCreate() */ signalsReportsBulkStateCreate: () => Promise<{ results: ({ id: string; outcome: string; status?: string | null; detail?: string | null })[]; transitioned_count: number; skipped_count: number; failed_count: number; not_found_count: number }>; /** * List scout configs * Tags: signals * Access as: posthog.signalsScoutConfigList() */ signalsScoutConfigList: () => Promise<({ id: string; skill_name: string; description: string; scout_origin: "canonical" | "custom"; enabled?: boolean; emit?: boolean; run_interval_minutes?: number; last_run_at: string | null; created_at: string })[]>; /** * Create a scout config * Tags: signals * Access as: posthog.signalsScoutConfigCreate() */ signalsScoutConfigCreate: () => Promise<{ id: string; skill_name: string; description: string; scout_origin: "canonical" | "custom"; enabled?: boolean; emit?: boolean; run_interval_minutes?: number; last_run_at: string | null; created_at: string }>; /** * Update a scout config * Tags: signals * Access as: posthog.signalsScoutConfigUpdate() */ signalsScoutConfigUpdate: () => Promise<{ id: string; skill_name: string; description: string; scout_origin: "canonical" | "custom"; enabled?: boolean; emit?: boolean; run_interval_minutes?: number; last_run_at: string | null; created_at: string }>; /** * Delete a scout config * Tags: signals * Access as: posthog.signalsScoutConfigDestroy() */ signalsScoutConfigDestroy: () => Promise; /** * Run a scout now * Tags: signals * Access as: posthog.signalsScoutConfigRun() */ signalsScoutConfigRun: () => Promise; /** * Sync scout configs * Tags: signals * Access as: posthog.signalsScoutConfigSync() */ signalsScoutConfigSync: () => Promise<({ id: string; skill_name: string; description: string; scout_origin: "canonical" | "custom"; enabled?: boolean; emit?: boolean; run_interval_minutes?: number; last_run_at: string | null; created_at: string })[]>; /** * List project members for reviewer routing * Tags: signals * Access as: posthog.signalsScoutMembersList() */ signalsScoutMembersList: () => Promise<({ user_uuid: string; email: string; first_name: string; last_name: string; github_login: string | null })[]>; /** * Get scout metadata * Tags: signals * Access as: posthog.signalsScoutMetadataGet() */ signalsScoutMetadataGet: () => Promise<{ enrolled: boolean; banner_message: string | null; limits: { max_runs_per_tick: number; max_runs_per_day: number | null; runs_today: number; runs_remaining_today: number | null } }>; /** * Get the current project profile * Tags: signals * Access as: posthog.signalsScoutProjectProfileGet() */ signalsScoutProjectProfileGet: () => Promise<{ profile_id: string; computed_at: string; expires_at: string; source_version: string; payload: { inventory: { project_context: { product_description: string | null; app_urls: (string)[] }; products_in_use: (string)[]; product_intents: ({ product_type: string; activated_at: string | null; created_at: string | null })[]; integrations: ({ kind: string; created_at: string | null })[]; external_data_sources: ({ source_type: string; status: string; prefix: string; created_at: string | null; last_run_at: string | null; latest_error: string | null })[]; signal_source_configs: { enabled: ({ source_product: string; source_type: string })[]; disabled: ({ source_product: string; source_type: string })[] }; emit_eligibility: { ai_processing_approved: boolean; source_enabled: boolean; can_emit: boolean; remediation: string | null }; existing_inbox_reports: { total: number; by_status: ({ status: string; count: number })[] }; recent_activity: { window_days: number; by_scope: ({ scope: string; edits: number; users: number; last_edit: string | null })[] }; recent_reviewer_corrections: { window_days: number; corrections: ({ report_id: string; report_title: string | null; before: (string)[]; after: (string)[]; at: string | null })[] }; recent_dashboards: ({ id: number; name: string; last_accessed_at: string | null; last_refresh: string | null; created_at: string | null })[]; recent_surveys: { total_count: number; active_count: number; recent: ({ id: string; name: string; type: string; status: string; updated_at: string | null })[] }; recent_feature_flags: { total_count: number; active_count: number; recent: ({ id: number; key: string; name: string; active: boolean; updated_at: string | null })[] }; recent_experiments: { total_count: number; running_count: number; recent: ({ id: number; name: string; status: string; feature_flag_key: string | null; updated_at: string | null })[] }; recent_alerts: { total_count: number; enabled_count: number; recent: ({ id: string; name: string; enabled: boolean; state: string; calculation_interval: string | null; insight_id: number | null; created_at: string | null })[] }; recent_hog_functions: { total_count: number; enabled_count: number; recent: ({ id: string; name: string; type: string | null; kind: string | null; enabled: boolean; updated_at: string | null })[] }; recent_hog_flows: { total_count: number; active_count: number; recent: ({ id: string; name: string; status: string; updated_at: string | null })[] }; recent_notebooks: { total_count: number; recent: ({ short_id: string; title: string; last_modified_at: string | null })[] }; recent_cohorts: { total_count: number; recent: ({ id: number; name: string; is_static: boolean; count: number | null; created_at: string | null })[] }; recent_actions: { total_count: number; recent: ({ id: number; name: string; updated_at: string | null })[] }; top_events: unknown[] | null } } }>; /** * Search recent agent runs * Tags: signals * Access as: posthog.signalsScoutRunsList() */ signalsScoutRunsList: () => Promise<({ run_id: string; skill_name: string; skill_version: number; status: string; created_at: string; started_at: string; completed_at: string | null; task_id?: string | null; task_run_id?: string | null; task_url?: string | null; summary: string; error?: string | null; failure_reason?: string | null; emitted_count: number; emitted_finding_ids: (string)[]; emitted_report_ids: (string)[]; edited_report_ids: (string)[] })[]>; /** * Get a run by ID * Tags: signals * Access as: posthog.signalsScoutRunsRetrieve() */ signalsScoutRunsRetrieve: () => Promise<{ run_id: string; skill_name: string; skill_version: number; status: string; created_at: string; started_at: string; completed_at: string | null; task_id?: string | null; task_run_id?: string | null; task_url?: string | null; summary: string; error?: string | null; failure_reason?: string | null; emitted_count: number; emitted_finding_ids: (string)[]; emitted_report_ids: (string)[]; edited_report_ids: (string)[] }>; /** * Edit an existing report for a run * Tags: signals * Access as: posthog.signalsScoutEditReport() */ signalsScoutEditReport: () => Promise<{ report_id: string; updated_fields: (string)[]; note_appended: boolean; reviewers_set: boolean }>; /** * List a run's emitted findings * Tags: signals * Access as: posthog.signalsScoutRunsEmissions() */ signalsScoutRunsEmissions: () => Promise<({ id: string; run_id: string; finding_id: string; description: string; weight: number; confidence: number; severity: "P0" | "P1" | "P2" | "P3" | "P4" | null; tags: (string)[]; source_id: string; emitted_at: string })[]>; /** * List the inbox reports a run's findings linked to * Tags: signals * Access as: posthog.signalsScoutRunsEmissionReports() */ signalsScoutRunsEmissionReports: () => Promise<({ finding_id: string; source_id: string; report: { id: string; title: string | null; status: string } | null })[]>; /** * Author a full report for a run * Tags: signals * Access as: posthog.signalsScoutEmitReport() */ signalsScoutEmitReport: () => Promise<{ report_id: string | null; report_status: string | null; emitted: boolean; skipped_reason: string | null; safety_explanation: string | null; remediation: string | null }>; /** * Emit a finding for a run * Tags: signals * Access as: posthog.signalsScoutEmitSignal() */ signalsScoutEmitSignal: () => Promise<{ finding_id: string; emitted: boolean; skipped_reason: string | null; remediation: string | null }>; /** * List emitted findings for many runs at once * Tags: signals * Access as: posthog.signalsScoutRunsEmissionsBatch() */ signalsScoutRunsEmissionsBatch: () => Promise<({ id: string; run_id: string; finding_id: string; description: string; weight: number; confidence: number; severity: "P0" | "P1" | "P2" | "P3" | "P4" | null; tags: (string)[]; source_id: string; emitted_at: string })[]>; /** * List recent emitted findings across all runs * Tags: signals * Access as: posthog.signalsScoutRunsRecentEmissions() */ signalsScoutRunsRecentEmissions: () => Promise<({ id: string; run_id: string; finding_id: string; description: string; weight: number; confidence: number; severity: "P0" | "P1" | "P2" | "P3" | "P4" | null; tags: (string)[]; source_id: string; emitted_at: string })[]>; /** * List the inbox reports many runs' findings linked to * Tags: signals * Access as: posthog.signalsScoutRunsEmissionReportsBatch() */ signalsScoutRunsEmissionReportsBatch: () => Promise<({ finding_id: string; source_id: string; report: { id: string; title: string | null; status: string } | null })[]>; /** * Summarise recently emitted findings across the fleet * Tags: signals * Access as: posthog.signalsScoutRunsFindingsSummary() */ signalsScoutRunsFindingsSummary: () => Promise<{ count: number; scout_count: number; latest_at: string | null }>; /** * Search the scout scratchpad * Tags: signals * Access as: posthog.signalsScoutScratchpadSearch() */ signalsScoutScratchpadSearch: () => Promise<({ key: string; content: string; created_at: string | null; updated_at: string | null; created_by_run_id: string | null; created_by_skill?: string | null; created_by_run_url?: string | null })[]>; /** * Remember a scratchpad entry * Tags: signals * Access as: posthog.signalsScoutScratchpadRemember() */ signalsScoutScratchpadRemember: () => Promise<{ key: string; content: string; created_at: string | null; updated_at: string | null; created_by_run_id: string | null; created_by_skill?: string | null; created_by_run_url?: string | null }>; /** * Forget a scratchpad entry by key * Tags: signals * Access as: posthog.signalsScoutScratchpadForget() */ signalsScoutScratchpadForget: () => Promise<{ deleted: boolean }>; /** * * Tags: signals * Access as: posthog.signalsSourceConfigsList() */ signalsSourceConfigsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; source_product: "session_replay" | "llm_analytics" | "github" | "linear" | "zendesk" | "conversations" | "error_tracking" | "pganalyze" | "signals_scout" | "logs" | "health_checks" | "endpoints" | "replay_vision"; source_type: "session_analysis_cluster" | "evaluation" | "evaluation_report" | "issue" | "ticket" | "issue_created" | "issue_reopened" | "issue_spiking" | "cross_source_issue" | "alert_state_change" | "health_issue" | "endpoint_execution_failed" | "endpoint_breakdown_limit_exceeded" | "scanner_finding"; enabled?: boolean; config?: unknown; created_at: string; updated_at: string; status: string | null })[] }>; /** * * Tags: signals * Access as: posthog.signalsSourceConfigsCreate() */ signalsSourceConfigsCreate: () => Promise<{ id: string; source_product: "session_replay" | "llm_analytics" | "github" | "linear" | "zendesk" | "conversations" | "error_tracking" | "pganalyze" | "signals_scout" | "logs" | "health_checks" | "endpoints" | "replay_vision"; source_type: "session_analysis_cluster" | "evaluation" | "evaluation_report" | "issue" | "ticket" | "issue_created" | "issue_reopened" | "issue_spiking" | "cross_source_issue" | "alert_state_change" | "health_issue" | "endpoint_execution_failed" | "endpoint_breakdown_limit_exceeded" | "scanner_finding"; enabled?: boolean; config?: unknown; created_at: string; updated_at: string; status: string | null }>; /** * * Tags: signals * Access as: posthog.signalsSourceConfigsRetrieve() */ signalsSourceConfigsRetrieve: () => Promise<{ id: string; source_product: "session_replay" | "llm_analytics" | "github" | "linear" | "zendesk" | "conversations" | "error_tracking" | "pganalyze" | "signals_scout" | "logs" | "health_checks" | "endpoints" | "replay_vision"; source_type: "session_analysis_cluster" | "evaluation" | "evaluation_report" | "issue" | "ticket" | "issue_created" | "issue_reopened" | "issue_spiking" | "cross_source_issue" | "alert_state_change" | "health_issue" | "endpoint_execution_failed" | "endpoint_breakdown_limit_exceeded" | "scanner_finding"; enabled?: boolean; config?: unknown; created_at: string; updated_at: string; status: string | null }>; /** * * Tags: signals * Access as: posthog.signalsSourceConfigsUpdate() */ signalsSourceConfigsUpdate: () => Promise<{ id: string; source_product: "session_replay" | "llm_analytics" | "github" | "linear" | "zendesk" | "conversations" | "error_tracking" | "pganalyze" | "signals_scout" | "logs" | "health_checks" | "endpoints" | "replay_vision"; source_type: "session_analysis_cluster" | "evaluation" | "evaluation_report" | "issue" | "ticket" | "issue_created" | "issue_reopened" | "issue_spiking" | "cross_source_issue" | "alert_state_change" | "health_issue" | "endpoint_execution_failed" | "endpoint_breakdown_limit_exceeded" | "scanner_finding"; enabled?: boolean; config?: unknown; created_at: string; updated_at: string; status: string | null }>; /** * * Tags: signals * Access as: posthog.signalsSourceConfigsPartialUpdate() */ signalsSourceConfigsPartialUpdate: () => Promise<{ id: string; source_product: "session_replay" | "llm_analytics" | "github" | "linear" | "zendesk" | "conversations" | "error_tracking" | "pganalyze" | "signals_scout" | "logs" | "health_checks" | "endpoints" | "replay_vision"; source_type: "session_analysis_cluster" | "evaluation" | "evaluation_report" | "issue" | "ticket" | "issue_created" | "issue_reopened" | "issue_spiking" | "cross_source_issue" | "alert_state_change" | "health_issue" | "endpoint_execution_failed" | "endpoint_breakdown_limit_exceeded" | "scanner_finding"; enabled?: boolean; config?: unknown; created_at: string; updated_at: string; status: string | null }>; /** * * Tags: signals * Access as: posthog.signalsSourceConfigsDestroy() */ signalsSourceConfigsDestroy: () => Promise; /** * List stored AI-generated session summaries for the team, one row per session (latest summary kept). Use to discover which sessions have been summarized and to filter for sessions with specific problems — `has_exceptions=true`, `outcome=failure`, or a custom `session_ids` narrowing. Returns lightweight rows without the full summary JSON; use the retrieve endpoint for the per-segment / per-action detail. * Tags: single_session_summaries * Access as: posthog.singleSessionSummariesList() */ singleSessionSummariesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; session_id: string; distinct_id: string | null; session_start_time: string | null; session_duration: number | null; session_outcome: { [key: string]: unknown } | null; exception_count: number; has_exceptions: boolean; model_used: string | null; visual_confirmation: boolean; extra_summary_context: { [key: string]: unknown } | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null })[] }>; /** * Get the latest stored AI summary for a single session by `session_id`. Returns the full `summary` JSON (segments with named timeline, per-action `abandonment` / `confusion` / `exception` flags, segment outcomes, headline `session_outcome`, optional `sentiment`), the `exception_event_ids` array, the `extra_summary_context` (e.g. `focus_area`) used at generation time, and the `run_metadata` (LLM model used, whether visual confirmation was applied). 404 if no summary has been generated for this session yet — to trigger generation, use the existing `session-recording-summarize` flow rather than this endpoint. * Tags: single_session_summaries * Access as: posthog.singleSessionSummariesRetrieve() */ singleSessionSummariesRetrieve: () => Promise<{ id: string; session_id: string; distinct_id: string | null; session_start_time: string | null; session_duration: number | null; summary: { [key: string]: unknown }; exception_event_ids: (string)[]; extra_summary_context: { [key: string]: unknown } | null; run_metadata: { [key: string]: unknown } | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null }>; /** * List streamlit apps * Tags: streamlit_apps * Access as: posthog.streamlitAppsList() */ streamlitAppsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; short_id: string; name: string; description: string; cpu_cores: number; memory_gb: number; status: string; created_at: string; updated_at: string })[] }>; /** * Create a streamlit app * Tags: streamlit_apps * Access as: posthog.streamlitAppsCreate() */ streamlitAppsCreate: () => Promise<{ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; short_id: string; name: string; description: string; cpu_cores: number; memory_gb: number; status: string; created_at: string; updated_at: string }>; /** * Retrieve a streamlit app * Tags: streamlit_apps * Access as: posthog.streamlitAppsRetrieve() */ streamlitAppsRetrieve: () => Promise<{ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; short_id: string; name: string; description: string; cpu_cores: number; memory_gb: number; status: string; created_at: string; updated_at: string }>; /** * Update a streamlit app * Tags: streamlit_apps * Access as: posthog.streamlitAppsUpdate() */ streamlitAppsUpdate: () => Promise<{ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; short_id: string; name: string; description: string; cpu_cores: number; memory_gb: number; status: string; created_at: string; updated_at: string }>; /** * Partially update a streamlit app * Tags: streamlit_apps * Access as: posthog.streamlitAppsPartialUpdate() */ streamlitAppsPartialUpdate: () => Promise<{ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; short_id: string; name: string; description: string; cpu_cores: number; memory_gb: number; status: string; created_at: string; updated_at: string }>; /** * Delete a streamlit app * Tags: streamlit_apps * Access as: posthog.streamlitAppsDestroy() */ streamlitAppsDestroy: () => Promise; /** * Activate an existing app version * Tags: streamlit_apps * Access as: posthog.streamlitAppsActivateVersionCreate() */ streamlitAppsActivateVersionCreate: () => Promise<{ active_version: { created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; version_number: number; zip_hash: string; snapshot_id: string | null; created_at: string } }>; /** * Get iframe connection info for a running app * Tags: streamlit_apps * Access as: posthog.streamlitAppsConnectInfoRetrieve() */ streamlitAppsConnectInfoRetrieve: () => Promise<{ iframe_url: string; expires_in: number }>; /** * Restart the app sandbox * Tags: streamlit_apps * Access as: posthog.streamlitAppsRestartCreate() */ streamlitAppsRestartCreate: () => Promise; /** * Start the app sandbox * Tags: streamlit_apps * Access as: posthog.streamlitAppsStartCreate() */ streamlitAppsStartCreate: () => Promise<{ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; short_id: string; name: string; description: string; cpu_cores: number; memory_gb: number; status: string; created_at: string; updated_at: string }>; /** * Get app sandbox status * Tags: streamlit_apps * Access as: posthog.streamlitAppsStatusRetrieve() */ streamlitAppsStatusRetrieve: () => Promise<{ status: string; restart_count: number; last_error: string; started_at: string | null; last_activity_at: string | null; version_number?: number | null }>; /** * Stop the app sandbox * Tags: streamlit_apps * Access as: posthog.streamlitAppsStopCreate() */ streamlitAppsStopCreate: () => Promise<{ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; short_id: string; name: string; description: string; cpu_cores: number; memory_gb: number; status: string; created_at: string; updated_at: string }>; /** * Upload a new app version * Tags: streamlit_apps * Access as: posthog.streamlitAppsUploadVersionCreate() */ streamlitAppsUploadVersionCreate: () => Promise<{ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; version_number: number; zip_hash: string; snapshot_id: string | null; created_at: string }>; /** * List app versions * Tags: streamlit_apps * Access as: posthog.streamlitAppsVersionsRetrieve() */ streamlitAppsVersionsRetrieve: () => Promise<{ results: ({ created_by?: { id: number; uuid: string; distinct_id: string | null; first_name: string; last_name: string; email: string; is_email_verified: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization: string | null } | null; id: string; version_number: number; zip_hash: string; snapshot_id: string | null; created_at: string })[] }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsList() */ subscriptionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string })[] }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsCreate() */ subscriptionsCreate: () => Promise<{ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsRetrieve() */ subscriptionsRetrieve: () => Promise<{ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsUpdate() */ subscriptionsUpdate: () => Promise<{ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsPartialUpdate() */ subscriptionsPartialUpdate: () => Promise<{ id: number; resource_type: "insight" | "dashboard" | "ai_prompt"; dashboard?: number | null; insight?: number | null; insight_short_id: string | null; resource_name: string | null; dashboard_export_insights?: (number)[]; prompt?: string | null; ai_prompt_config?: { window?: { mode?: "since_last_sent" | "last_n_days" | "days_ago_range"; start_days_ago?: number | null; end_days_ago?: number | null } }; target_type: "email" | "slack"; target_value: string; frequency: "daily" | "weekly" | "monthly" | "yearly"; interval: number; byweekday?: unknown[] | null; bysetpos?: number | null; count?: number | null; start_date: string; until_date?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean; enabled?: boolean; title?: string | null; summary: string; next_delivery_date: string | null; integration_id?: number | null; invite_message?: string | null; send_test_now?: boolean; summary_enabled?: boolean; summary_prompt_guide?: string }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsDestroy() */ subscriptionsDestroy: () => Promise; /** * * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsTestDeliveryCreate() */ subscriptionsTestDeliveryCreate: () => Promise; /** * List subscription deliveries * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsDeliveriesList() */ subscriptionsDeliveriesList: () => Promise<{ next?: string | null; previous?: string | null; results: ({ id: string; subscription: number; temporal_workflow_id: string; idempotency_key: string; trigger_type: string; scheduled_at: string | null; target_type: string; target_value: string; exported_asset_ids: (number)[]; content_snapshot: unknown; recipient_results: unknown; status: "starting" | "completed" | "failed" | "skipped"; error: unknown; created_at: string; last_updated_at: string; finished_at: string | null; change_summary: string | null; ai_report: string | null; ai_report_diagnostics: unknown[] | null; ai_report_prompt: string | null })[] }>; /** * Retrieve subscription delivery * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsDeliveriesRetrieve() */ subscriptionsDeliveriesRetrieve: () => Promise<{ id: string; subscription: number; temporal_workflow_id: string; idempotency_key: string; trigger_type: string; scheduled_at: string | null; target_type: string; target_value: string; exported_asset_ids: (number)[]; content_snapshot: unknown; recipient_results: unknown; status: "starting" | "completed" | "failed" | "skipped"; error: unknown; created_at: string; last_updated_at: string; finished_at: string | null; change_summary: string | null; ai_report: string | null; ai_report_diagnostics: unknown[] | null; ai_report_prompt: string | null }>; /** * * Tags: subscriptions, subscriptions * Access as: posthog.subscriptionsSummaryQuotaRetrieve() */ subscriptionsSummaryQuotaRetrieve: () => Promise<{ active_count: number; limit: number | null; at_limit: boolean }>; /** * * Tags: surveys * Access as: posthog.surveysList() */ surveysList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; type: "popover" | "widget" | "external_survey" | "api"; schedule?: string | null; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; linked_insight_id?: number | null; targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; internal_targeting_flag: unknown; questions?: unknown; conditions: { [key: string]: unknown } | null; appearance?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; start_date?: string | null; end_date?: string | null; archived?: boolean; responses_limit?: number | null; feature_flag_keys: ({ [key: string]: string | null | undefined })[]; iteration_count?: number | null; iteration_frequency_days?: number | null; iteration_start_dates?: unknown[] | null; current_iteration?: number | null; current_iteration_start_date?: string | null; response_sampling_start_date?: string | null; response_sampling_interval_type?: "day" | "week" | "month" | unknown | unknown; response_sampling_interval?: number | null; response_sampling_limit?: number | null; response_sampling_daily_limits?: unknown; enable_partial_responses?: boolean | null; enable_iframe_embedding?: boolean | null; base_language?: string; translations?: unknown; user_access_level: string | null; form_content?: unknown; search_match_type: "exact" | "similar" | unknown })[] }>; /** * * Tags: surveys * Access as: posthog.surveysCreate() */ surveysCreate: () => Promise<{ id: string; name: string; description?: string; type: "popover" | "widget" | "external_survey" | "api"; schedule?: string | null; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; linked_insight_id?: number | null; targeting_flag_id?: number; targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; internal_targeting_flag: unknown; targeting_flag_filters?: unknown; remove_targeting_flag?: boolean | null; questions?: unknown; conditions?: unknown; appearance?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; start_date?: string | null; end_date?: string | null; archived?: boolean; responses_limit?: number | null; iteration_count?: number | null; iteration_frequency_days?: number | null; iteration_start_dates?: unknown[] | null; current_iteration?: number | null; current_iteration_start_date?: string | null; response_sampling_start_date?: string | null; response_sampling_interval_type?: "day" | "week" | "month" | unknown | unknown; response_sampling_interval?: number | null; response_sampling_limit?: number | null; response_sampling_daily_limits?: unknown; enable_partial_responses?: boolean | null; enable_iframe_embedding?: boolean | null; base_language?: string; translations?: unknown; _create_in_folder?: string; form_content?: unknown }>; /** * * Tags: surveys * Access as: posthog.surveysRetrieve() */ surveysRetrieve: () => Promise<{ id: string; name: string; description?: string; type: "popover" | "widget" | "external_survey" | "api"; schedule?: string | null; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; linked_insight_id?: number | null; targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; internal_targeting_flag: unknown; questions?: unknown; conditions: { [key: string]: unknown } | null; appearance?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; start_date?: string | null; end_date?: string | null; archived?: boolean; responses_limit?: number | null; feature_flag_keys: ({ [key: string]: string | null | undefined })[]; iteration_count?: number | null; iteration_frequency_days?: number | null; iteration_start_dates?: unknown[] | null; current_iteration?: number | null; current_iteration_start_date?: string | null; response_sampling_start_date?: string | null; response_sampling_interval_type?: "day" | "week" | "month" | unknown | unknown; response_sampling_interval?: number | null; response_sampling_limit?: number | null; response_sampling_daily_limits?: unknown; enable_partial_responses?: boolean | null; enable_iframe_embedding?: boolean | null; base_language?: string; translations?: unknown; user_access_level: string | null; form_content?: unknown; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: surveys * Access as: posthog.surveysUpdate() */ surveysUpdate: () => Promise<{ id: string; name: string; description?: string; type: "popover" | "widget" | "external_survey" | "api"; schedule?: string | null; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; linked_insight_id?: number | null; targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; internal_targeting_flag: unknown; questions?: unknown; conditions: { [key: string]: unknown } | null; appearance?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; start_date?: string | null; end_date?: string | null; archived?: boolean; responses_limit?: number | null; feature_flag_keys: ({ [key: string]: string | null | undefined })[]; iteration_count?: number | null; iteration_frequency_days?: number | null; iteration_start_dates?: unknown[] | null; current_iteration?: number | null; current_iteration_start_date?: string | null; response_sampling_start_date?: string | null; response_sampling_interval_type?: "day" | "week" | "month" | unknown | unknown; response_sampling_interval?: number | null; response_sampling_limit?: number | null; response_sampling_daily_limits?: unknown; enable_partial_responses?: boolean | null; enable_iframe_embedding?: boolean | null; base_language?: string; translations?: unknown; user_access_level: string | null; form_content?: unknown; search_match_type: "exact" | "similar" | unknown }>; /** * * Tags: surveys * Access as: posthog.surveysPartialUpdate() */ surveysPartialUpdate: () => Promise<{ id: string; name: string; description?: string; type: "popover" | "widget" | "external_survey" | "api"; schedule?: string | null; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; linked_insight_id?: number | null; targeting_flag_id?: number; targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; internal_targeting_flag: unknown; targeting_flag_filters?: unknown; remove_targeting_flag?: boolean | null; questions?: unknown; conditions?: unknown; appearance?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; start_date?: string | null; end_date?: string | null; archived?: boolean; responses_limit?: number | null; iteration_count?: number | null; iteration_frequency_days?: number | null; iteration_start_dates?: unknown[] | null; current_iteration?: number | null; current_iteration_start_date?: string | null; response_sampling_start_date?: string | null; response_sampling_interval_type?: "day" | "week" | "month" | unknown | unknown; response_sampling_interval?: number | null; response_sampling_limit?: number | null; response_sampling_daily_limits?: unknown; enable_partial_responses?: boolean | null; enable_iframe_embedding?: boolean | null; base_language?: string; translations?: unknown; _create_in_folder?: string; form_content?: unknown }>; /** * * Tags: surveys * Access as: posthog.surveysDestroy() */ surveysDestroy: () => Promise; /** * * Tags: surveys * Access as: posthog.surveysActivityRetrieve() */ surveysActivityRetrieve: () => Promise; /** * Get list of archived response UUIDs for HogQL filtering. Returns list of UUIDs that the frontend can use to filter out archived responses in HogQL queries. * Tags: surveys * Access as: posthog.surveysArchivedResponseUuidsRetrieve() */ surveysArchivedResponseUuidsRetrieve: () => Promise; /** * Duplicate a survey to multiple projects in a single transaction. Accepts a list of target team IDs and creates a copy of the survey in each project. Uses an all-or-nothing approach - if any duplication fails, all changes are rolled back. * Tags: surveys * Access as: posthog.surveysDuplicateToProjectsCreate() */ surveysDuplicateToProjectsCreate: () => Promise; /** * * Tags: surveys * Access as: posthog.surveysGenerateTranslationsCreate() */ surveysGenerateTranslationsCreate: () => Promise<{ translations: { [key: string]: { name?: string; thankYouMessageHeader?: string; thankYouMessageDescription?: string; thankYouMessageCloseButtonText?: string } | undefined }; questions: ({ id: string; translations: { [key: string]: { question?: string; description?: string; buttonText?: string; choices?: (string)[]; lowerBoundLabel?: string; upperBoundLabel?: string; link?: string } | undefined } })[]; generated_field_paths: (string)[]; trace_id: string }>; /** * Launch a survey by setting `start_date` to the current time. No-op if the survey is already launched (start_date set in the past) — returns the existing state unchanged. Does not affect archived surveys or surveys with an end_date in the past; unarchive or extend the end_date first. * Tags: surveys * Access as: posthog.surveysLaunch() */ surveysLaunch: () => Promise<{ id: string; name: string; description?: string; type: "popover" | "widget" | "external_survey" | "api"; schedule?: string | null; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; linked_insight_id?: number | null; targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; internal_targeting_flag: unknown; questions?: unknown; conditions: { [key: string]: unknown } | null; appearance?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; start_date?: string | null; end_date?: string | null; archived?: boolean; responses_limit?: number | null; feature_flag_keys: ({ [key: string]: string | null | undefined })[]; iteration_count?: number | null; iteration_frequency_days?: number | null; iteration_start_dates?: unknown[] | null; current_iteration?: number | null; current_iteration_start_date?: string | null; response_sampling_start_date?: string | null; response_sampling_interval_type?: "day" | "week" | "month" | unknown | unknown; response_sampling_interval?: number | null; response_sampling_limit?: number | null; response_sampling_daily_limits?: unknown; enable_partial_responses?: boolean | null; enable_iframe_embedding?: boolean | null; base_language?: string; translations?: unknown; user_access_level: string | null; form_content?: unknown; search_match_type: "exact" | "similar" | unknown }>; /** * List survey responses for a specific survey, with question text resolved server-side so callers do not have to map opaque `$survey_response_` keys. Each row carries `distinct_id`, `session_id`, `submitted_at`, and an `extra` block (device, browser, OS, geoip, current_url, iteration) so agents can cross-pivot to recordings, persons, or paths in a single follow-up call. For person properties at event time, follow up with `persons-get` using the returned `distinct_id` — keeps scopes scoped. Use `question_id` + `score_lte` to fetch NPS detractors and similar score-filtered cohorts. * Tags: surveys * Access as: posthog.surveysResponsesList() */ surveysResponsesList: () => Promise<{ results: ({ uuid: string; distinct_id: string; session_id: string | null; submitted_at: string; answers: ({ question_id: string; question_index: number; question_text: string; question_type: string; answer: unknown })[]; extra: { device_type?: string | null; browser?: string | null; os?: string | null; geoip_country_code?: string | null; geoip_country_name?: string | null; geoip_city_name?: string | null; current_url?: string | null; iteration?: string | null } })[]; has_more: boolean; limit: number; offset: number }>; /** * Archive a single survey response. * Tags: surveys * Access as: posthog.surveysResponsesArchiveCreate() */ surveysResponsesArchiveCreate: () => Promise; /** * Unarchive a single survey response. * Tags: surveys * Access as: posthog.surveysResponsesUnarchiveCreate() */ surveysResponsesUnarchiveCreate: () => Promise; /** * Get survey response statistics for a specific survey. Args: date_from: Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z) date_to: Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z) exclude_archived: Optional boolean to exclude archived responses (default: false, includes archived) include_per_question_stats: Optional boolean to include per-question response counts and distributions Returns: Survey statistics including event counts, unique respondents, and conversion rates * Tags: surveys * Access as: posthog.surveysStatsRetrieve() */ surveysStatsRetrieve: () => Promise<{ survey_id: string; start_date: string | null; end_date: string | null; stats: { [key: string]: unknown }; rates: { [key: string]: unknown }; per_question_stats?: (unknown)[] }>; /** * Stop a survey by setting `end_date` to the current time. No new responses are accepted after this; existing responses remain available. No-op if the survey already has an end_date in the past. * Tags: surveys * Access as: posthog.surveysStop() */ surveysStop: () => Promise<{ id: string; name: string; description?: string; type: "popover" | "widget" | "external_survey" | "api"; schedule?: string | null; linked_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | "" | null; bucketing_identifier?: "distinct_id" | "device_id" | "" | null; evaluation_contexts: (string)[] }; linked_flag_id?: number | null; linked_insight_id?: number | null; targeting_flag: { id: number; team_id: number; name?: string; key: string; filters?: { [key: string]: unknown }; deleted?: boolean; active?: boolean; ensure_experience_continuity?: boolean | null; version?: number | null; evaluation_runtime?: "server" | "client" | "all" | unknown | unknown; bucketing_identifier?: "distinct_id" | "device_id" | unknown | unknown; evaluation_contexts: (string)[] }; internal_targeting_flag: unknown; questions?: unknown; conditions: { [key: string]: unknown } | null; appearance?: unknown; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | unknown | unknown }; start_date?: string | null; end_date?: string | null; archived?: boolean; responses_limit?: number | null; feature_flag_keys: ({ [key: string]: string | null | undefined })[]; iteration_count?: number | null; iteration_frequency_days?: number | null; iteration_start_dates?: unknown[] | null; current_iteration?: number | null; current_iteration_start_date?: string | null; response_sampling_start_date?: string | null; response_sampling_interval_type?: "day" | "week" | "month" | unknown | unknown; response_sampling_interval?: number | null; response_sampling_limit?: number | null; response_sampling_daily_limits?: unknown; enable_partial_responses?: boolean | null; enable_iframe_embedding?: boolean | null; base_language?: string; translations?: unknown; user_access_level: string | null; form_content?: unknown; search_match_type: "exact" | "similar" | unknown }>; /** * Summarize survey responses. When `question_index` or `question_id` is provided, returns a per-question theme summary using cached `survey.question_summaries` when fresh. When neither is provided, returns the survey-wide headline summary (delegates to summary_headline). Pass `force_refresh=true` in the body to bypass caches. * Tags: surveys * Access as: posthog.surveysSummarizeResponsesCreate() */ surveysSummarizeResponsesCreate: () => Promise; /** * * Tags: surveys * Access as: posthog.surveysSummaryHeadlineCreate() */ surveysSummaryHeadlineCreate: () => Promise; /** * * Tags: surveys * Access as: posthog.surveysAllActivityRetrieve() */ surveysAllActivityRetrieve: () => Promise; /** * Return a slim list of question labels for the team's surveys. Used by the frontend to resolve `$survey_response_` property keys into human-readable question text without loading the full survey payload. * Tags: surveys * Access as: posthog.surveysQuestionLabels() */ surveysQuestionLabels: () => Promise<{ labels: ({ question_id: string; question_text: string; question_index: number; survey_id: string; survey_name: string })[] }>; /** * Get response counts for all surveys. Args: exclude_archived: Optional boolean to exclude archived responses (default: false, includes archived) survey_ids: Optional comma-separated list of survey IDs to filter by Returns: Dictionary mapping survey IDs to response counts * Tags: surveys * Access as: posthog.surveysResponsesCountRetrieve() */ surveysResponsesCountRetrieve: () => Promise; /** * Get aggregated response statistics across all surveys. Args: date_from: Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z) date_to: Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z) Returns: Aggregated statistics across all surveys including total counts and rates * Tags: surveys * Access as: posthog.surveysGlobalStatsRetrieve() */ surveysGlobalStatsRetrieve: () => Promise<{ stats: { [key: string]: unknown }; rates: { [key: string]: unknown } }>; /** * * Tags: taggers * Access as: posthog.taggersList() */ taggersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean })[] }>; /** * * Tags: taggers * Access as: posthog.taggersCreate() */ taggersCreate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: taggers * Access as: posthog.taggersRetrieve() */ taggersRetrieve: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: taggers * Access as: posthog.taggersUpdate() */ taggersUpdate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * * Tags: taggers * Access as: posthog.taggersPartialUpdate() */ taggersPartialUpdate: () => Promise<{ id: string; name: string; description?: string; enabled?: boolean; tagger_type?: "llm" | "hog"; tagger_config: { prompt: string; tags: ({ name: string; description?: string })[]; min_tags?: number; max_tags?: number | null } | { source: string; tags?: ({ name: string; description?: string })[] }; conditions?: ({ id: string; rollout_percentage?: number; properties?: ({ [key: string]: unknown })[] })[]; model_configuration?: { provider: "openai" | "anthropic" | "gemini" | "openrouter" | "fireworks" | "azure_openai" | "together_ai" | "minimax" | "zeabur"; model: string; provider_key_id?: string | null; provider_key_name: string | null } | null; created_at: string; updated_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; deleted?: boolean }>; /** * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true * Tags: taggers * Access as: posthog.taggersDestroy() */ taggersDestroy: () => Promise; /** * Test Hog tagger code against sample events without saving. * Tags: taggers * Access as: posthog.taggersTestHogCreate() */ taggersTestHogCreate: () => Promise<{ results: ({ event_uuid: string; trace_id?: string | null; input_preview: string; output_preview: string; tags: (string)[]; reasoning: string; error?: string | null })[]; message?: string }>; /** * API for managing scheduled task automations. * Tags: task-automations, task_automations * Access as: posthog.taskAutomationsList() */ taskAutomationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; prompt: string; repository: string | null; github_integration: number | null; cron_expression: string; timezone: string; template_id: string | null; enabled: boolean; last_run_at: string | null; last_run_status: string | null; last_task_id: string; last_task_run_id: string | null; last_error: string | null; created_at: string; updated_at: string })[] }>; /** * API for managing scheduled task automations. * Tags: task-automations, task_automations * Access as: posthog.taskAutomationsCreate() */ taskAutomationsCreate: () => Promise<{ id: string; name: string; prompt: string; repository: string | null; github_integration: number | null; cron_expression: string; timezone: string; template_id: string | null; enabled: boolean; last_run_at: string | null; last_run_status: string | null; last_task_id: string; last_task_run_id: string | null; last_error: string | null; created_at: string; updated_at: string }>; /** * API for managing scheduled task automations. * Tags: task-automations, task_automations * Access as: posthog.taskAutomationsRetrieve() */ taskAutomationsRetrieve: () => Promise<{ id: string; name: string; prompt: string; repository: string | null; github_integration: number | null; cron_expression: string; timezone: string; template_id: string | null; enabled: boolean; last_run_at: string | null; last_run_status: string | null; last_task_id: string; last_task_run_id: string | null; last_error: string | null; created_at: string; updated_at: string }>; /** * API for managing scheduled task automations. * Tags: task-automations, task_automations * Access as: posthog.taskAutomationsPartialUpdate() */ taskAutomationsPartialUpdate: () => Promise<{ id: string; name: string; prompt: string; repository: string | null; github_integration: number | null; cron_expression: string; timezone: string; template_id: string | null; enabled: boolean; last_run_at: string | null; last_run_status: string | null; last_task_id: string; last_task_run_id: string | null; last_error: string | null; created_at: string; updated_at: string }>; /** * API for managing scheduled task automations. * Tags: task-automations, task_automations * Access as: posthog.taskAutomationsDestroy() */ taskAutomationsDestroy: () => Promise; /** * API for managing scheduled task automations. * Tags: task-automations, task_automations * Access as: posthog.taskAutomationsRunCreate() */ taskAutomationsRunCreate: () => Promise<{ id: string; name: string; prompt: string; repository: string | null; github_integration: number | null; cron_expression: string; timezone: string; template_id: string | null; enabled: boolean; last_run_at: string | null; last_run_status: string | null; last_task_id: string; last_task_run_id: string | null; last_error: string | null; created_at: string; updated_at: string }>; /** * List channels * Tags: task_channels * Access as: posthog.taskChannelsList() */ taskChannelsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; channel_type: string; created_at: string; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null })[] }>; /** * Resolve or create a public channel * Tags: task_channels * Access as: posthog.taskChannelsCreate() */ taskChannelsCreate: () => Promise<{ id: string; name: string; channel_type: string; created_at: string; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null }>; /** * Rename a public channel * Tags: task_channels * Access as: posthog.taskChannelsPartialUpdate() */ taskChannelsPartialUpdate: () => Promise<{ id: string; name: string; channel_type: string; created_at: string; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null }>; /** * Delete a public channel * Tags: task_channels * Access as: posthog.taskChannelsDestroy() */ taskChannelsDestroy: () => Promise; /** * List mentions of the requester * Tags: task_mentions * Access as: posthog.taskMentionsList() */ taskMentionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; message_id: string; task_id: string; task_title: string; channel_id: string | null; channel_name: string | null; author?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; content: string; created_at: string })[] }>; /** * List tasks * Tags: tasks, tasks * Access as: posthog.tasksList() */ tasksList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null })[] }>; /** * API for managing tasks within a project. Tasks represent units of work to be performed by an agent. * Tags: tasks, tasks * Access as: posthog.tasksCreate() */ tasksCreate: () => Promise<{ id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null }>; /** * Get task * Tags: tasks, tasks * Access as: posthog.tasksRetrieve() */ tasksRetrieve: () => Promise<{ id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null }>; /** * API for managing tasks within a project. Tasks represent units of work to be performed by an agent. * Tags: tasks, tasks * Access as: posthog.tasksUpdate() */ tasksUpdate: () => Promise<{ id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null }>; /** * API for managing tasks within a project. Tasks represent units of work to be performed by an agent. * Tags: tasks, tasks * Access as: posthog.tasksPartialUpdate() */ tasksPartialUpdate: () => Promise<{ id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null }>; /** * API for managing tasks within a project. Tasks represent units of work to be performed by an agent. * Tags: tasks, tasks * Access as: posthog.tasksDestroy() */ tasksDestroy: () => Promise; /** * Beacon presence for a device watching this task * Tags: tasks, tasks * Access as: posthog.tasksPresenceCreate() */ tasksPresenceCreate: () => Promise; /** * Beacon presence for a device watching this task * Tags: tasks, tasks * Access as: posthog.tasksPresenceDestroy() */ tasksPresenceDestroy: () => Promise; /** * Run task * Tags: tasks, tasks * Access as: posthog.tasksRunCreate() */ tasksRunCreate: () => Promise<{ id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null }>; /** * Finalize staged direct uploads for task attachments * Tags: tasks, tasks * Access as: posthog.tasksStagedArtifactsFinalizeUploadCreate() */ tasksStagedArtifactsFinalizeUploadCreate: () => Promise<{ artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[] }>; /** * Prepare staged direct uploads for task attachments * Tags: tasks, tasks * Access as: posthog.tasksStagedArtifactsPrepareUploadCreate() */ tasksStagedArtifactsPrepareUploadCreate: () => Promise<{ artifacts: ({ id: string; name: string; type: string; source?: string; size: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; expires_in: number; presigned_post: { url: string; fields: { [key: string]: string | undefined } } })[] }>; /** * List task runs * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsList() */ tasksRunsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; task: string; stage: string | null; branch: string | null; status: string; environment: string; runtime_adapter?: "claude" | "codex" | null; provider?: "anthropic" | "openai" | null; model?: string | null; reasoning_effort?: "low" | "medium" | "high" | "xhigh" | "max" | unknown; log_url?: string | null; error_message: string | null; output: { [key: string]: unknown } | null; state: { [key: string]: unknown }; artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[]; created_at?: string | null; updated_at?: string | null; completed_at?: string | null })[] }>; /** * Create task run * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsCreate() */ tasksRunsCreate: () => Promise<{ id: string; task: string; stage: string | null; branch: string | null; status: string; environment: string; runtime_adapter?: "claude" | "codex" | null; provider?: "anthropic" | "openai" | null; model?: string | null; reasoning_effort?: "low" | "medium" | "high" | "xhigh" | "max" | unknown; log_url?: string | null; error_message: string | null; output: { [key: string]: unknown } | null; state: { [key: string]: unknown }; artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[]; created_at?: string | null; updated_at?: string | null; completed_at?: string | null }>; /** * Get task run * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsRetrieve() */ tasksRunsRetrieve: () => Promise<{ id: string; task: string; stage: string | null; branch: string | null; status: string; environment: string; runtime_adapter?: "claude" | "codex" | null; provider?: "anthropic" | "openai" | null; model?: string | null; reasoning_effort?: "low" | "medium" | "high" | "xhigh" | "max" | unknown; log_url?: string | null; error_message: string | null; output: { [key: string]: unknown } | null; state: { [key: string]: unknown }; artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[]; created_at?: string | null; updated_at?: string | null; completed_at?: string | null }>; /** * Update task run * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsPartialUpdate() */ tasksRunsPartialUpdate: () => Promise<{ id: string; task: string; stage: string | null; branch: string | null; status: string; environment: string; runtime_adapter?: "claude" | "codex" | null; provider?: "anthropic" | "openai" | null; model?: string | null; reasoning_effort?: "low" | "medium" | "high" | "xhigh" | "max" | unknown; log_url?: string | null; error_message: string | null; output: { [key: string]: unknown } | null; state: { [key: string]: unknown }; artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[]; created_at?: string | null; updated_at?: string | null; completed_at?: string | null }>; /** * Append log entries * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsAppendLogCreate() */ tasksRunsAppendLogCreate: () => Promise<{ id: string; task: string; stage: string | null; branch: string | null; status: string; environment: string; runtime_adapter?: "claude" | "codex" | null; provider?: "anthropic" | "openai" | null; model?: string | null; reasoning_effort?: "low" | "medium" | "high" | "xhigh" | "max" | unknown; log_url?: string | null; error_message: string | null; output: { [key: string]: unknown } | null; state: { [key: string]: unknown }; artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[]; created_at?: string | null; updated_at?: string | null; completed_at?: string | null }>; /** * Upload artifacts for a task run * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsArtifactsCreate() */ tasksRunsArtifactsCreate: () => Promise<{ artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[] }>; /** * Download an artifact through the backend * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsArtifactsDownloadCreate() */ tasksRunsArtifactsDownloadCreate: () => Promise; /** * Finalize direct uploads for task run artifacts * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsArtifactsFinalizeUploadCreate() */ tasksRunsArtifactsFinalizeUploadCreate: () => Promise<{ artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[] }>; /** * Prepare direct uploads for task run artifacts * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsArtifactsPrepareUploadCreate() */ tasksRunsArtifactsPrepareUploadCreate: () => Promise<{ artifacts: ({ id: string; name: string; type: string; source?: string; size: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; expires_in: number; presigned_post: { url: string; fields: { [key: string]: string | undefined } } })[] }>; /** * Generate presigned URL for an artifact * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsArtifactsPresignCreate() */ tasksRunsArtifactsPresignCreate: () => Promise<{ url: string; expires_in: number }>; /** * Send command to task run * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsCommandCreate() */ tasksRunsCommandCreate: () => Promise<{ jsonrpc: string; id?: unknown; result?: { [key: string]: unknown }; error?: { [key: string]: unknown } }>; /** * Get sandbox connection token * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsConnectionTokenRetrieve() */ tasksRunsConnectionTokenRetrieve: () => Promise<{ token: string }>; /** * Get task run logs * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsLogsRetrieve() */ tasksRunsLogsRetrieve: () => Promise; /** * Relay run message to Slack * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsRelayMessageCreate() */ tasksRunsRelayMessageCreate: () => Promise<{ status: string; relay_id?: string }>; /** * Resume task run in cloud * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsResumeInCloudCreate() */ tasksRunsResumeInCloudCreate: () => Promise<{ id: string; task: string; stage: string | null; branch: string | null; status: string; environment: string; runtime_adapter?: "claude" | "codex" | null; provider?: "anthropic" | "openai" | null; model?: string | null; reasoning_effort?: "low" | "medium" | "high" | "xhigh" | "max" | unknown; log_url?: string | null; error_message: string | null; output: { [key: string]: unknown } | null; state: { [key: string]: unknown }; artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[]; created_at?: string | null; updated_at?: string | null; completed_at?: string | null }>; /** * Get filtered task run session logs * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsSessionLogsRetrieve() */ tasksRunsSessionLogsRetrieve: () => Promise; /** * Set run output * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsSetOutputPartialUpdate() */ tasksRunsSetOutputPartialUpdate: () => Promise<{ id: string; task: string; stage: string | null; branch: string | null; status: string; environment: string; runtime_adapter?: "claude" | "codex" | null; provider?: "anthropic" | "openai" | null; model?: string | null; reasoning_effort?: "low" | "medium" | "high" | "xhigh" | "max" | unknown; log_url?: string | null; error_message: string | null; output: { [key: string]: unknown } | null; state: { [key: string]: unknown }; artifacts: ({ id?: string; name: string; type: string; source?: string; size?: number; content_type?: string; metadata?: { skill_name: string; skill_source: "user" | "repo" | "marketplace" | "codex"; content_sha256: string; bundle_format: "zip"; schema_version: number }; storage_path: string; uploaded_at: string })[]; created_at?: string | null; updated_at?: string | null; completed_at?: string | null }>; /** * Start task run * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsStartCreate() */ tasksRunsStartCreate: () => Promise<{ id: string; task_number: number | null; slug: string; title: string; title_manually_set: boolean; description: string; origin_product: string; repository: string | null; github_integration: number | null; github_user_integration: string | null; signal_report: string | null; json_schema: { [key: string]: unknown } | null; internal: boolean; archived: boolean; archived_at: string | null; latest_run: string | null; created_at?: string | null; updated_at?: string | null; created_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; ci_prompt: string | null }>; /** * Server-Sent Events stream of task run events. Events carry an `id:` line (a Redis stream id) usable as a resume cursor. The server caps each connection at 900 seconds: it emits `event: end` with `data: {"type": "rotated"}` and closes. This does NOT mean the run finished — reconnect with the `Last-Event-ID` header set to the last received event id to resume without gaps or duplicates. Only treat the stream as complete when the run itself reaches a terminal status. `?start=latest` consumers must also carry `Last-Event-ID` across reconnects: reconnecting without it re-resolves to the then-current latest event, silently skipping anything published while disconnected. **SDK consumers**: do not call the generated fetch wrapper for this path — it will buffer the entire stream. Use the URL builder (`getTasksRunsStreamRetrieveUrl`) with a streaming `fetch`/`EventSource`-style consumer and the `Last-Event-ID` header instead. * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsStreamRetrieve() */ tasksRunsStreamRetrieve: () => Promise; /** * Get task run stream read token * Tags: task-runs, tasks, tasks * Access as: posthog.tasksRunsStreamTokenRetrieve() */ tasksRunsStreamTokenRetrieve: () => Promise<{ token: string; stream_base_url: string | null }>; /** * List living artifacts for a task run * Tags: tasks * Access as: posthog.tasksRunsLivingArtifactsList() */ tasksRunsLivingArtifactsList: () => Promise<({ artifacts: ({ id: string; task_id: string; run_id: string; team_id: number; name: string; artifact_type: "slack_message" | "slack_canvas" | "document" | "spreadsheet" | "dashboard" | "file" | "github_pr"; adapter: "slack_message" | "slack_canvas" | "slack_file" | "document_connector" | "github_pr"; status: "active" | "failed"; location: unknown; metadata: unknown; current_version: number; versions: ({ [key: string]: unknown })[]; created_at?: string | null; updated_at?: string | null })[] })[]>; /** * Create a living artifact for a task run * Tags: tasks * Access as: posthog.tasksRunsLivingArtifactsCreate() */ tasksRunsLivingArtifactsCreate: () => Promise<{ id: string; task_id: string; run_id: string; team_id: number; name: string; artifact_type: "slack_message" | "slack_canvas" | "document" | "spreadsheet" | "dashboard" | "file" | "github_pr"; adapter: "slack_message" | "slack_canvas" | "slack_file" | "document_connector" | "github_pr"; status: "active" | "failed"; location: unknown; metadata: unknown; current_version: number; versions: ({ [key: string]: unknown })[]; created_at?: string | null; updated_at?: string | null }>; /** * Open a living artifact for a task run * Tags: tasks * Access as: posthog.tasksRunsLivingArtifactsOpen() */ tasksRunsLivingArtifactsOpen: () => Promise<{ id: string; task_id: string; run_id: string; team_id: number; name: string; artifact_type: "slack_message" | "slack_canvas" | "document" | "spreadsheet" | "dashboard" | "file" | "github_pr"; adapter: "slack_message" | "slack_canvas" | "slack_file" | "document_connector" | "github_pr"; status: "active" | "failed"; location: unknown; metadata: unknown; current_version: number; versions: ({ [key: string]: unknown })[]; created_at?: string | null; updated_at?: string | null; content?: string | null }>; /** * Edit a living artifact for a task run * Tags: tasks * Access as: posthog.tasksRunsLivingArtifactsEdit() */ tasksRunsLivingArtifactsEdit: () => Promise<{ id: string; task_id: string; run_id: string; team_id: number; name: string; artifact_type: "slack_message" | "slack_canvas" | "document" | "spreadsheet" | "dashboard" | "file" | "github_pr"; adapter: "slack_message" | "slack_canvas" | "slack_file" | "document_connector" | "github_pr"; status: "active" | "failed"; location: unknown; metadata: unknown; current_version: number; versions: ({ [key: string]: unknown })[]; created_at?: string | null; updated_at?: string | null }>; /** * List thread messages * Tags: tasks * Access as: posthog.tasksThreadMessagesList() */ tasksThreadMessagesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; task: string; content: string; created_at: string; author?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; forwarded_to_agent_at?: string | null; forwarded_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null })[] }>; /** * Post a thread message * Tags: tasks * Access as: posthog.tasksThreadMessagesCreate() */ tasksThreadMessagesCreate: () => Promise<{ id: string; task: string; content: string; created_at: string; author?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; forwarded_to_agent_at?: string | null; forwarded_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null }>; /** * Delete own thread message * Tags: tasks * Access as: posthog.tasksThreadMessagesDestroy() */ tasksThreadMessagesDestroy: () => Promise; /** * Send a thread message to the agent * Tags: tasks * Access as: posthog.tasksThreadMessagesSendToAgentCreate() */ tasksThreadMessagesSendToAgentCreate: () => Promise<{ id: string; task: string; content: string; created_at: string; author?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null; forwarded_to_agent_at?: string | null; forwarded_by?: { id: number; uuid: string; distinct_id: string; first_name: string; last_name: string; email: string; is_email_verified?: boolean | null; hedgehog_config?: { [key: string]: unknown } | null; role_at_organization?: string | null } | null }>; /** * List distinct task repositories * Tags: tasks, tasks * Access as: posthog.tasksRepositoriesRetrieve() */ tasksRepositoriesRetrieve: () => Promise<{ repositories: (string)[] }>; /** * Get repository readiness * Tags: tasks, tasks * Access as: posthog.tasksRepositoryReadinessRetrieve() */ tasksRepositoryReadinessRetrieve: () => Promise<{ repository: string; classification: string; excluded: boolean; coreSuggestions: { state: "needs_setup" | "detected" | "waiting_for_data" | "ready" | "not_applicable" | "unknown"; estimated: boolean; reason: string; evidence?: { [key: string]: unknown } }; replayInsights: { state: "needs_setup" | "detected" | "waiting_for_data" | "ready" | "not_applicable" | "unknown"; estimated: boolean; reason: string; evidence?: { [key: string]: unknown } }; errorInsights: unknown; overall: string; evidenceTaskCount: number; windowDays: number; generatedAt: string; cacheAgeSeconds: number; scan?: { filesScanned: number; detectedFilesCount: number; eventNameCount: number; foundPosthogInit: boolean; foundPosthogCapture: boolean; foundErrorSignal: boolean } }>; /** * Resolve a Slack thread to its task, runs, and Temporal workflows * Tags: tasks, tasks * Access as: posthog.tasksSlackThreadContextRetrieve() */ tasksSlackThreadContextRetrieve: () => Promise<{ thread: { url: string; channel: string; thread_ts: string; slack_workspace_id: string | null; mentioning_slack_user_id: string | null }; task: { id: string; team_id: number; title: string; repository: string | null; origin_product: string; created_at: string; url: string } | null; runs: ({ id: string; status: string; created_at: string; completed_at: string | null; sandbox_url: string | null; pr_url: string | null; error_message: string | null; task_processing_workflow_id: string; task_processing_workflow_url: string | null; mention_workflow_id: string | null; mention_workflow_url: string | null; task_view_url: string; log_url: string | null; repo_research: { task_id: string; run_id: string; status: string | null; task_processing_workflow_id: string; task_processing_workflow_url: string | null; sandbox_url: string | null; task_view_url: string; log_url: string | null } | null })[] }>; /** * Fetch task summaries by ID * Tags: tasks, tasks * Access as: posthog.tasksSummariesCreate() */ tasksSummariesCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; title: string; repository: string | null; created_at: string; updated_at: string; origin_product?: string; latest_run?: { status: "not_started" | "queued" | "in_progress" | "completed" | "failed" | "cancelled" | null; environment: "local" | "cloud" | null } | null })[] }>; /** * Warm a task sandbox * Tags: tasks, tasks * Access as: posthog.tasksWarmCreate() */ tasksWarmCreate: () => Promise<{ task_id: string; run_id: string }>; /** * * Tags: tracing * Access as: posthog.tracingSpansAggregateCreate() */ tracingSpansAggregateCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingSpansAttributeBreakdownCreate() */ tracingSpansAttributeBreakdownCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingSpansAttributesRetrieve() */ tracingSpansAttributesRetrieve: () => Promise<{ results: ({ name: string; propertyFilterType: string; matchedOn: "key" | "value"; matchedValue?: string | null })[]; count: number }>; /** * * Tags: tracing * Access as: posthog.tracingSpansCountCreate() */ tracingSpansCountCreate: () => Promise<{ count: number; traceCount: number }>; /** * * Tags: tracing * Access as: posthog.tracingSpansDurationHistogramCreate() */ tracingSpansDurationHistogramCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingSpansHasSpansRetrieve() */ tracingSpansHasSpansRetrieve: () => Promise<{ hasSpans: boolean }>; /** * * Tags: tracing * Access as: posthog.tracingSpansQueryCreate() */ tracingSpansQueryCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingSpansServiceNamesRetrieve() */ tracingSpansServiceNamesRetrieve: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingSpansSparklineCreate() */ tracingSpansSparklineCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingSpansSymbolStatsCreate() */ tracingSpansSymbolStatsCreate: () => Promise<{ results: ({ count: number; error_count: number; sum_duration_nano: number; p50_duration_nano: number; p95_duration_nano: number; p99_duration_nano: number; busy_count: number; p50_busy_nano: number; p95_busy_nano: number; p99_busy_nano: number; line: number; name?: string | null; end_line?: number | null; previous: { count: number; error_count: number; sum_duration_nano: number; p50_duration_nano: number; p95_duration_nano: number; p99_duration_nano: number; busy_count: number; p50_busy_nano: number; p95_busy_nano: number; p99_busy_nano: number }; count_pct_change: number | null; p95_duration_pct_change: number | null })[]; granularity: "line" | "symbol" }>; /** * * Tags: tracing * Access as: posthog.tracingSpansTraceCreate() */ tracingSpansTraceCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingSpansTreeCreate() */ tracingSpansTreeCreate: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingSpansValuesRetrieve() */ tracingSpansValuesRetrieve: () => Promise; /** * * Tags: tracing * Access as: posthog.tracingViewsList() */ tracingViewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null })[] }>; /** * * Tags: tracing * Access as: posthog.tracingViewsCreate() */ tracingViewsCreate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null }>; /** * * Tags: tracing * Access as: posthog.tracingViewsRetrieve() */ tracingViewsRetrieve: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null }>; /** * * Tags: tracing * Access as: posthog.tracingViewsUpdate() */ tracingViewsUpdate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null }>; /** * * Tags: tracing * Access as: posthog.tracingViewsPartialUpdate() */ tracingViewsPartialUpdate: () => Promise<{ id: string; short_id: string; name: string; filters?: { [key: string]: unknown }; pinned?: boolean; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string | null }>; /** * * Tags: tracing * Access as: posthog.tracingViewsDestroy() */ tracingViewsDestroy: () => Promise; /** * When object storage is available this API allows upload of media which can be used, for example, in text cards on dashboards. Uploaded media must have a content type beginning with 'image/' and be less than 4MB. * Tags: uploaded_media * Access as: posthog.uploadedMediaCreate() */ uploadedMediaCreate: () => Promise<{ [key: string]: unknown }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsList() */ userInterviewTopicsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string })[] }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsCreate() */ userInterviewTopicsCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsRetrieve() */ userInterviewTopicsRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsUpdate() */ userInterviewTopicsUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsPartialUpdate() */ userInterviewTopicsPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Planned user interview topics: who we want to target and what we want to ask about. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsDestroy() */ userInterviewTopicsDestroy: () => Promise; /** * Add a single interviewee to this topic. Email-shaped identifiers (including the `Display Name ` form) are appended to `interviewee_emails`; everything else is appended to `interviewee_distinct_ids`. Idempotent — adding an identifier that's already present leaves the topic unchanged. Returns the updated topic. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsAddIntervieweeCreate() */ userInterviewTopicsAddIntervieweeCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Generate one public interview link per targeted interviewee. Materializes an IntervieweeContext row for every identifier on the topic (without overwriting existing per-person context), and an enabled SharingConfiguration with a unique access token. The URL resolves to the public interview viewer with no PostHog auth required. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsGenerateLinksCreate() */ userInterviewTopicsGenerateLinksCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ interviewee_identifier: string; user_name: string; interview_url: string; agent_context: string })[] }>; /** * Same materialization as generate_links, returned as a downloadable CSV. Intended for users who want to mail-merge the per-person interview links into their own email tooling. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsLinksCsvCreate() */ userInterviewTopicsLinksCsvCreate: () => Promise; /** * Render the invite email exactly as a specific targeted interviewee would receive it — personalized subject and body — without sending anything and without creating or reading any share links. Pass `interviewee_identifier` to preview for a particular person, or omit it to preview for the first targeted interviewee. The body always shows an illustrative placeholder link (`is_preview_link: true`), never a live interview URL. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsPreviewInviteCreate() */ userInterviewTopicsPreviewInviteCreate: () => Promise<{ interviewee_identifier: string; user_name: string; email: string | null; subject: string; html: string; interview_url: string; emailable: boolean; is_preview_link: boolean }>; /** * Remove an interviewee from this topic. Drops the identifier from both `interviewee_emails` and `interviewee_distinct_ids`, and disables any active SharingConfiguration linked to an IntervieweeContext for that identifier on this topic so the removed person can no longer open their interview link. Idempotent — removing an identifier that isn't present is a no-op. Returns the updated topic. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsRemoveIntervieweeCreate() */ userInterviewTopicsRemoveIntervieweeCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_distinct_ids?: (string)[]; topic: string; agent_context?: string; questions?: (string)[]; invite_subject?: string; invite_message?: string }>; /** * Generate (if needed) and email a personalized public interview link to every targeted interviewee on this topic whose identifier is an email address. Distinct-ID-only interviewees are skipped and surfaced in the response. Each invite is keyed on the underlying SharingConfiguration so re-runs after token rotation produce a fresh send. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsSendInvitesCreate() */ userInterviewTopicsSendInvitesCreate: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ interviewee_identifier: string; email?: string | null; interview_url: string; sent: boolean; reason?: string })[] }>; /** * Return the calling user's personal dogfood interview link for this topic, plus the latest test interview they have recorded against it. Lazily get-or-creates a per-caller IntervieweeContext + enabled SharingConfiguration the first time it's called, then returns the same stable URL on subsequent calls. The caller's identifier is intentionally not added to the topic's targeting arrays — each user dogfoods under their own row, so test calls never mint a public share token on someone else's behalf. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsTestLinkRetrieve() */ userInterviewTopicsTestLinkRetrieve: () => Promise<{ interview_url: string; latest_test_interview: { completed_at: string; transcript: string; summary: string } | null }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsIntervieweesList() */ userInterviewTopicsIntervieweesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string })[] }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsIntervieweesCreate() */ userInterviewTopicsIntervieweesCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsIntervieweesRetrieve() */ userInterviewTopicsIntervieweesRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsIntervieweesUpdate() */ userInterviewTopicsIntervieweesUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsIntervieweesPartialUpdate() */ userInterviewTopicsIntervieweesPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_identifier: string; agent_context: string }>; /** * Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier). * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsIntervieweesDestroy() */ userInterviewTopicsIntervieweesDestroy: () => Promise; /** * Create up to 500 interviewee context rows for a topic in a single request. Rows whose (topic, interviewee_identifier) already exists are skipped — the response surfaces an `inserted_count`, a `skipped_count`, and the `skipped_identifiers` so the caller can reconcile. Items must have unique `interviewee_identifier` values within the batch. * Tags: user_interview_topics * Access as: posthog.userInterviewTopicsIntervieweesBulkCreate() */ userInterviewTopicsIntervieweesBulkCreate: () => Promise<{ inserted_count: number; skipped_count: number; skipped_identifiers: (string)[] }>; /** * * Tags: user_interviews * Access as: posthog.userInterviewsList() */ userInterviewsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string })[] }>; /** * * Tags: user_interviews * Access as: posthog.userInterviewsCreate() */ userInterviewsCreate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string }>; /** * * Tags: user_interviews * Access as: posthog.userInterviewsRetrieve() */ userInterviewsRetrieve: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string }>; /** * * Tags: user_interviews * Access as: posthog.userInterviewsUpdate() */ userInterviewsUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string }>; /** * * Tags: user_interviews * Access as: posthog.userInterviewsPartialUpdate() */ userInterviewsPartialUpdate: () => Promise<{ id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; interviewee_emails?: (string)[]; interviewee_identifier: string; topic: string | null; transcript: string; summary?: string; classifications?: ("abandoned" | "off-topic")[]; audio: string }>; /** * * Tags: user_interviews * Access as: posthog.userInterviewsDestroy() */ userInterviewsDestroy: () => Promise; /** * Search interview responses by semantic similarity * Tags: user_interviews * Access as: posthog.userInterviewsSearchCreate() */ userInterviewsSearchCreate: () => Promise<({ interview_id: string; document_type: "transcript" | "summary"; similarity: number; content_snippet: string; interviewee_identifier: string; topic_id: string | null; created_at: string })[]>; /** * CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations. * Tags: vision * Access as: posthog.visionActionsList() */ visionActionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; scanner: string; enabled?: boolean; is_scanner_digest?: boolean; trigger_type?: "schedule" | "threshold"; mode?: "group_summary" | "per_observation"; trigger_config?: { rrule?: string; timezone?: string }; selection?: { scanner_ids?: (string)[]; verdict?: ("yes" | "no" | "inconclusive")[]; tags?: (string)[]; min_score?: number; max_score?: number }; synthesis_config?: { prompt_guide?: string }; delivery_config?: ({ type: "slack"; integration_id: number; channel: string })[]; next_run_at: string | null; last_run_at: string | null; hog_flow_id: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string })[] }>; /** * CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations. * Tags: vision * Access as: posthog.visionActionsCreate() */ visionActionsCreate: () => Promise<{ id: string; name: string; scanner: string; enabled?: boolean; is_scanner_digest?: boolean; trigger_type?: "schedule" | "threshold"; mode?: "group_summary" | "per_observation"; trigger_config?: { rrule?: string; timezone?: string }; selection?: { scanner_ids?: (string)[]; verdict?: ("yes" | "no" | "inconclusive")[]; tags?: (string)[]; min_score?: number; max_score?: number }; synthesis_config?: { prompt_guide?: string }; delivery_config?: ({ type: "slack"; integration_id: number; channel: string })[]; next_run_at: string | null; last_run_at: string | null; hog_flow_id: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string }>; /** * CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations. * Tags: vision * Access as: posthog.visionActionsRetrieve() */ visionActionsRetrieve: () => Promise<{ id: string; name: string; scanner: string; enabled?: boolean; is_scanner_digest?: boolean; trigger_type?: "schedule" | "threshold"; mode?: "group_summary" | "per_observation"; trigger_config?: { rrule?: string; timezone?: string }; selection?: { scanner_ids?: (string)[]; verdict?: ("yes" | "no" | "inconclusive")[]; tags?: (string)[]; min_score?: number; max_score?: number }; synthesis_config?: { prompt_guide?: string }; delivery_config?: ({ type: "slack"; integration_id: number; channel: string })[]; next_run_at: string | null; last_run_at: string | null; hog_flow_id: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string }>; /** * CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations. * Tags: vision * Access as: posthog.visionActionsPartialUpdate() */ visionActionsPartialUpdate: () => Promise<{ id: string; name: string; scanner: string; enabled?: boolean; is_scanner_digest?: boolean; trigger_type?: "schedule" | "threshold"; mode?: "group_summary" | "per_observation"; trigger_config?: { rrule?: string; timezone?: string }; selection?: { scanner_ids?: (string)[]; verdict?: ("yes" | "no" | "inconclusive")[]; tags?: (string)[]; min_score?: number; max_score?: number }; synthesis_config?: { prompt_guide?: string }; delivery_config?: ({ type: "slack"; integration_id: number; channel: string })[]; next_run_at: string | null; last_run_at: string | null; hog_flow_id: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string }>; /** * CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations. * Tags: vision * Access as: posthog.visionActionsDestroy() */ visionActionsDestroy: () => Promise; /** * Read-only run history for a single vision action (nested under /vision/actions/{action_id}/runs/). * Tags: vision * Access as: posthog.visionActionsRunsList() */ visionActionsRunsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: "running" | "completed" | "failed" | "skipped"; scheduled_at: string | null; observation_count: number; error_reason: string | null; created_at: string; updated_at: string })[] }>; /** * Read-only run history for a single vision action (nested under /vision/actions/{action_id}/runs/). * Tags: vision * Access as: posthog.visionActionsRunsRetrieve() */ visionActionsRunsRetrieve: () => Promise<{ id: string; status: "running" | "completed" | "failed" | "skipped"; scheduled_at: string | null; observation_count: number; error_reason: string | null; created_at: string; updated_at: string; synthesized_markdown: string; observations: ({ index: number; id: string; session_id: string; recording_subject_email: string | null; title: string | null; created_at: string })[] }>; /** * Read-only access to a session's observations across every scanner the caller can read, for the replay-page dock. * Tags: vision * Access as: posthog.visionObservationsList() */ visionObservationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; scanner_id: string; session_id: string; status: "pending" | "running" | "succeeded" | "failed" | "ineligible"; error_reason: string; workflow_id: string; scanner_snapshot: { name: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_version: number; model: string; provider: string; emits_signals: boolean; scanner_config: unknown } | null; scanner_result: { model_output: unknown; signals_count: number } | null; triggered_by: "schedule" | "on_demand" | "retry"; triggered_by_user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; distinct_id: string | null; recording_subject_email: string | null; previous_observation_id: string | null; next_observation_id: string | null; label: { is_correct: boolean; feedback?: string } | null; started_at?: string | null; completed_at?: string | null; created_at: string })[] }>; /** * Retrieve one observation. Any list filters passed along (status, tags, order_by, …) scope the `previous_observation_id`/`next_observation_id` navigation to the matching, identically-ordered set — so prev/next from a filtered table stays within that filtered list. * Tags: vision * Access as: posthog.visionObservationsRetrieve() */ visionObservationsRetrieve: () => Promise<{ id: string; scanner_id: string; session_id: string; status: "pending" | "running" | "succeeded" | "failed" | "ineligible"; error_reason: string; workflow_id: string; scanner_snapshot: { name: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_version: number; model: string; provider: string; emits_signals: boolean; scanner_config: unknown } | null; scanner_result: { model_output: unknown; signals_count: number } | null; triggered_by: "schedule" | "on_demand" | "retry"; triggered_by_user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; distinct_id: string | null; recording_subject_email: string | null; previous_observation_id: string | null; next_observation_id: string | null; label: { is_correct: boolean; feedback?: string } | null; started_at?: string | null; completed_at?: string | null; created_at: string }>; /** * Set or update the observation's shared label: whether the scanner scored the session correctly, plus optional feedback on what it got wrong. One label per observation, shared across the team; these labels feed prompt improvement. Requires session recording edit access. * Tags: vision * Access as: posthog.visionObservationsLabelCreate() */ visionObservationsLabelCreate: () => Promise<{ is_correct: boolean; feedback?: string }>; /** * Remove the observation's shared label. Requires session recording edit access. * Tags: vision * Access as: posthog.visionObservationsLabelDestroy() */ visionObservationsLabelDestroy: () => Promise; /** * Delete a failed observation and re-run its scanner on the same recording. Returns 202 with the workflow handle. * Tags: vision * Access as: posthog.visionObservationsRetryCreate() */ visionObservationsRetryCreate: () => Promise; /** * * Tags: vision * Access as: posthog.environmentVisionQuotaRetrieve() */ environmentVisionQuotaRetrieve: () => Promise<{ credit_limit: number | null; credits_used: number; remaining: number | null; exhausted: boolean; period_start: string; period_end: string; projected_monthly_credits: number }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.visionScannersList() */ visionScannersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_config: unknown; query?: unknown; sampling_rate?: number; sampling_mode?: "focused" | "balanced" | "comprehensive"; provider?: "google"; model: "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3.5-flash"; enabled?: boolean; emits_signals?: boolean; scanner_version: number; estimated_monthly_observations: number | null; credits_per_observation: number; estimated_monthly_credits: number | null; last_swept_at: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string; feedback_themes: { themes: ({ theme: string; count: number; examples: (string)[]; sessions: ({ observation_id: string; session_id: string })[] })[]; feedback_count: number; generated_at: string } | null })[] }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.visionScannersCreate() */ visionScannersCreate: () => Promise<{ id: string; name: string; description?: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_config: unknown; query?: unknown; sampling_rate?: number; sampling_mode?: "focused" | "balanced" | "comprehensive"; provider?: "google"; model: "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3.5-flash"; enabled?: boolean; emits_signals?: boolean; scanner_version: number; estimated_monthly_observations: number | null; credits_per_observation: number; estimated_monthly_credits: number | null; last_swept_at: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string; feedback_themes: { themes: ({ theme: string; count: number; examples: (string)[]; sessions: ({ observation_id: string; session_id: string })[] })[]; feedback_count: number; generated_at: string } | null }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.visionScannersRetrieve() */ visionScannersRetrieve: () => Promise<{ id: string; name: string; description?: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_config: unknown; query?: unknown; sampling_rate?: number; sampling_mode?: "focused" | "balanced" | "comprehensive"; provider?: "google"; model: "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3.5-flash"; enabled?: boolean; emits_signals?: boolean; scanner_version: number; estimated_monthly_observations: number | null; credits_per_observation: number; estimated_monthly_credits: number | null; last_swept_at: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string; feedback_themes: { themes: ({ theme: string; count: number; examples: (string)[]; sessions: ({ observation_id: string; session_id: string })[] })[]; feedback_count: number; generated_at: string } | null }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.visionScannersPartialUpdate() */ visionScannersPartialUpdate: () => Promise<{ id: string; name: string; description?: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_config: unknown; query?: unknown; sampling_rate?: number; sampling_mode?: "focused" | "balanced" | "comprehensive"; provider?: "google"; model: "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3.5-flash"; enabled?: boolean; emits_signals?: boolean; scanner_version: number; estimated_monthly_observations: number | null; credits_per_observation: number; estimated_monthly_credits: number | null; last_swept_at: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; updated_at: string; feedback_themes: { themes: ({ theme: string; count: number; examples: (string)[]; sessions: ({ observation_id: string; session_id: string })[] })[]; feedback_count: number; generated_at: string } | null }>; /** * CRUD for Replay Vision scanners. * Tags: vision * Access as: posthog.visionScannersDestroy() */ visionScannersDestroy: () => Promise; /** * Apply this scanner to one specific session, on demand. Returns 202 with the workflow handle. * Tags: vision * Access as: posthog.visionScannersObserveCreate() */ visionScannersObserveCreate: () => Promise; /** * Read-only access to observations produced by a scanner. * Tags: vision * Access as: posthog.visionScannersObservationsList() */ visionScannersObservationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; scanner_id: string; session_id: string; status: "pending" | "running" | "succeeded" | "failed" | "ineligible"; error_reason: string; workflow_id: string; scanner_snapshot: { name: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_version: number; model: string; provider: string; emits_signals: boolean; scanner_config: unknown } | null; scanner_result: { model_output: unknown; signals_count: number } | null; triggered_by: "schedule" | "on_demand" | "retry"; triggered_by_user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; distinct_id: string | null; recording_subject_email: string | null; previous_observation_id: string | null; next_observation_id: string | null; label: { is_correct: boolean; feedback?: string } | null; started_at?: string | null; completed_at?: string | null; created_at: string })[] }>; /** * Retrieve one observation. Any list filters passed along (status, tags, order_by, …) scope the `previous_observation_id`/`next_observation_id` navigation to the matching, identically-ordered set — so prev/next from a filtered table stays within that filtered list. * Tags: vision * Access as: posthog.visionScannersObservationsRetrieve() */ visionScannersObservationsRetrieve: () => Promise<{ id: string; scanner_id: string; session_id: string; status: "pending" | "running" | "succeeded" | "failed" | "ineligible"; error_reason: string; workflow_id: string; scanner_snapshot: { name: string; scanner_type: "monitor" | "classifier" | "scorer" | "summarizer"; scanner_version: number; model: string; provider: string; emits_signals: boolean; scanner_config: unknown } | null; scanner_result: { model_output: unknown; signals_count: number } | null; triggered_by: "schedule" | "on_demand" | "retry"; triggered_by_user: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; distinct_id: string | null; recording_subject_email: string | null; previous_observation_id: string | null; next_observation_id: string | null; label: { is_correct: boolean; feedback?: string } | null; started_at?: string | null; completed_at?: string | null; created_at: string }>; /** * Set or update the observation's shared label: whether the scanner scored the session correctly, plus optional feedback on what it got wrong. One label per observation, shared across the team; these labels feed prompt improvement. Requires session recording edit access. * Tags: vision * Access as: posthog.visionScannersObservationsLabelCreate() */ visionScannersObservationsLabelCreate: () => Promise<{ is_correct: boolean; feedback?: string }>; /** * Remove the observation's shared label. Requires session recording edit access. * Tags: vision * Access as: posthog.visionScannersObservationsLabelDestroy() */ visionScannersObservationsLabelDestroy: () => Promise; /** * Delete a failed observation and re-run its scanner on the same recording. Returns 202 with the workflow handle. * Tags: vision * Access as: posthog.visionScannersObservationsRetryCreate() */ visionScannersObservationsRetryCreate: () => Promise; /** * Aggregate counts and per-scanner-type distributions over the filtered observation set. Same filters as the list endpoint apply. * Tags: vision * Access as: posthog.visionScannersObservationsStatsRetrieve() */ visionScannersObservationsStatsRetrieve: () => Promise<{ status_counts: { total: number; succeeded: number; failed: number; ineligible: number; in_flight: number; success_rate: number | null }; coverage: { recent_sessions: number; total_sessions: number; recent_days: number }; labels: { up_total: number; down_total: number; by_day: ({ date: string; up: number; down: number })[]; by_rating_day: ({ date: string; up: number; down: number })[]; version_markers: ({ date: string; version: number; prompt: string; up: number; down: number; total: number })[] }; available_tags: (string)[]; monitor: { yes_total: number; no_total: number; inconclusive_total: number } | null; classifier: { fixed_ranked: ({ tag: string; count: number })[]; freeform_ranked: ({ tag: string; count: number })[]; total_with_tags: number } | null; scorer: { summary: { min: number; p25: number; median: number; mean: number; p75: number; max: number; count: number } | null; histogram: { labels: (string)[]; counts: (number)[] } | null } | null }>; /** * AI prompt-rewrite suggestions for a scanner, generated from the team's thumbs up/down ratings. * Tags: vision * Access as: posthog.visionScannersPromptSuggestionsList() */ visionScannersPromptSuggestionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null })[] }>; /** * Apply this suggestion: write its prompt to the scanner (bumping the scanner version) and mark the suggestion applied. Only the current pending suggestion can be applied. Requires session recording edit access. * Tags: vision * Access as: posthog.visionScannersPromptSuggestionsApplyCreate() */ visionScannersPromptSuggestionsApplyCreate: () => Promise<{ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null }>; /** * Dismiss this suggestion without applying it. Only the current pending suggestion can be dismissed. Requires session recording edit access. * Tags: vision * Access as: posthog.visionScannersPromptSuggestionsDismissCreate() */ visionScannersPromptSuggestionsDismissCreate: () => Promise<{ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null }>; /** * Test this suggestion before applying it: re-run the scanner with the suggested prompt against already-rated sessions in the background and compare each fresh output with the stored one. Results land on the suggestion's `evaluation` field. Poll `current` while status is running. `session_limit` controls how many rated sessions are re-run (thumbs-down prioritized, up to `evaluation_session_cap`). Each successful re-run charges credits like a normal observation of the same model. The request is refused with 402 when the planned credits exceed what is left of the monthly limit. Only monitor and classifier scanners are supported. Requires session recording edit access. * Tags: vision * Access as: posthog.visionScannersPromptSuggestionsEvaluateCreate() */ visionScannersPromptSuggestionsEvaluateCreate: () => Promise<{ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null }>; /** * The scanner's newest prompt suggestion plus whether it is stale (the ratings changed since it was generated) and how many rated observations are available. * Tags: vision * Access as: posthog.visionScannersPromptSuggestionsCurrentRetrieve() */ visionScannersPromptSuggestionsCurrentRetrieve: () => Promise<{ suggestion: { id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null } | null; stale: boolean; rated_count: number; evaluation_session_cap: number }>; /** * Generate a fresh prompt suggestion from the team's current ratings. The previous pending suggestion becomes history (superseded). Requires at least one rated observation and session recording edit access. * Tags: vision * Access as: posthog.visionScannersPromptSuggestionsGenerateCreate() */ visionScannersPromptSuggestionsGenerateCreate: () => Promise<{ id: string; status: "pending" | "applied" | "dismissed" | "superseded" | "no_change"; suggested_prompt: string; base_prompt: string; rationale: string; based_on_up: number; based_on_down: number; scanner_version: number; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; applied_at: string | null; applied_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null } | null; evaluation: { status: string; started_at: string; finished_at: string | null; total: number; labels_fingerprint: string; results: ({ session_id: string; observation_id: string; rated_correct: boolean; before: string | null; after: string | null; outcome: string; error: string | null })[]; summary: { kept: number; regressed: number; fixed: number; still_wrong: number; errors: number } | null } | null }>; /** * Distinct creators across the team's scanners — feeds the `Created by` filter dropdown. * Tags: vision * Access as: posthog.visionScannersCreatorsRetrieve() */ visionScannersCreatorsRetrieve: () => Promise<{ creators: ({ id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null })[] }>; /** * Estimate the observation volume a proposed scanner would generate, for the pre-save cost preview. * Tags: vision * Access as: posthog.visionScannersEstimateCreate() */ visionScannersEstimateCreate: () => Promise<{ matched_sessions_in_window: number; window_days: number; estimated_observations_per_month: number; credits_per_observation: number; estimated_credits_per_month: number; other_enabled_scanners_monthly_credits: number; sampling_rate: number }>; /** * Team-wide scanner counts — independent of list filters, so the overview stays stable. * Tags: vision * Access as: posthog.visionScannersStatsRetrieve() */ visionScannersStatsRetrieve: () => Promise<{ total: number; enabled: number; by_type: { monitor: { enabled: number; total: number }; classifier: { enabled: number; total: number }; scorer: unknown; summarizer: unknown } }>; /** * Suggest classifier tags grounded in the scanner's own observations and the org's product data. * Tags: vision * Access as: posthog.visionScannersSuggestTagsCreate() */ visionScannersSuggestTagsCreate: () => Promise<{ suggestions: ({ tag: string; rationale: string; source: "observed" | "product" | "prompt" })[] }>; /** * List all projects for the team. * Tags: visual_review * Access as: posthog.visualReviewReposList() */ visualReviewReposList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; team_id: number; repo_external_id: number; repo_full_name: string; baseline_file_paths: { [key: string]: string | undefined }; enable_pr_comments: boolean; created_at: string })[] }>; /** * Create a new repo. * Tags: visual_review * Access as: posthog.visualReviewReposCreate() */ visualReviewReposCreate: () => Promise<{ id: string; team_id: number; repo_external_id: number; repo_full_name: string; baseline_file_paths: { [key: string]: string | undefined }; enable_pr_comments: boolean; created_at: string }>; /** * Get a repo by ID. * Tags: visual_review * Access as: posthog.visualReviewReposRetrieve() */ visualReviewReposRetrieve: () => Promise<{ id: string; team_id: number; repo_external_id: number; repo_full_name: string; baseline_file_paths: { [key: string]: string | undefined }; enable_pr_comments: boolean; created_at: string }>; /** * Update a repo's settings. * Tags: visual_review * Access as: posthog.visualReviewReposPartialUpdate() */ visualReviewReposPartialUpdate: () => Promise<{ id: string; team_id: number; repo_external_id: number; repo_full_name: string; baseline_file_paths: { [key: string]: string | undefined }; enable_pr_comments: boolean; created_at: string }>; /** * Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000 entries — sets `truncated` and returns the most recently active when exceeded. Filtering / faceting / search are all done client-side; this endpoint takes no filter query params. * Tags: visual_review * Access as: posthog.visualReviewReposBaselinesRetrieve() */ visualReviewReposBaselinesRetrieve: () => Promise<{ entries: ({ quarantine?: { created_by?: { id: number; first_name: string; email: string } | null; source_run?: { id: string; branch: string; commit_sha: string; created_at: string; pr_number?: number | null } | null; id: string; reason: string; expires_at: string | null; created_at: string } | null; identifier: string; run_type: string; browser: string | null; thumbnail_hash: string | null; width: number | null; height: number | null; tolerate_count_30d: number; tolerate_count_90d: number; is_quarantined: boolean; last_run_at: string; baseline_change_count: number; recent_drift_avg: number | null })[]; totals: { by_run_type: { [key: string]: number | undefined }; all_snapshots: number; recently_tolerated: number; frequently_tolerated: number; currently_quarantined: number }; truncated: boolean; generated_at: string }>; /** * List quarantined identifiers. Without filter: active only. With identifier: full history. * Tags: visual_review * Access as: posthog.visualReviewReposQuarantineList() */ visualReviewReposQuarantineList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ created_by?: { id: number; first_name: string; email: string } | null; source_run?: { id: string; branch: string; commit_sha: string; created_at: string; pr_number?: number | null } | null; id: string; identifier: string; run_type: string; reason: string; expires_at: string | null; created_at: string; updated_at: string })[] }>; /** * Quarantine a snapshot identifier for a specific run type. * Tags: visual_review * Access as: posthog.visualReviewReposQuarantineCreate() */ visualReviewReposQuarantineCreate: () => Promise<{ created_by?: { id: number; first_name: string; email: string } | null; source_run?: { id: string; branch: string; commit_sha: string; created_at: string; pr_number?: number | null } | null; id: string; identifier: string; run_type: string; reason: string; expires_at: string | null; created_at: string; updated_at: string }>; /** * Expire all active quarantine entries for an identifier. * Tags: visual_review * Access as: posthog.visualReviewReposQuarantineExpireCreate() */ visualReviewReposQuarantineExpireCreate: () => Promise; /** * Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching. * Tags: visual_review * Access as: posthog.visualReviewReposThumbnailsRetrieve() */ visualReviewReposThumbnailsRetrieve: () => Promise; /** * List runs in this repo, optionally filtered by review state and free-text search. * Tags: visual_review * Access as: posthog.visualReviewReposRunsList() */ visualReviewReposRunsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ approved_by?: { id: number; first_name: string; email: string } | null; search_match_type: "exact" | "similar" | null; id: string; repo_id: string; status: string; run_type: string; commit_sha: string; branch: string; pr_number: number | null; approved: boolean; approved_at: string | null; summary: { total: number; changed: number; new: number; removed: number; unchanged: number; unresolved?: number; tolerated_matched?: number }; error_message: string | null; created_at: string; completed_at: string | null; is_stale?: boolean; superseded_by_id?: string | null; metadata?: { [key: string]: unknown } })[] }>; /** * Review state counts for runs in this repo. * Tags: visual_review * Access as: posthog.visualReviewReposRunsCountsRetrieve() */ visualReviewReposRunsCountsRetrieve: () => Promise<{ needs_review: number; clean: number; processing: number; stale: number }>; /** * Deduped baseline timeline for a snapshot identity. Newest first. * Tags: visual_review * Access as: posthog.visualReviewReposSnapshotsList() */ visualReviewReposSnapshotsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ current_artifact?: { id: string; content_hash: string; width: number | null; height: number | null; download_url: string | null } | null; run_id: string; snapshot_id: string; result: string; branch: string; commit_sha: string; created_at: string; pr_number?: number | null; diff_percentage?: number | null; review_state?: string; ssim_score?: number | null; change_kind?: string; size_mismatch?: boolean })[] }>; /** * List runs for the team, optionally filtered by review state, PR number, commit SHA, branch, or free-text search. * Tags: visual_review * Access as: posthog.visualReviewRunsList() */ visualReviewRunsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ approved_by?: { id: number; first_name: string; email: string } | null; search_match_type: "exact" | "similar" | null; id: string; repo_id: string; status: string; run_type: string; commit_sha: string; branch: string; pr_number: number | null; approved: boolean; approved_at: string | null; summary: { total: number; changed: number; new: number; removed: number; unchanged: number; unresolved?: number; tolerated_matched?: number }; error_message: string | null; created_at: string; completed_at: string | null; is_stale?: boolean; superseded_by_id?: string | null; metadata?: { [key: string]: unknown } })[] }>; /** * Create a new run from a CI manifest. * Tags: visual_review * Access as: posthog.visualReviewRunsCreate() */ visualReviewRunsCreate: () => Promise<{ run_id: string; uploads: ({ content_hash: string; url: string; fields: { [key: string]: string | undefined } })[] }>; /** * Get run status and summary. * Tags: visual_review * Access as: posthog.visualReviewRunsRetrieve() */ visualReviewRunsRetrieve: () => Promise<{ approved_by?: { id: number; first_name: string; email: string } | null; search_match_type: "exact" | "similar" | null; id: string; repo_id: string; status: string; run_type: string; commit_sha: string; branch: string; pr_number: number | null; approved: boolean; approved_at: string | null; summary: { total: number; changed: number; new: number; removed: number; unchanged: number; unresolved?: number; tolerated_matched?: number }; error_message: string | null; created_at: string; completed_at: string | null; is_stale?: boolean; superseded_by_id?: string | null; metadata?: { [key: string]: unknown } }>; /** * Add a batch of snapshots to a pending run (shard-based flow). * Tags: visual_review * Access as: posthog.visualReviewRunsAddSnapshotsCreate() */ visualReviewRunsAddSnapshotsCreate: () => Promise<{ added: number; uploads: ({ content_hash: string; url: string; fields: { [key: string]: string | undefined } })[] }>; /** * Mark snapshots reviewed (DB only). Records the per-snapshot "Accept change" decision. Does not commit the baseline or change the GitHub gate — call finalize to ship the run. * Tags: visual_review * Access as: posthog.visualReviewRunsApproveCreate() */ visualReviewRunsApproveCreate: () => Promise<{ approved_by?: { id: number; first_name: string; email: string } | null; search_match_type: "exact" | "similar" | null; id: string; repo_id: string; status: string; run_type: string; commit_sha: string; branch: string; pr_number: number | null; approved: boolean; approved_at: string | null; summary: { total: number; changed: number; new: number; removed: number; unchanged: number; unresolved?: number; tolerated_matched?: number }; error_message: string | null; created_at: string; completed_at: string | null; is_stale?: boolean; superseded_by_id?: string | null; metadata?: { [key: string]: unknown } }>; /** * Complete a run: detect removals, verify uploads, trigger diff processing. * Tags: visual_review * Access as: posthog.visualReviewRunsCompleteCreate() */ visualReviewRunsCompleteCreate: () => Promise<{ approved_by?: { id: number; first_name: string; email: string } | null; search_match_type: "exact" | "similar" | null; id: string; repo_id: string; status: string; run_type: string; commit_sha: string; branch: string; pr_number: number | null; approved: boolean; approved_at: string | null; summary: { total: number; changed: number; new: number; removed: number; unchanged: number; unresolved?: number; tolerated_matched?: number }; error_message: string | null; created_at: string; completed_at: string | null; is_stale?: boolean; superseded_by_id?: string | null; metadata?: { [key: string]: unknown } }>; /** * Finalize a fully-reviewed run: commit the approved baseline and green the gate. Commits exactly the snapshots approved in the DB (tolerated ones keep their baseline) and only succeeds once every changed/new snapshot is resolved. With approve_all=true, any still-pending changed/new snapshot is approved first. With commit_to_github=false the server returns the signed baseline YAML instead of committing it. * Tags: visual_review * Access as: posthog.visualReviewRunsFinalizeCreate() */ visualReviewRunsFinalizeCreate: () => Promise<{ run: { approved_by?: { id: number; first_name: string; email: string } | null; search_match_type: "exact" | "similar" | null; id: string; repo_id: string; status: string; run_type: string; commit_sha: string; branch: string; pr_number: number | null; approved: boolean; approved_at: string | null; summary: { total: number; changed: number; new: number; removed: number; unchanged: number; unresolved?: number; tolerated_matched?: number }; error_message: string | null; created_at: string; completed_at: string | null; is_stale?: boolean; superseded_by_id?: string | null; metadata?: { [key: string]: unknown } }; baseline_content: string }>; /** * Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job. * Tags: visual_review * Access as: posthog.visualReviewRunsRecomputeCreate() */ visualReviewRunsRecomputeCreate: () => Promise<{ run: { approved_by?: { id: number; first_name: string; email: string } | null; search_match_type: "exact" | "similar" | null; id: string; repo_id: string; status: string; run_type: string; commit_sha: string; branch: string; pr_number: number | null; approved: boolean; approved_at: string | null; summary: { total: number; changed: number; new: number; removed: number; unchanged: number; unresolved?: number; tolerated_matched?: number }; error_message: string | null; created_at: string; completed_at: string | null; is_stale?: boolean; superseded_by_id?: string | null; metadata?: { [key: string]: unknown } }; counts_changed: boolean; unresolved: number; ci_rerun_triggered: boolean; ci_rerun_error?: string | null }>; /** * Recent change history for a snapshot identifier across runs. * Tags: visual_review * Access as: posthog.visualReviewRunsSnapshotHistoryList() */ visualReviewRunsSnapshotHistoryList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ current_artifact?: { id: string; content_hash: string; width: number | null; height: number | null; download_url: string | null } | null; run_id: string; snapshot_id: string; result: string; branch: string; commit_sha: string; created_at: string; pr_number?: number | null; diff_percentage?: number | null; review_state?: string; ssim_score?: number | null; change_kind?: string; size_mismatch?: boolean })[] }>; /** * Get a run's snapshots with diff results, excluding quarantined ones by default. * Tags: visual_review * Access as: posthog.visualReviewRunsSnapshotsList() */ visualReviewRunsSnapshotsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ current_artifact?: { id: string; content_hash: string; width: number | null; height: number | null; download_url: string | null } | null; baseline_artifact?: { id: string; content_hash: string; width: number | null; height: number | null; download_url: string | null } | null; diff_artifact?: unknown | null; reviewed_by?: { id: number; first_name: string; email: string } | null; cluster_summary?: { items: ({ x: number; y: number; width: number; height: number; pixel_count: number; centroid_x: number; centroid_y: number })[]; total: number; truncated: boolean } | null; id: string; run_id: string; identifier: string; result: string; classification_reason: string; diff_percentage: number | null; diff_pixel_count: number | null; review_state: string; reviewed_at: string | null; approved_hash: string; tolerated_hash_id?: string | null; is_quarantined?: boolean; metadata?: { [key: string]: unknown }; ssim_score?: number | null; change_kind?: string; size_mismatch?: boolean })[]; quarantined_count?: number }>; /** * Mark a changed snapshot as a known tolerated alternate. * Tags: visual_review * Access as: posthog.visualReviewRunsTolerateCreate() */ visualReviewRunsTolerateCreate: () => Promise<{ current_artifact?: { id: string; content_hash: string; width: number | null; height: number | null; download_url: string | null } | null; baseline_artifact?: { id: string; content_hash: string; width: number | null; height: number | null; download_url: string | null } | null; diff_artifact?: unknown | null; reviewed_by?: { id: number; first_name: string; email: string } | null; cluster_summary?: { items: ({ x: number; y: number; width: number; height: number; pixel_count: number; centroid_x: number; centroid_y: number })[]; total: number; truncated: boolean } | null; id: string; run_id: string; identifier: string; result: string; classification_reason: string; diff_percentage: number | null; diff_pixel_count: number | null; review_state: string; reviewed_at: string | null; approved_hash: string; tolerated_hash_id?: string | null; is_quarantined?: boolean; metadata?: { [key: string]: unknown }; ssim_score?: number | null; change_kind?: string; size_mismatch?: boolean }>; /** * List known tolerated hashes for a snapshot identifier. * Tags: visual_review * Access as: posthog.visualReviewRunsToleratedHashesList() */ visualReviewRunsToleratedHashesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; alternate_hash: string; baseline_hash: string; reason: string; diff_percentage: number | null; created_at: string; source_run_id: string | null })[] }>; /** * Review state counts for the runs list. * Tags: visual_review * Access as: posthog.visualReviewRunsCountsRetrieve() */ visualReviewRunsCountsRetrieve: () => Promise<{ needs_review: number; clean: number; processing: number; stale: number }>; /** * Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation. * Tags: warehouse_column_annotations * Access as: posthog.warehouseColumnAnnotationsList() */ warehouseColumnAnnotationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; table: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null })[] }>; /** * Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation. * Tags: warehouse_column_annotations * Access as: posthog.warehouseColumnAnnotationsCreate() */ warehouseColumnAnnotationsCreate: () => Promise<{ id: string; table: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null }>; /** * Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation. * Tags: warehouse_column_annotations * Access as: posthog.warehouseColumnAnnotationsRetrieve() */ warehouseColumnAnnotationsRetrieve: () => Promise<{ id: string; table: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null }>; /** * Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation. * Tags: warehouse_column_annotations * Access as: posthog.warehouseColumnAnnotationsUpdate() */ warehouseColumnAnnotationsUpdate: () => Promise<{ id: string; table: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null }>; /** * Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation. * Tags: warehouse_column_annotations * Access as: posthog.warehouseColumnAnnotationsPartialUpdate() */ warehouseColumnAnnotationsPartialUpdate: () => Promise<{ id: string; table: string; column_name?: string; description: string; description_source: "canonical" | "ai_generated" | "user_edited"; ai_model: string; is_user_edited: boolean; created_at: string; updated_at: string | null }>; /** * Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation. * Tags: warehouse_column_annotations * Access as: posthog.warehouseColumnAnnotationsDestroy() */ warehouseColumnAnnotationsDestroy: () => Promise; /** * Read per-column data statistics (null fraction, min/max, row count) for warehouse tables. Statistics are computed automatically after a sync and surfaced to the AI agent so it can write better queries. They are system-owned and read-only here. List can be filtered to one table with `?table_id=`. * Tags: warehouse_column_statistics * Access as: posthog.warehouseColumnStatisticsList() */ warehouseColumnStatisticsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; table: string; column_name: string; column_type: string; row_count: number; null_count: number; null_fraction: number; min_value: string; max_value: string; has_min_max: boolean; computed_at: string; computed_for_delta_version: number; stats_basis: string; created_at: string; updated_at: string | null })[] }>; /** * Read per-column data statistics (null fraction, min/max, row count) for warehouse tables. Statistics are computed automatically after a sync and surfaced to the AI agent so it can write better queries. They are system-owned and read-only here. List can be filtered to one table with `?table_id=`. * Tags: warehouse_column_statistics * Access as: posthog.warehouseColumnStatisticsRetrieve() */ warehouseColumnStatisticsRetrieve: () => Promise<{ id: string; table: string; column_name: string; column_type: string; row_count: number; null_count: number; null_fraction: number; min_value: string; max_value: string; has_min_max: boolean; computed_at: string; computed_for_delta_version: number; stats_basis: string; created_at: string; updated_at: string | null }>; /** * Return this team's DAG as a set of edges and nodes * Tags: warehouse_dag * Access as: posthog.warehouseDagList() */ warehouseDagList: () => Promise; /** * * Tags: warehouse_model_paths * Access as: posthog.warehouseModelPathsList() */ warehouseModelPathsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; path: (string)[]; team: number; table?: string | null; saved_query?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null })[] }>; /** * * Tags: warehouse_model_paths * Access as: posthog.warehouseModelPathsRetrieve() */ warehouseModelPathsRetrieve: () => Promise<{ id: string; path: (string)[]; team: number; table?: string | null; saved_query?: string | null; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; updated_at: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesList() */ warehouseSavedQueriesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; deleted: boolean | null; name: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description: string; sync_frequency: string | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | null; last_run_at: string | null; managed_viewset_kind: string | null; folder_id: string | null; folder_name: string | null; latest_error: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test: boolean; expires_at: string | null; user_access_level: string | null })[] }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesCreate() */ warehouseSavedQueriesCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesRetrieve() */ warehouseSavedQueriesRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesUpdate() */ warehouseSavedQueriesUpdate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesPartialUpdate() */ warehouseSavedQueriesPartialUpdate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesDestroy() */ warehouseSavedQueriesDestroy: () => Promise; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesActivityRetrieve() */ warehouseSavedQueriesActivityRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Return the ancestors of this saved query. By default, we return the immediate parents. The `level` parameter can be used to look further back into the ancestor tree. If `level` overshoots (i.e. points to only ancestors beyond the root), we return an empty list. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesAncestorsCreate() */ warehouseSavedQueriesAncestorsCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Cancel a running saved query workflow. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesCancelCreate() */ warehouseSavedQueriesCancelCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Return the count of immediate upstream and downstream dependencies for this saved query. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesDependenciesRetrieve() */ warehouseSavedQueriesDependenciesRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Return the descendants of this saved query. By default, we return the immediate children. The `level` parameter can be used to look further ahead into the descendants tree. If `level` overshoots (i.e. points to only descendants further than a leaf), we return an empty list. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesDescendantsCreate() */ warehouseSavedQueriesDescendantsCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Enable materialization for this saved query with a 24-hour sync frequency. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesMaterializeCreate() */ warehouseSavedQueriesMaterializeCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Undo materialization, revert back to the original view. (i.e. delete the materialized table and the schedule) * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesRevertMaterializationCreate() */ warehouseSavedQueriesRevertMaterializationCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Run this saved query. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesRunCreate() */ warehouseSavedQueriesRunCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Return the recent run history (up to 5 most recent) for this materialized view. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesRunHistoryRetrieve() */ warehouseSavedQueriesRunHistoryRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * Resume paused materialization schedules for multiple matviews. Accepts a list of view IDs in the request body: {"view_ids": ["id1", "id2", ...]} This endpoint is idempotent - calling it on already running or non-existent schedules is safe. * Tags: warehouse_saved_queries * Access as: posthog.warehouseSavedQueriesResumeSchedulesCreate() */ warehouseSavedQueriesResumeSchedulesCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; query: { kind?: "HogQLQuery"; query: string }; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; description?: string | null; sync_frequency?: "never" | "15min" | "30min" | "1hour" | "6hour" | "12hour" | "24hour" | "7day" | "30day" | null; columns: ({ [key: string]: unknown })[]; status: "Cancelled" | "Modified" | "Completed" | "Failed" | "Running" | unknown; last_run_at: string | null; managed_viewset_kind: string | null; folder_id?: string | null; folder_name: string | null; latest_error: string | null; edited_history_id?: string | null; latest_history_id: number | null; soft_update?: boolean | null; dag_id?: string | null; is_materialized: boolean | null; origin: "data_warehouse" | "endpoint" | "managed_viewset" | unknown; is_test?: boolean; expires_at: string | null; user_access_level: string | null }>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.warehouseSavedQueryFoldersList() */ warehouseSavedQueryFoldersList: () => Promise<({ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; view_count: number; user_access_level: string | null })[]>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.warehouseSavedQueryFoldersCreate() */ warehouseSavedQueryFoldersCreate: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; view_count: number; user_access_level: string | null }>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.warehouseSavedQueryFoldersRetrieve() */ warehouseSavedQueryFoldersRetrieve: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; view_count: number; user_access_level: string | null }>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.warehouseSavedQueryFoldersPartialUpdate() */ warehouseSavedQueryFoldersPartialUpdate: () => Promise<{ id: string; name: string; created_at: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; view_count: number; user_access_level: string | null }>; /** * * Tags: warehouse_saved_query_folders * Access as: posthog.warehouseSavedQueryFoldersDestroy() */ warehouseSavedQueryFoldersDestroy: () => Promise; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.warehouseTablesList() */ warehouseTablesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null })[] }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.warehouseTablesCreate() */ warehouseTablesCreate: () => Promise<{ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.warehouseTablesRetrieve() */ warehouseTablesRetrieve: () => Promise<{ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.warehouseTablesUpdate() */ warehouseTablesUpdate: () => Promise<{ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.warehouseTablesPartialUpdate() */ warehouseTablesPartialUpdate: () => Promise<{ id: string; deleted?: boolean | null; name: string; format: "CSV" | "CSVWithNames" | "Parquet" | "JSONEachRow" | "Delta" | "DeltaS3Wrapper"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; url_pattern: string; credential: { id: string; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; access_key: string; access_secret: string }; columns: ({ [key: string]: unknown })[]; external_data_source: { id: string; created_at: string; created_by: number | null; status: string; source_type: "Ashby" | "Supabase" | "CustomerIO" | "Github" | "Stripe" | "Hubspot" | "Postgres" | "Zendesk" | "Snowflake" | "Salesforce" | "MySQL" | "MongoDB" | "MSSQL" | "Vitally" | "BigQuery" | "Chargebee" | "Clerk" | "GoogleAds" | "GoogleSearchConsole" | "TemporalIO" | "DoIt" | "GoogleSheets" | "MetaAds" | "Klaviyo" | "Mailchimp" | "Braze" | "Mailjet" | "Redshift" | "Polar" | "RevenueCat" | "LinkedinAds" | "RedditAds" | "TikTokAds" | "BingAds" | "Shopify" | "Attio" | "SnapchatAds" | "Linear" | "Intercom" | "Amplitude" | "Mixpanel" | "Jira" | "ActiveCampaign" | "Marketo" | "Adjust" | "AppsFlyer" | "Freshdesk" | "GoogleAnalytics" | "Pipedrive" | "SendGrid" | "Slack" | "PagerDuty" | "Asana" | "Notion" | "Airtable" | "Greenhouse" | "BambooHR" | "Lever" | "GitLab" | "Datadog" | "Sentry" | "Pendo" | "FullStory" | "AmazonAds" | "PinterestAds" | "AppleSearchAds" | "QuickBooks" | "Xero" | "NetSuite" | "WooCommerce" | "BigCommerce" | "PayPal" | "Square" | "Zoom" | "Trello" | "Monday" | "ClickUp" | "Confluence" | "Recurly" | "SalesLoft" | "Outreach" | "Gong" | "Calendly" | "Typeform" | "Iterable" | "ZohoCRM" | "Close" | "Oracle" | "DynamoDB" | "Elasticsearch" | "Kafka" | "LaunchDarkly" | "Braintree" | "Recharge" | "HelpScout" | "Gorgias" | "Instagram" | "YouTubeAnalytics" | "FacebookPages" | "TwitterAds" | "Workday" | "ServiceNow" | "Pardot" | "Copper" | "Front" | "ChartMogul" | "Zuora" | "Paddle" | "CircleCI" | "CockroachDB" | "Firebase" | "AzureBlob" | "GoogleDrive" | "OneDrive" | "SharePoint" | "Box" | "SFTP" | "MicrosoftTeams" | "Aircall" | "Webflow" | "Okta" | "Auth0" | "Productboard" | "Smartsheet" | "Wrike" | "Plaid" | "SurveyMonkey" | "Eventbrite" | "RingCentral" | "Twilio" | "Freshsales" | "Shortcut" | "ConvertKit" | "Drip" | "CampaignMonitor" | "MailerLite" | "Omnisend" | "Brevo" | "Postmark" | "Granola" | "BuildBetter" | "Convex" | "ClickHouse" | "Plain" | "Resend" | "PgAnalyze" | "WorkOS" | "AmazonS3" | "GoogleCloudStorage" | "Databricks" | "Dynamics365" | "SalesforceMarketingCloud" | "Db2" | "Heap" | "AdobeAnalytics" | "Matomo" | "Optimizely" | "Adyen" | "GoCardless" | "Mollie" | "CheckoutCom" | "Branch" | "Criteo" | "Outbrain" | "Taboola" | "AdRoll" | "DisplayVideo360" | "GoogleAdManager" | "CampaignManager360" | "SearchAds360" | "AdobeCommerce" | "AmazonSellingPartner" | "Ebay" | "Commercetools" | "LightspeedRetail" | "ShipStation" | "ConstantContact" | "Mailgun" | "Eloqua" | "Sailthru" | "Ortto" | "Attentive" | "Kustomer" | "Dixa" | "Gladly" | "Qualtrics" | "Delighted" | "AzureDevOps" | "Rollbar" | "Opsgenie" | "IncidentIo" | "Pingdom" | "Cloudflare" | "CosmosDB" | "PlanetScale" | "SapHana" | "Rippling" | "HiBob" | "Personio" | "Deel" | "AdpWorkforceNow" | "Paylocity" | "Gusto" | "CultureAmp" | "Lattice" | "SageIntacct" | "FreshBooks" | "Expensify" | "Ramp" | "Brex" | "Coupa" | "SapConcur" | "Apollo" | "Crunchbase" | "ZoomInfo" | "Clari" | "Chorus" | "Coda" | "Guru" | "Dropbox" | "Docusign" | "PandaDoc" | "SapErp" | "SapSuccessFactors" | "OracleEbs" | "OracleFusion" | "AmazonSNS" | "AmazonEventBridge" | "AmazonSQS" | "AmazonKinesis" | "AmazonCloudWatch" | "OpenAIAds" | "OneHundredMs" | "SevenShifts" | "AcuityScheduling" | "AgileCRM" | "Aha" | "Airbyte" | "Akeneo" | "Algolia" | "AlpacaBrokerAPI" | "ApifyDataset" | "Appcues" | "Appfigures" | "Appfollow" | "Apptivo" | "AssemblyAI" | "Awin" | "AwsCloudTrail" | "AzureTableStorage" | "Babelforce" | "Basecamp" | "Beamer" | "BigMailer" | "Bluetally" | "BoldSign" | "BreezyHR" | "Bugsnag" | "Buildkite" | "Bunny" | "Buzzsprout" | "CalCom" | "CallRail" | "Campayn" | "Canny" | "CapsuleCRM" | "CaptainData" | "CartCom" | "CastorEDC" | "Chameleon" | "Chargedesk" | "Chargify" | "Chift" | "Churnkey" | "Cin7" | "CiscoMeraki" | "Clazar" | "Clockify" | "Clockodo" | "Cloudbeds" | "Coassemble" | "Codefresh" | "Concord" | "ConfigCat" | "Couchbase" | "Curve" | "Customerly" | "Datascope" | "Dbt" | "Deputy" | "DevinAI" | "Docuseal" | "Dolibarr" | "Dremio" | "DropboxSign" | "Dwolla" | "EConomic" | "Easypost" | "Easypromos" | "Elasticemail" | "EmailOctopus" | "EmploymentHero" | "Encharge" | "Eventee" | "Eventzilla" | "Everhour" | "EZOfficeInventory" | "Factorial" | "Fastbill" | "Fastly" | "Fauna" | "Feishu" | "Fillout" | "Finage" | "Firebolt" | "FireHydrant" | "Fleetio" | "Flexmail" | "Flexport" | "FloatApp" | "Flowlu" | "Formbricks" | "FreeAgent" | "Freightview" | "Freshcaller" | "Freshchat" | "Freshservice" | "Fulcrum" | "GainsightPx" | "GitBook" | "Glassfrog" | "Goldcast" | "GoLogin" | "Grafana" | "GreytHr" | "Gridly" | "Harness" | "Height" | "Hellobaton" | "HighLevel" | "HoorayHR" | "Hubplanner" | "Humanitix" | "Huntr" | "Inflowinventory" | "InforNexus" | "Insightful" | "Insightly" | "Instantly" | "Instatus" | "Intruder" | "Invoiced" | "Invoiceninja" | "JamfPro" | "JobNimbus" | "Jotform" | "JudgeMeReviews" | "JustCall" | "JustSift" | "K6Cloud" | "Katana" | "Keka" | "Kisi" | "Kissmetrics" | "Klarna" | "Klaus" | "Lago" | "Leadfeeder" | "Lemlist" | "LessAnnoyingCRM" | "LinkedinPages" | "Linkrunner" | "Linnworks" | "Lob" | "Lokalise" | "Looker" | "Luma" | "MailerSend" | "Mailosaur" | "Mailtrap" | "Mantle" | "Mention" | "MercadoAds" | "Merge" | "Metabase" | "Metricool" | "MicrosoftDataverse" | "MicrosoftEntraId" | "MicrosoftLists" | "Miro" | "Missive" | "MixMax" | "Mode" | "Mux" | "MyHours" | "N8n" | "Navan" | "NebiusAI" | "Nexiopay" | "NinjaOneRMM" | "NoCRM" | "NorthpassLMS" | "Nutshell" | "Nylas" | "Oncehub" | "Onepagecrm" | "OneSignal" | "Onfleet" | "OpinionStage" | "OPUSWatch" | "Orb" | "Orbit" | "Oura" | "Oveit" | "PabblySubscriptionsBilling" | "Paperform" | "Papersign" | "Partnerize" | "PartnerStack" | "PayFit" | "Paystack" | "Pennylane" | "Perk" | "PersistIq" | "Persona" | "Phyllo" | "Picqer" | "Pipeliner" | "PivotalTracker" | "Piwik" | "Planhat" | "Plausible" | "Poplar" | "PrestaShop" | "Pretix" | "Primetric" | "Printify" | "Productive" | "Pylon" | "Qonto" | "Qualaroo" | "Railz" | "RDStationMarketing" | "Recruitee" | "Reddit" | "ReferralHero" | "RentCast" | "Repairshopr" | "ReplyIo" | "RetailExpress" | "Retently" | "RevolutMerchant" | "RocketChat" | "Rocketlane" | "Rootly" | "Ruddr" | "SafetyCulture" | "SageHR" | "Salesflare" | "SAPFieldglass" | "SavvyCal" | "Secoda" | "Segment" | "Sendowl" | "SendPulse" | "Senseforce" | "Serpstat" | "Sharetribe" | "Shippo" | "ShopWired" | "Shortio" | "Shutterstock" | "SigmaComputing" | "SignNow" | "SimpleCast" | "Simplesat" | "Smaily" | "SmartEngage" | "Smartreach" | "Smartwaiver" | "SolarwindsServiceDesk" | "SonarCloud" | "SparkPost" | "SplitIo" | "SpotifyAds" | "SpotlerCRM" | "Squarespace" | "Statsig" | "Statuspage" | "Stigg" | "Strava" | "SurveySparrow" | "Survicate" | "Svix" | "Systeme" | "Tavus" | "Teamtailor" | "Teamwork" | "Tempo" | "Testrail" | "Thinkific" | "ThinkificCourses" | "ThriveLearning" | "Ticketmaster" | "TicketTailor" | "TickTick" | "Timely" | "Tinyemail" | "Todoist" | "Toggl" | "TrackPMS" | "Tremendous" | "TrustPilot" | "Twitter" | "TyntecSMS" | "Unleash" | "UpPromote" | "Uptick" | "Uservoice" | "Vantage" | "Veeqo" | "Vercel" | "VismaEconomic" | "VWO" | "Waiteraid" | "Wasabi" | "WhenIWork" | "Wordpress" | "Workable" | "Workflowmax" | "Workramp" | "Wufoo" | "Xsolla" | "YandexMetrica" | "Yotpo" | "Ynab" | "Younium" | "YouSign" | "YoutubeData" | "ZapierSupportedStorage" | "ZapSign" | "ZendeskSell" | "ZendeskSunshine" | "Zenefits" | "Zenloop" | "ZohoAnalytics" | "ZohoBigin" | "ZohoBilling" | "ZohoBooks" | "ZohoCampaign" | "ZohoDesk" | "ZohoExpense" | "ZohoInventory" | "ZohoInvoice" | "ZonkaFeedback" | "AlphaVantage" | "Aviationstack" | "Bitly" | "Blogger" | "Breezometer" | "CareQualityCommission" | "Cimis" | "CoinApi" | "CoinGecko" | "CoinMarketCap" | "DingConnect" | "Dockerhub" | "ExchangeRatesApi" | "FinancialModelling" | "Finnhub" | "Finnworlds" | "Giphy" | "Gmail" | "GNews" | "GoogleCalendar" | "GoogleClassroom" | "GoogleDirectory" | "GoogleForms" | "GooglePageSpeedInsights" | "GoogleTasks" | "GoogleWebfonts" | "GoogleWorkspaceAdminReports" | "HuggingFace" | "IlluminaBasespace" | "Imagga" | "Interzoid" | "IP2Whois" | "KYVE" | "Marketstack" | "Mendeley" | "Nasa" | "NewYorkTimes" | "NewsApi" | "NewsData" | "OpenDataDc" | "OpenExchangeRates" | "OpenAQ" | "OpenFDA" | "OpenWeather" | "Outlook" | "Perigon" | "Pexels" | "Pocket" | "Polygon" | "PyPI" | "Recreation" | "RKICovid" | "Rss" | "SimFin" | "StockData" | "Guardian" | "TMDb" | "TVMaze" | "TwelveData" | "Ubidots" | "USCensus" | "Watchmode" | "WikipediaPageviews" | "YahooFinance" | "Clarifai" | "Adapty" | "Braintrust" | "StreamElements" | "Streamlabs" | "Datorama" | "Ahrefs" | "Lightfield" | "Appstack" | "Razorpay" | "Neon" | "NewRelic" | "Custom" | "Tile38" | "Chatwoot" | "Sanity" | "Metronome" | "Jobber" | "Knock" | "Leexi" | "RB2B" | "Superwall" | "Liana" | "TawkTo" | "Hightouch" | "LemonSqueezy" | "Ikas" | "Talkwalker" | "NextdoorAds" | "AppLovin" | "Baserow" | "Plunk" | "Dub" | "AirOps" | "Podium" | "Loops" | "Redis" | "Mercury" | "Gojiberry" | "Teachable" | "PeecAI" | "Healthchecks" | "Impact" | "AikidoSecurity" | "Alguna" | "Anthropic" | "Appwrite" | "BlandAI" | "BrowseAI" | "BrowserUse" | "ChartHop" | "Cody" | "Cursor" | "Decagon" | "Deepgram" | "ElevenLabs" | "Harvey" | "Hyperspell" | "Langfuse" | "LingoDev" | "M3ter" | "Maxio" | "Metorial" | "OpenRouter" | "TogetherAI" | "Vapi" | "Vespa" | "Writesonic" | "Aiven" | "Aviator" | "Backblaze" | "Baseten" | "Browserbase" | "Cohere" | "DenoDeploy" | "DigitalOcean" | "E2B" | "Fintoc" | "Firecrawl" | "FireworksAI" | "FlyIo" | "Groq" | "GrowthBook" | "Gumloop" | "Hatchet" | "Helicone" | "Heroku" | "Hetzner" | "HeyGen" | "Infisical" | "Inngest" | "KapaAI" | "Kernel" | "Koyeb" | "LambdaLabs" | "LangSmith" | "Linode" | "LlamaCloud" | "Mem0" | "Metriport" | "Mintlify" | "MistralAI" | "Mono" | "Netlify" | "Northflank" | "OpenAI" | "Pinecone" | "PlatformSh" | "PromptingCompany" | "Qdrant" | "Render" | "Replicate" | "RetellAI" | "Roark" | "RunPod" | "ScaleAI" | "Scaleway" | "SigNoz" | "Sim" | "Skyvern" | "Slash" | "Synthesia" | "Telli" | "TerraApi" | "TriggerDev" | "Turso" | "TwelveLabs" | "Twenty" | "Unstructured" | "Upstash" | "Vellum" | "Vultr" | "Windmill" | "Zep" | "Hex" }; external_schema: { [key: string]: unknown } | null; options?: { [key: string]: unknown }; user_access_level: string | null }>; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.warehouseTablesDestroy() */ warehouseTablesDestroy: () => Promise; /** * Refresh table schema from source * Tags: warehouse_tables * Access as: posthog.warehouseTablesRefreshSchemaCreate() */ warehouseTablesRefreshSchemaCreate: () => Promise; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.warehouseTablesUpdateSchemaCreate() */ warehouseTablesUpdateSchemaCreate: () => Promise; /** * Create, Read, Update and Delete Warehouse Tables. * Tags: warehouse_tables * Access as: posthog.warehouseTablesFileCreate() */ warehouseTablesFileCreate: () => Promise; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.warehouseViewLinkList() */ warehouseViewLinkList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown })[] }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.warehouseViewLinkCreate() */ warehouseViewLinkCreate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.warehouseViewLinkRetrieve() */ warehouseViewLinkRetrieve: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.warehouseViewLinkUpdate() */ warehouseViewLinkUpdate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.warehouseViewLinkPartialUpdate() */ warehouseViewLinkPartialUpdate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.warehouseViewLinkDestroy() */ warehouseViewLinkDestroy: () => Promise; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_link * Access as: posthog.warehouseViewLinkValidateCreate() */ warehouseViewLinkValidateCreate: () => Promise; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.warehouseViewLinksList() */ warehouseViewLinksList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown })[] }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.warehouseViewLinksCreate() */ warehouseViewLinksCreate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.warehouseViewLinksRetrieve() */ warehouseViewLinksRetrieve: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.warehouseViewLinksUpdate() */ warehouseViewLinksUpdate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.warehouseViewLinksPartialUpdate() */ warehouseViewLinksPartialUpdate: () => Promise<{ id: string; deleted?: boolean | null; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; source_table_name: string; source_table_key: string; joining_table_name: string; joining_table_key: string; field_name: string; configuration?: unknown }>; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.warehouseViewLinksDestroy() */ warehouseViewLinksDestroy: () => Promise; /** * Create, Read, Update and Delete View Columns. * Tags: warehouse_view_links * Access as: posthog.warehouseViewLinksValidateCreate() */ warehouseViewLinksValidateCreate: () => Promise; /** * Weekly web analytics recap * Tags: web_analytics, web_analytics * Access as: posthog.webAnalyticsRecap() */ webAnalyticsRecap: () => Promise<{ visitors: { current: number; previous: number | null; change: { percent: number; direction: "Up" | "Down"; color: string; text: string; long_text: string } | null }; pageviews: { current: number; previous: number | null; change: { percent: number; direction: "Up" | "Down"; color: string; text: string; long_text: string } | null }; sessions: unknown; bounce_rate: unknown; avg_session_duration: { current: string; previous: string | null; change: unknown | null }; top_pages: ({ host: string; path: string; visitors: number; change: unknown | null })[]; top_sources: ({ name: string; visitors: number; change: unknown | null })[]; goals: ({ name: string; conversions: number; change: unknown | null })[]; dashboard_url: string; persona: { id: string; name: string; emoji: string; blurb: string; color: string }; highlights: ({ id: string; emoji: string; title: string; value: string; detail: string })[]; period_label: string; period_start: string; period_end: string; project_name: string; recap_url: string }>; /** * Summarize web analytics * Tags: web_analytics, web_analytics * Access as: posthog.webAnalyticsWeeklyDigest() */ webAnalyticsWeeklyDigest: () => Promise<{ visitors: { current: number; previous: number | null; change: { percent: number; direction: "Up" | "Down"; color: string; text: string; long_text: string } | null }; pageviews: { current: number; previous: number | null; change: { percent: number; direction: "Up" | "Down"; color: string; text: string; long_text: string } | null }; sessions: unknown; bounce_rate: unknown; avg_session_duration: { current: string; previous: string | null; change: unknown | null }; top_pages: ({ host: string; path: string; visitors: number; change: unknown | null })[]; top_sources: ({ name: string; visitors: number; change: unknown | null })[]; goals: ({ name: string; conversions: number; change: unknown | null })[]; dashboard_url: string }>; /** * Acknowledge an achievement celebration * Tags: web_analytics_achievements * Access as: posthog.webAnalyticsAchievementsAcknowledgeCelebration() */ webAnalyticsAchievementsAcknowledgeCelebration: () => Promise<{ acknowledged: boolean }>; /** * Get Web analytics achievements overview * Tags: web_analytics_achievements * Access as: posthog.webAnalyticsAchievementsOverview() */ webAnalyticsAchievementsOverview: () => Promise<{ definitions: ({ key: string; display_name: string; description: string; scope: "user" | "team"; is_experiment_track: boolean; stages: ({ stage: number; name: string; threshold: number })[] })[]; user_progress: ({ track_key: string; current_stage: number; progress_value: number; last_computed_at: string | null; unlocked_at: { [key: string]: string | undefined } })[]; team_progress: ({ track_key: string; current_stage: number; progress_value: number; last_computed_at: string | null; unlocked_at: { [key: string]: string | undefined } })[]; pending_celebrations: ({ track_key: string; stage: number; stage_name: string })[] }>; /** * Get Web analytics achievements preferences * Tags: web_analytics_achievements * Access as: posthog.webAnalyticsAchievementsPreferences() */ webAnalyticsAchievementsPreferences: () => Promise<{ achievements_opt_out: boolean }>; /** * Update Web analytics achievements preferences * Tags: web_analytics_achievements * Access as: posthog.webAnalyticsAchievementsUpdatePreferences() */ webAnalyticsAchievementsUpdatePreferences: () => Promise<{ achievements_opt_out: boolean }>; /** * Record a Web analytics interaction * Tags: web_analytics_achievements * Access as: posthog.webAnalyticsAchievementsRecordInteraction() */ webAnalyticsAchievementsRecordInteraction: () => Promise<{ recorded: boolean }>; /** * Record a Web analytics visit * Tags: web_analytics_achievements * Access as: posthog.webAnalyticsAchievementsRecordVisit() */ webAnalyticsAchievementsRecordVisit: () => Promise<{ recorded: boolean }>; /** * * Tags: web_experiments * Access as: posthog.webExperimentsList() */ webExperimentsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: number; name: string; created_at?: string; feature_flag_key: string; variants: unknown })[] }>; /** * * Tags: web_experiments * Access as: posthog.webExperimentsCreate() */ webExperimentsCreate: () => Promise<{ id: number; name: string; created_at?: string; feature_flag_key: string; variants: unknown }>; /** * * Tags: web_experiments * Access as: posthog.webExperimentsRetrieve() */ webExperimentsRetrieve: () => Promise<{ id: number; name: string; created_at?: string; feature_flag_key: string; variants: unknown }>; /** * * Tags: web_experiments * Access as: posthog.webExperimentsUpdate() */ webExperimentsUpdate: () => Promise<{ id: number; name: string; created_at?: string; feature_flag_key: string; variants: unknown }>; /** * * Tags: web_experiments * Access as: posthog.webExperimentsPartialUpdate() */ webExperimentsPartialUpdate: () => Promise<{ id: number; name: string; created_at?: string; feature_flag_key: string; variants: unknown }>; /** * * Tags: web_experiments * Access as: posthog.webExperimentsDestroy() */ webExperimentsDestroy: () => Promise; /** * Get web vitals for a specific pathname. Toolbar accesses this via OAuth (handled by TeamAndOrgViewSetMixin.get_authenticators). * Tags: web_vitals * Access as: posthog.webVitalsRetrieve() */ webVitalsRetrieve: () => Promise<{ [key: string]: unknown }>; /** * List wizard sessions for the project, ordered by started_at desc. This should only be called by the PostHog Wizard. Optional filters: ?workflow_id= and ?skill_id=. * Tags: wizard * Access as: posthog.wizardSessionsList() */ wizardSessionsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ session_id: string; team_id: number; workflow_id: string; skill_id: string; started_at: string; run_phase: "idle" | "running" | "completed" | "error"; tasks: ({ id: string; title: string; status: "pending" | "in_progress" | "completed" | "failed" | "canceled" })[]; event_plan: { [key: string]: unknown } | null; error: { [key: string]: unknown } | null; created_at: string; updated_at: string; is_stale: boolean })[] }>; /** * Upsert a wizard session. The `session_id` key is the idempotency anchor — reposting the same `session_id` replaces the existing row. Returns 201 on create, 200 on update. * Tags: wizard * Access as: posthog.wizardSessionsCreate() */ wizardSessionsCreate: () => Promise<{ session_id: string; team_id: number; workflow_id: string; skill_id: string; started_at: string; run_phase: "idle" | "running" | "completed" | "error"; tasks: ({ id: string; title: string; status: "pending" | "in_progress" | "completed" | "failed" | "canceled" })[]; event_plan: { [key: string]: unknown } | null; error: { [key: string]: unknown } | null; created_at: string; updated_at: string; is_stale: boolean }>; /** * Retrieve a single wizard session by its session_id. * Tags: wizard * Access as: posthog.wizardSessionsRetrieve() */ wizardSessionsRetrieve: () => Promise<{ session_id: string; team_id: number; workflow_id: string; skill_id: string; started_at: string; run_phase: "idle" | "running" | "completed" | "error"; tasks: ({ id: string; title: string; status: "pending" | "in_progress" | "completed" | "failed" | "canceled" })[]; event_plan: { [key: string]: unknown } | null; error: { [key: string]: unknown } | null; created_at: string; updated_at: string; is_stale: boolean }>; /** * Return the single most-recent wizard session for a workflow (and optional skill), or 204 if none exists. Unlike `list`, this is a point lookup the app shell uses to decide whether to open the live SSE stream — it never returns a collection, and 'no run' is a 204 rather than a 404 so clients don't conflate it with a missing endpoint. * Tags: wizard * Access as: posthog.wizardSessionsLatestRetrieve() */ wizardSessionsLatestRetrieve: () => Promise<{ session_id: string; team_id: number; workflow_id: string; skill_id: string; started_at: string; run_phase: "idle" | "running" | "completed" | "error"; tasks: ({ id: string; title: string; status: "pending" | "in_progress" | "completed" | "failed" | "canceled" })[]; event_plan: { [key: string]: unknown } | null; error: { [key: string]: unknown } | null; created_at: string; updated_at: string; is_stale: boolean }>; /** * Server-Sent Events stream of wizard session updates for a (workflow_id, skill_id) pair. On connect, the current latest session (if any) is emitted as the first event; subsequent upserts are streamed in real time. The server closes the connection after 900 seconds with an `event: end` line so the client (EventSource) can reconnect. **SDK consumers**: do not call the generated fetch wrapper for this path — it will buffer the entire infinite stream. Use the URL builder (`getWizardSessionsStreamRetrieveUrl`) with the browser's `EventSource` API instead. * Tags: wizard * Access as: posthog.wizardSessionsStreamRetrieve() */ wizardSessionsStreamRetrieve: () => Promise; /** * * Tags: hog_function_templates, public_hog_function_templates * Access as: posthog.publicHogFunctionTemplatesList() */ publicHogFunctionTemplatesList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; name: string; description?: string | null; code: string; code_language?: string; inputs_schema: unknown; type: string; status?: string; category?: unknown; free?: boolean; icon_url?: string | null; filters?: unknown; masking?: unknown; mapping_templates?: unknown[] | null })[] }>; /** * * Tags: reminders, reminders * Access as: posthog.remindersList() */ remindersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ id: string; organization: string; team?: number | null; title: string; message?: string; resource_type?: string | null; resource_id?: string | null; scheduled_at?: string | null; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | "" | null; cron_expression?: string | null; timezone?: string; end_date?: string | null; next_fire_at: string | null; last_fired_at: string | null; status: "active" | "completed" | "errored"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null })[] }>; /** * * Tags: reminders, reminders * Access as: posthog.remindersCreate() */ remindersCreate: () => Promise<{ id: string; organization: string; team?: number | null; title: string; message?: string; resource_type?: string | null; resource_id?: string | null; scheduled_at?: string | null; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | "" | null; cron_expression?: string | null; timezone?: string; end_date?: string | null; next_fire_at: string | null; last_fired_at: string | null; status: "active" | "completed" | "errored"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: reminders, reminders * Access as: posthog.remindersRetrieve() */ remindersRetrieve: () => Promise<{ id: string; organization: string; team?: number | null; title: string; message?: string; resource_type?: string | null; resource_id?: string | null; scheduled_at?: string | null; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | "" | null; cron_expression?: string | null; timezone?: string; end_date?: string | null; next_fire_at: string | null; last_fired_at: string | null; status: "active" | "completed" | "errored"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: reminders, reminders * Access as: posthog.remindersUpdate() */ remindersUpdate: () => Promise<{ id: string; organization: string; team?: number | null; title: string; message?: string; resource_type?: string | null; resource_id?: string | null; scheduled_at?: string | null; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | "" | null; cron_expression?: string | null; timezone?: string; end_date?: string | null; next_fire_at: string | null; last_fired_at: string | null; status: "active" | "completed" | "errored"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: reminders, reminders * Access as: posthog.remindersPartialUpdate() */ remindersPartialUpdate: () => Promise<{ id: string; organization: string; team?: number | null; title: string; message?: string; resource_type?: string | null; resource_id?: string | null; scheduled_at?: string | null; recurrence_interval?: "daily" | "weekly" | "monthly" | "yearly" | "" | null; cron_expression?: string | null; timezone?: string; end_date?: string | null; next_fire_at: string | null; last_fired_at: string | null; status: "active" | "completed" | "errored"; created_by: { id: number; uuid: string; distinct_id?: string | null; first_name?: string; last_name?: string; email: string; is_email_verified?: boolean | null; hedgehog_config: { [key: string]: unknown } | null; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other" | "" | null }; created_at: string; updated_at: string | null }>; /** * * Tags: reminders, reminders * Access as: posthog.remindersDestroy() */ remindersDestroy: () => Promise; /** * Get the authenticated user's pinned sidebar tabs and configured homepage for the current team. Pass `@me` as the UUID. * Tags: user_home_settings, user_home_settings * Access as: posthog.userHomeSettingsRetrieve() */ userHomeSettingsRetrieve: () => Promise<{ tabs?: ({ id?: string; pathname?: string; search?: string; hash?: string; title?: string; customTitle?: string | null; iconType?: string; sceneId?: string | null; sceneKey?: string | null; sceneParams?: unknown; pinned?: boolean })[]; homepage?: { id?: string; pathname?: string; search?: string; hash?: string; title?: string; customTitle?: string | null; iconType?: string; sceneId?: string | null; sceneKey?: string | null; sceneParams?: unknown; pinned?: boolean } | null }>; /** * Update the authenticated user's pinned sidebar tabs and/or homepage for the current team. Pass `@me` as the UUID. Send `tabs` to replace the pinned tab list, `homepage` to set the home destination (any PostHog URL — dashboard, insight, search results, scene). Either field may be omitted to leave it unchanged; sending `homepage: null` or `{}` clears the homepage. * Tags: user_home_settings, user_home_settings * Access as: posthog.userHomeSettingsPartialUpdate() */ userHomeSettingsPartialUpdate: () => Promise<{ tabs?: ({ id?: string; pathname?: string; search?: string; hash?: string; title?: string; customTitle?: string | null; iconType?: string; sceneId?: string | null; sceneKey?: string | null; sceneParams?: unknown; pinned?: boolean })[]; homepage?: { id?: string; pathname?: string; search?: string; hash?: string; title?: string; customTitle?: string | null; iconType?: string; sceneId?: string | null; sceneKey?: string | null; sceneParams?: unknown; pinned?: boolean } | null }>; /** * * Tags: users, users * Access as: posthog.usersList() */ usersList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ date_joined: string; uuid: string; distinct_id: string | null; first_name?: string; last_name?: string; email: string; pending_email: string | null; is_email_verified: boolean | null; notification_settings?: { [key: string]: unknown }; anonymize_data?: boolean | null; allow_impersonation?: boolean | null; toolbar_mode?: "disabled" | "toolbar" | "" | null; has_password: boolean; id: number; is_staff?: boolean; is_impersonated: boolean | null; is_impersonated_until: string | null; is_impersonated_read_only: boolean | null; sensitive_session_expires_at: string | null; team: { id: number; uuid: string; organization: string; project_id: number; api_token: string; name: string; completed_snippet_onboarding: boolean; has_completed_onboarding_for: unknown; ingested_event: boolean; is_demo: boolean; timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; access_control: boolean }; organization: { id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }; organizations: ({ id: string; name: string; slug: string; logo_media_id: string | null; membership_level: 1 | 8 | 15; members_can_use_personal_api_keys?: boolean; is_active?: boolean | null; is_not_active_reason?: string | null; is_pending_deletion?: boolean | null })[]; set_current_organization?: string; set_current_team?: string; password: string; current_password?: string; events_column_config?: unknown; is_2fa_enabled: boolean; has_social_auth: boolean; has_sso_enforcement: boolean; has_seen_product_intro_for?: unknown; scene_personalisation: ({ scene: string; dashboard?: number | null })[]; theme_mode?: "light" | "dark" | "system" | unknown | unknown; hedgehog_config?: unknown; allow_sidebar_suggestions?: boolean | null; shortcut_position?: "above" | "below" | "hidden" | unknown | unknown; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other"; passkeys_enabled_for_2fa?: boolean | null; hide_mcp_hints?: boolean; onboarding_skipped_at: string | null; onboarding_skipped_reason: "delegated" | "later" | "other" | unknown; onboarding_skipped_organization_id: string | null; onboarding_delegated_to_invite: string | null; onboarding_delegated_to_organization_id: string | null; onboarding_delegation_accepted_at: string | null; is_organization_first_user: boolean | null; active_realtime_notification_types: (string)[]; pending_invites: ({ id: string; target_email: string; organization_id: string; organization_name: string; created_at: string })[]; requires_credential_review: boolean })[] }>; /** * Per-user signal autonomy config (singleton keyed by user). GET /api/users//signal_autonomy/ → current config (or 404) POST /api/users//signal_autonomy/ → create or update DELETE /api/users//signal_autonomy/ → remove (opt out) * Tags: users, users * Access as: posthog.usersSignalAutonomyRetrieve() */ usersSignalAutonomyRetrieve: () => Promise<{ id: string; user: { id: number; uuid: string; first_name: string; last_name: string; email: string }; autostart_priority?: "P0" | "P1" | "P2" | "P3" | "P4" | "" | null; slack_notification_integration_id: number | null; slack_notification_channel?: string | null; slack_notification_min_priority?: "P0" | "P1" | "P2" | "P3" | "P4" | "" | null; created_at: string; updated_at: string }>; /** * Per-user signal autonomy config (singleton keyed by user). GET /api/users//signal_autonomy/ → current config (or 404) POST /api/users//signal_autonomy/ → create or update DELETE /api/users//signal_autonomy/ → remove (opt out) * Tags: users, users * Access as: posthog.usersSignalAutonomyCreate() */ usersSignalAutonomyCreate: () => Promise<{ id: string; user: { id: number; uuid: string; first_name: string; last_name: string; email: string }; autostart_priority?: "P0" | "P1" | "P2" | "P3" | "P4" | "" | null; slack_notification_integration_id: number | null; slack_notification_channel?: string | null; slack_notification_min_priority?: "P0" | "P1" | "P2" | "P3" | "P4" | "" | null; created_at: string; updated_at: string }>; /** * Per-user signal autonomy config (singleton keyed by user). GET /api/users//signal_autonomy/ → current config (or 404) POST /api/users//signal_autonomy/ → create or update DELETE /api/users//signal_autonomy/ → remove (opt out) * Tags: users, users * Access as: posthog.usersSignalAutonomyDestroy() */ usersSignalAutonomyDestroy: () => Promise; /** * Retrieve a user's profile and settings. Pass `@me` as the UUID to fetch the authenticated user; non-staff callers may only access their own account. * Tags: users, users * Access as: posthog.usersRetrieve() */ usersRetrieve: () => Promise<{ date_joined: string; uuid: string; distinct_id: string | null; first_name?: string; last_name?: string; email: string; pending_email: string | null; is_email_verified: boolean | null; notification_settings?: { [key: string]: unknown }; anonymize_data?: boolean | null; allow_impersonation?: boolean | null; toolbar_mode?: "disabled" | "toolbar" | "" | null; has_password: boolean; id: number; is_staff?: boolean; is_impersonated: boolean | null; is_impersonated_until: string | null; is_impersonated_read_only: boolean | null; sensitive_session_expires_at: string | null; team: { id: number; uuid: string; organization: string; project_id: number; api_token: string; name: string; completed_snippet_onboarding: boolean; has_completed_onboarding_for: unknown; ingested_event: boolean; is_demo: boolean; timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; access_control: boolean }; organization: { id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }; organizations: ({ id: string; name: string; slug: string; logo_media_id: string | null; membership_level: 1 | 8 | 15; members_can_use_personal_api_keys?: boolean; is_active?: boolean | null; is_not_active_reason?: string | null; is_pending_deletion?: boolean | null })[]; set_current_organization?: string; set_current_team?: string; password: string; current_password?: string; events_column_config?: unknown; is_2fa_enabled: boolean; has_social_auth: boolean; has_sso_enforcement: boolean; has_seen_product_intro_for?: unknown; scene_personalisation: ({ scene: string; dashboard?: number | null })[]; theme_mode?: "light" | "dark" | "system" | unknown | unknown; hedgehog_config?: unknown; allow_sidebar_suggestions?: boolean | null; shortcut_position?: "above" | "below" | "hidden" | unknown | unknown; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other"; passkeys_enabled_for_2fa?: boolean | null; hide_mcp_hints?: boolean; onboarding_skipped_at: string | null; onboarding_skipped_reason: "delegated" | "later" | "other" | unknown; onboarding_skipped_organization_id: string | null; onboarding_delegated_to_invite: string | null; onboarding_delegated_to_organization_id: string | null; onboarding_delegation_accepted_at: string | null; is_organization_first_user: boolean | null; active_realtime_notification_types: (string)[]; pending_invites: ({ id: string; target_email: string; organization_id: string; organization_name: string; created_at: string })[]; requires_credential_review: boolean }>; /** * Replace the authenticated user's profile and settings. Pass `@me` as the UUID to update the authenticated user. Prefer the PATCH endpoint for partial updates — PUT requires every writable field to be provided. * Tags: users, users * Access as: posthog.usersUpdate() */ usersUpdate: () => Promise<{ date_joined: string; uuid: string; distinct_id: string | null; first_name?: string; last_name?: string; email: string; pending_email: string | null; is_email_verified: boolean | null; notification_settings?: { [key: string]: unknown }; anonymize_data?: boolean | null; allow_impersonation?: boolean | null; toolbar_mode?: "disabled" | "toolbar" | "" | null; has_password: boolean; id: number; is_staff?: boolean; is_impersonated: boolean | null; is_impersonated_until: string | null; is_impersonated_read_only: boolean | null; sensitive_session_expires_at: string | null; team: { id: number; uuid: string; organization: string; project_id: number; api_token: string; name: string; completed_snippet_onboarding: boolean; has_completed_onboarding_for: unknown; ingested_event: boolean; is_demo: boolean; timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; access_control: boolean }; organization: { id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }; organizations: ({ id: string; name: string; slug: string; logo_media_id: string | null; membership_level: 1 | 8 | 15; members_can_use_personal_api_keys?: boolean; is_active?: boolean | null; is_not_active_reason?: string | null; is_pending_deletion?: boolean | null })[]; set_current_organization?: string; set_current_team?: string; password: string; current_password?: string; events_column_config?: unknown; is_2fa_enabled: boolean; has_social_auth: boolean; has_sso_enforcement: boolean; has_seen_product_intro_for?: unknown; scene_personalisation: ({ scene: string; dashboard?: number | null })[]; theme_mode?: "light" | "dark" | "system" | unknown | unknown; hedgehog_config?: unknown; allow_sidebar_suggestions?: boolean | null; shortcut_position?: "above" | "below" | "hidden" | unknown | unknown; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other"; passkeys_enabled_for_2fa?: boolean | null; hide_mcp_hints?: boolean; onboarding_skipped_at: string | null; onboarding_skipped_reason: "delegated" | "later" | "other" | unknown; onboarding_skipped_organization_id: string | null; onboarding_delegated_to_invite: string | null; onboarding_delegated_to_organization_id: string | null; onboarding_delegation_accepted_at: string | null; is_organization_first_user: boolean | null; active_realtime_notification_types: (string)[]; pending_invites: ({ id: string; target_email: string; organization_id: string; organization_name: string; created_at: string })[]; requires_credential_review: boolean }>; /** * Update one or more of the authenticated user's profile fields or settings. * Tags: users, users * Access as: posthog.usersPartialUpdate() */ usersPartialUpdate: () => Promise<{ date_joined: string; uuid: string; distinct_id: string | null; first_name?: string; last_name?: string; email: string; pending_email: string | null; is_email_verified: boolean | null; notification_settings?: { [key: string]: unknown }; anonymize_data?: boolean | null; allow_impersonation?: boolean | null; toolbar_mode?: "disabled" | "toolbar" | "" | null; has_password: boolean; id: number; is_staff?: boolean; is_impersonated: boolean | null; is_impersonated_until: string | null; is_impersonated_read_only: boolean | null; sensitive_session_expires_at: string | null; team: { id: number; uuid: string; organization: string; project_id: number; api_token: string; name: string; completed_snippet_onboarding: boolean; has_completed_onboarding_for: unknown; ingested_event: boolean; is_demo: boolean; timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; access_control: boolean }; organization: { id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }; organizations: ({ id: string; name: string; slug: string; logo_media_id: string | null; membership_level: 1 | 8 | 15; members_can_use_personal_api_keys?: boolean; is_active?: boolean | null; is_not_active_reason?: string | null; is_pending_deletion?: boolean | null })[]; set_current_organization?: string; set_current_team?: string; password: string; current_password?: string; events_column_config?: unknown; is_2fa_enabled: boolean; has_social_auth: boolean; has_sso_enforcement: boolean; has_seen_product_intro_for?: unknown; scene_personalisation: ({ scene: string; dashboard?: number | null })[]; theme_mode?: "light" | "dark" | "system" | unknown | unknown; hedgehog_config?: unknown; allow_sidebar_suggestions?: boolean | null; shortcut_position?: "above" | "below" | "hidden" | unknown | unknown; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other"; passkeys_enabled_for_2fa?: boolean | null; hide_mcp_hints?: boolean; onboarding_skipped_at: string | null; onboarding_skipped_reason: "delegated" | "later" | "other" | unknown; onboarding_skipped_organization_id: string | null; onboarding_delegated_to_invite: string | null; onboarding_delegated_to_organization_id: string | null; onboarding_delegation_accepted_at: string | null; is_organization_first_user: boolean | null; active_realtime_notification_types: (string)[]; pending_invites: ({ id: string; target_email: string; organization_id: string; organization_name: string; created_at: string })[]; requires_credential_review: boolean }>; /** * * Tags: users, users * Access as: posthog.usersDestroy() */ usersDestroy: () => Promise; /** * Mark the user as having reviewed their existing credentials. Idempotent. Flips `requires_credential_review` to False so the post-login interstitial isn't shown again. Does not modify any credentials; the user revokes individual Personal API Keys and passkeys via their existing endpoints from the same screen. * Tags: users, users * Access as: posthog.usersCredentialsReviewCompleteCreate() */ usersCredentialsReviewCompleteCreate: () => Promise; /** * * Tags: users, users * Access as: posthog.usersGithubLoginRetrieve() */ usersGithubLoginRetrieve: () => Promise; /** * * Tags: users, users * Access as: posthog.usersHedgehogConfigRetrieve() */ usersHedgehogConfigRetrieve: () => Promise; /** * * Tags: users, users * Access as: posthog.usersHedgehogConfigPartialUpdate() */ usersHedgehogConfigPartialUpdate: () => Promise; /** * List the user's personal integrations of a given kind * Tags: users, users * Access as: posthog.usersIntegrationsList() */ usersIntegrationsList: () => Promise<{ count: number; next?: string | null; previous?: string | null; results: ({ results: ({ id: string; kind: string; installation_id: string; repository_selection?: string | null; account?: { type?: string | null; name?: string | null } | null; uses_shared_installation: boolean; created_at: string })[] })[] }>; /** * Disconnect a personal GitHub integration * Tags: users, users * Access as: posthog.usersIntegrationsGithubDestroy() */ usersIntegrationsGithubDestroy: () => Promise; /** * List branches for a personal GitHub installation repository * Tags: users, users * Access as: posthog.usersIntegrationsGithubBranchesRetrieve() */ usersIntegrationsGithubBranchesRetrieve: () => Promise<{ branches: (string)[]; default_branch?: string | null; has_more: boolean }>; /** * List repositories for a personal GitHub installation * Tags: users, users * Access as: posthog.usersIntegrationsGithubReposRetrieve() */ usersIntegrationsGithubReposRetrieve: () => Promise<{ repositories: ({ id: number; name: string; full_name: string; private?: boolean; default_branch?: string; language?: string; pushed_at?: string; archived?: boolean; can_push?: boolean })[]; has_more: boolean }>; /** * Refresh repositories for a personal GitHub installation * Tags: users, users * Access as: posthog.usersIntegrationsGithubReposRefreshCreate() */ usersIntegrationsGithubReposRefreshCreate: () => Promise<{ repositories: ({ id: number; name: string; full_name: string; private?: boolean; default_branch?: string; language?: string; pushed_at?: string; archived?: boolean; can_push?: boolean })[] }>; /** * Seed personal GitHub manage callback state before opening installation settings on GitHub. * Tags: users, users * Access as: posthog.usersIntegrationsGithubPrepareCallbackCreate() */ usersIntegrationsGithubPrepareCallbackCreate: () => Promise; /** * Start GitHub personal integration linking * Tags: users, users * Access as: posthog.usersIntegrationsGithubStartCreate() */ usersIntegrationsGithubStartCreate: () => Promise<{ install_url: string; connect_flow: string }>; /** * Unlink a Slack identity * Tags: users, users * Access as: posthog.usersIntegrationsSlackDestroy() */ usersIntegrationsSlackDestroy: () => Promise; /** * List Slack workspaces this user could link to * Tags: users, users * Access as: posthog.usersIntegrationsSlackLinkableWorkspacesRetrieve() */ usersIntegrationsSlackLinkableWorkspacesRetrieve: () => Promise<{ results: ({ posthog_team_id: number; posthog_team_name: string; posthog_organization_name: string; slack_team_id: string; slack_team_name?: string | null })[] }>; /** * Start Slack identity link from settings * Tags: users, users * Access as: posthog.usersIntegrationsSlackStartCreate() */ usersIntegrationsSlackStartCreate: () => Promise<{ install_url: string }>; /** * List the cookie-auth login sessions for the current user. Self-only — never another user. * Tags: users, users * Access as: posthog.usersLoginSessionsList() */ usersLoginSessionsList: () => Promise<({ id: string; created_at: string | null; last_activity: string; location: string; device: string; login_method: string; is_current: boolean })[]>; /** * Revoke a single login session belonging to the current user. Self-only. Requires recent auth (TimeSensitiveActionPermission) so a stolen cookie can't weaponize revocation, and is blocked while impersonating via ImpersonationBlockedPathsMiddleware. * Tags: users, users * Access as: posthog.usersLoginSessionsDestroy() */ usersLoginSessionsDestroy: () => Promise; /** * Revoke every login session for the current user except the one making this request. Self-only. Requires recent auth (TimeSensitiveActionPermission) so a stolen cookie can't weaponize the "log out everywhere else" lock-out, and is blocked while impersonating. * Tags: users, users * Access as: posthog.usersLoginSessionsRevokeOthersCreate() */ usersLoginSessionsRevokeOthersCreate: () => Promise<{ revoked_count: number }>; /** * Mark the current user as having exited onboarding with a non-delegated reason. Idempotent: the skip timestamp is only set on the first successful call. Callers wanting to delegate setup to a teammate must use the dedicated /organizations/{id}/invites/delegate/ endpoint, which atomically creates the invite and sets reason="delegated". This endpoint rejects that reason so state can't be faked without a real invite. * Tags: users, users * Access as: posthog.usersOnboardingSkipCreate() */ usersOnboardingSkipCreate: () => Promise<{ date_joined: string; uuid: string; distinct_id: string | null; first_name?: string; last_name?: string; email: string; pending_email: string | null; is_email_verified: boolean | null; notification_settings?: { [key: string]: unknown }; anonymize_data?: boolean | null; allow_impersonation?: boolean | null; toolbar_mode?: "disabled" | "toolbar" | "" | null; has_password: boolean; id: number; is_staff?: boolean; is_impersonated: boolean | null; is_impersonated_until: string | null; is_impersonated_read_only: boolean | null; sensitive_session_expires_at: string | null; team: { id: number; uuid: string; organization: string; project_id: number; api_token: string; name: string; completed_snippet_onboarding: boolean; has_completed_onboarding_for: unknown; ingested_event: boolean; is_demo: boolean; timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu"; access_control: boolean }; organization: { id: string; name: string; slug: string; logo_media_id?: string | null; created_at: string; updated_at: string; membership_level: 1 | 8 | 15; plugins_access_level: 0 | 3 | 6 | 9; teams: ({ [key: string]: unknown })[]; projects: ({ [key: string]: unknown })[]; available_product_features: unknown[] | null; is_member_join_email_enabled: boolean; metadata: { [key: string]: string | undefined }; customer_id: string | null; enforce_2fa?: boolean | null; members_can_invite?: boolean | null; members_can_create_projects?: boolean | null; members_can_use_personal_api_keys?: boolean; allow_publicly_shared_resources?: boolean; member_count: number; is_ai_data_processing_approved?: boolean | null; is_ai_training_opted_in?: boolean | null; is_ai_training_locked: boolean | null; is_ai_training_cta_shown: boolean | null; is_hipaa: boolean | null; default_experiment_stats_method?: "bayesian" | "frequentist" | "" | null; default_anonymize_ips?: boolean; default_role_id?: string | null; is_active: boolean | null; is_not_active_reason: string | null; is_pending_deletion: boolean | null }; organizations: ({ id: string; name: string; slug: string; logo_media_id: string | null; membership_level: 1 | 8 | 15; members_can_use_personal_api_keys?: boolean; is_active?: boolean | null; is_not_active_reason?: string | null; is_pending_deletion?: boolean | null })[]; set_current_organization?: string; set_current_team?: string; password: string; current_password?: string; events_column_config?: unknown; is_2fa_enabled: boolean; has_social_auth: boolean; has_sso_enforcement: boolean; has_seen_product_intro_for?: unknown; scene_personalisation: ({ scene: string; dashboard?: number | null })[]; theme_mode?: "light" | "dark" | "system" | unknown | unknown; hedgehog_config?: unknown; allow_sidebar_suggestions?: boolean | null; shortcut_position?: "above" | "below" | "hidden" | unknown | unknown; role_at_organization?: "engineering" | "data" | "product" | "founder" | "leadership" | "marketing" | "sales" | "other"; passkeys_enabled_for_2fa?: boolean | null; hide_mcp_hints?: boolean; onboarding_skipped_at: string | null; onboarding_skipped_reason: "delegated" | "later" | "other" | unknown; onboarding_skipped_organization_id: string | null; onboarding_delegated_to_invite: string | null; onboarding_delegated_to_organization_id: string | null; onboarding_delegation_accepted_at: string | null; is_organization_first_user: boolean | null; active_realtime_notification_types: (string)[]; pending_invites: ({ id: string; target_email: string; organization_id: string; organization_name: string; created_at: string })[]; requires_credential_review: boolean }>; /** * Register a push notification token * Tags: users, users * Access as: posthog.usersPushTokensCreate() */ usersPushTokensCreate: () => Promise<{ id: string; platform: "ios" | "android" | "web"; created_at: string; last_seen_at: string }>; /** * Unregister a push notification token * Tags: users, users * Access as: posthog.usersPushTokensUnregisterCreate() */ usersPushTokensUnregisterCreate: () => Promise; /** * * Tags: users, users * Access as: posthog.usersScenePersonalisationCreate() */ usersScenePersonalisationCreate: () => Promise; /** * * Tags: users, users * Access as: posthog.usersStart2FaSetupRetrieve() */ usersStart2FaSetupRetrieve: () => Promise; /** * Generate new backup codes, invalidating any existing ones * Tags: users, users * Access as: posthog.usersTwoFactorBackupCodesCreate() */ usersTwoFactorBackupCodesCreate: () => Promise; /** * Disable 2FA and remove all related devices * Tags: users, users * Access as: posthog.usersTwoFactorDisableCreate() */ usersTwoFactorDisableCreate: () => Promise; /** * * Tags: users, users * Access as: posthog.usersTwoFactorStartSetupRetrieve() */ usersTwoFactorStartSetupRetrieve: () => Promise; /** * Get current 2FA status including backup codes if enabled * Tags: users, users * Access as: posthog.usersTwoFactorStatusRetrieve() */ usersTwoFactorStatusRetrieve: () => Promise; /** * * Tags: users, users * Access as: posthog.usersTwoFactorValidateCreate() */ usersTwoFactorValidateCreate: () => Promise; /** * * Tags: users, users * Access as: posthog.usersValidate2FaCreate() */ usersValidate2FaCreate: () => Promise; /** * * Tags: users, users * Access as: posthog.usersCancelEmailChangeRequestPartialUpdate() */ usersCancelEmailChangeRequestPartialUpdate: () => Promise; /** * * Tags: users, users * Access as: posthog.usersRequestEmailVerificationCreate() */ usersRequestEmailVerificationCreate: () => Promise; /** * * Tags: users, users * Access as: posthog.usersVerifyEmailCreate() */ usersVerifyEmailCreate: () => Promise; };