:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(deps): move DRF to 3.17 and drf-spectacular to 0.30 (#91637)
Julian Bezdfa0327ccb7b
diff --git a/frontend/src/generated/core/api.schemas.ts b/frontend/src/generated/core/api.schemas.tsindex 65320bc3b500..2fd1cb791b42 100644--- a/frontend/src/generated/core/api.schemas.ts+++ b/frontend/src/generated/core/api.schemas.ts@@ -606,15 +606,6 @@ export type ProjectBackwardCompatApiProductIntentsItem = {export type ProjectBackwardCompatApiManagedViewsets = { [key: string]: boolean }-export type EffectiveMembershipLevelEnumApi =- (typeof EffectiveMembershipLevelEnumApi)[keyof typeof EffectiveMembershipLevelEnumApi]--export const EffectiveMembershipLevelEnumApi = {- Number1: 1,- Number8: 8,- Number15: 15,-} as const-/*** * `30d` - 30 Days* * `90d` - 90 Days@@ -1809,7 +1800,7 @@ export interface ProjectBackwardCompatApi {*/product_description?: string | nullreadonly created_at: string- readonly effective_membership_level: EffectiveMembershipLevelEnumApi+ readonly effective_membership_level: OrganizationMembershipLevelEnumApireadonly has_group_types: booleanreadonly group_types: readonly ProjectBackwardCompatApiGroupTypesItem[]/** @nullable */@@ -2661,7 +2652,7 @@ export interface PatchedProjectBackwardCompatApi {*/product_description?: string | nullreadonly created_at?: string- readonly effective_membership_level?: EffectiveMembershipLevelEnumApi+ readonly effective_membership_level?: OrganizationMembershipLevelEnumApireadonly has_group_types?: booleanreadonly group_types?: readonly PatchedProjectBackwardCompatApiGroupTypesItem[]/** @nullable */@@ -4152,7 +4143,7 @@ export interface OrganizationApi {logo_media_id?: string | nullreadonly created_at: stringreadonly updated_at: string- readonly membership_level: EffectiveMembershipLevelEnumApi+ readonly membership_level: OrganizationMembershipLevelEnumApireadonly plugins_access_level: PluginsAccessLevelEnumApireadonly teams: readonly OrganizationApiTeamsItem[]readonly projects: readonly OrganizationApiProjectsItem[]@@ -4250,7 +4241,7 @@ export interface OrganizationBasicApi {slug: string/** @nullable */readonly logo_media_id: string | null- readonly membership_level: EffectiveMembershipLevelEnumApi+ readonly membership_level: OrganizationMembershipLevelEnumApimembers_can_use_personal_api_keys?: boolean/*** Set this to 'No' to temporarily disable an organization.diff --git a/posthog/settings/web.py b/posthog/settings/web.pyindex 3b9fb2f7ffb2..fa743a97581f 100644--- a/posthog/settings/web.py+++ b/posthog/settings/web.py@@ -964,12 +964,6 @@ SPECTACULAR_SETTINGS = {# Same-value collisions: identical choice sets appear on fields with different names.# href_matching, text_matching, url_matching on ActionStep all share the same choices."ActionStepMatchingEnum": ["contains", "regex", "exact"],- # effective_restriction_level and effective_privilege_level are SerializerMethodFields- # returning Dashboard.RestrictionLevel/PrivilegeLevel (IntegerChoices). Since they- # go through the type-hint path (no x-spec-enum-id), they hash as (value, value).- "EffectivePrivilegeLevelEnum": [(21, 21), (37, 37)],- # effective_membership_level and level on OrganizationMember use the same int values.- "EffectiveMembershipLevelEnum": [(1, 1), (8, 8), (15, 15)],# descriptionContentType and thankYouMessageDescriptionContentType share values."DescriptionContentTypeEnum": ["text", "html"],# Field-name collisions: multiple different choice sets use the same field namediff --git a/products/billing/frontend/generated/api.schemas.ts b/products/billing/frontend/generated/api.schemas.tsindex 3ff04936abab..1ed86eb463ce 100644--- a/products/billing/frontend/generated/api.schemas.ts+++ b/products/billing/frontend/generated/api.schemas.ts@@ -43,9 +43,7 @@ export interface BillingOverviewResponseApi {startup_program_label?: string | null/** @nullable */startup_program_label_previous?: string | null- /** @nullable */stripe_portal_url?: string | null- /** @nullable */external_billing_provider_invoices_url?: string | null/** Subscribed and available products/addons with pricing, plan, limit, usage, and entitlement metadata. */products?: BillingOverviewResponseApiProductsItem[]diff --git a/products/customer_analytics/frontend/generated/api.schemas.ts b/products/customer_analytics/frontend/generated/api.schemas.tsindex 959b5816b371..a7b1c665976d 100644--- a/products/customer_analytics/frontend/generated/api.schemas.ts+++ b/products/customer_analytics/frontend/generated/api.schemas.ts@@ -2021,10 +2021,7 @@ export interface FeatureRequestEvidencePayloadApi {* @maxLength 200*/evidence_source: string- /**- * Optional HTTP or HTTPS link to the source.- * @maxLength 2000- */+ /** Optional HTTP or HTTPS link to the source. */source_url?: string/*** Date the account made the request, or null when unknown.@@ -2145,10 +2142,7 @@ export interface FeatureRequestEvidenceCreateApi {* @maxLength 200*/evidence_source: string- /**- * Optional HTTP or HTTPS link to the source.- * @maxLength 2000- */+ /** Optional HTTP or HTTPS link to the source. */source_url?: string/*** Date the account made the request, or null when unknown.@@ -2361,10 +2355,7 @@ export interface FeatureRequestEvidenceUpdateApi {* @maxLength 200*/evidence_source: string- /**- * Optional HTTP or HTTPS link to the source.- * @maxLength 2000- */+ /** Optional HTTP or HTTPS link to the source. */source_url?: string/*** Date the account made the request, or null when unknown.diff --git a/products/customer_analytics/frontend/generated/api.zod.ts b/products/customer_analytics/frontend/generated/api.zod.tsindex 19c82368053c..2be02834ca65 100644--- a/products/customer_analytics/frontend/generated/api.zod.ts+++ b/products/customer_analytics/frontend/generated/api.zod.ts@@ -1094,8 +1094,10 @@ export const featureRequestsCreateBodyEvidenceOneSummaryDefault = ``export const featureRequestsCreateBodyEvidenceOneCustomerQuoteDefault = ``export const featureRequestsCreateBodyEvidenceOneEvidenceSourceMax = 200-export const featureRequestsCreateBodyEvidenceOneSourceUrlDefault = ``-export const featureRequestsCreateBodyEvidenceOneSourceUrlMax = 2000+export const featureRequestsCreateBodyEvidenceOneSourceUrlOneDefault = ``+export const featureRequestsCreateBodyEvidenceOneSourceUrlOneMax = 2000++export const featureRequestsCreateBodyEvidenceOneSourceUrlTwoMax = 0export const FeatureRequestsCreateBody = /* @__PURE__ */ zod.object({title: zod.string().max(featureRequestsCreateBodyTitleMax).describe('Required customer-facing request title.'),@@ -1126,9 +1128,14 @@ export const FeatureRequestsCreateBody = /* @__PURE__ */ zod.object({.max(featureRequestsCreateBodyEvidenceOneEvidenceSourceMax).describe('Free-form name of the source where this evidence was recorded.'),source_url: zod- .url()- .max(featureRequestsCreateBodyEvidenceOneSourceUrlMax)- .default(featureRequestsCreateBodyEvidenceOneSourceUrlDefault)+ .union([+ zod+ .url()+ .max(featureRequestsCreateBodyEvidenceOneSourceUrlOneMax)+ .default(featureRequestsCreateBodyEvidenceOneSourceUrlOneDefault),+ zod.string().max(featureRequestsCreateBodyEvidenceOneSourceUrlTwoMax),+ ])+ .optional().describe('Optional HTTP or HTTPS link to the source.'),requested_on: zod.iso.date()@@ -1234,8 +1241,10 @@ export const featureRequestsAddAccountCreateBodyEvidenceOneSummaryDefault = ``export const featureRequestsAddAccountCreateBodyEvidenceOneCustomerQuoteDefault = ``export const featureRequestsAddAccountCreateBodyEvidenceOneEvidenceSourceMax = 200-export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlDefault = ``-export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlMax = 2000+export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlOneDefault = ``+export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlOneMax = 2000++export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlTwoMax = 0export const FeatureRequestsAddAccountCreateBody = /* @__PURE__ */ zod.object({expected_version: zod@@ -1259,9 +1268,14 @@ export const FeatureRequestsAddAccountCreateBody = /* @__PURE__ */ zod.object({.max(featureRequestsAddAccountCreateBodyEvidenceOneEvidenceSourceMax).describe('Free-form name of the source where this evidence was recorded.'),source_url: zod- .url()- .max(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlMax)- .default(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlDefault)+ .union([+ zod+ .url()+ .max(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlOneMax)+ .default(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlOneDefault),+ zod.string().max(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlTwoMax),+ ])+ .optional().describe('Optional HTTP or HTTPS link to the source.'),requested_on: zod.iso.date()@@ -1282,8 +1296,10 @@ export const featureRequestsAddEvidenceCreateBodySummaryDefault = ``export const featureRequestsAddEvidenceCreateBodyCustomerQuoteDefault = ``export const featureRequestsAddEvidenceCreateBodyEvidenceSourceMax = 200-export const featureRequestsAddEvidenceCreateBodySourceUrlDefault = ``-export const featureRequestsAddEvidenceCreateBodySourceUrlMax = 2000+export const featureRequestsAddEvidenceCreateBodySourceUrlOneDefault = ``+export const featureRequestsAddEvidenceCreateBodySourceUrlOneMax = 2000++export const featureRequestsAddEvidenceCreateBodySourceUrlTwoMax = 0export const FeatureRequestsAddEvidenceCreateBody = /* @__PURE__ */ zod.object({summary: zod@@ -1299,9 +1315,14 @@ export const FeatureRequestsAddEvidenceCreateBody = /* @__PURE__ */ zod.object({.max(featureRequestsAddEvidenceCreateBodyEvidenceSourceMax).describe('Free-form name of the source where this evidence was recorded.'),source_url: zod- .url()- .max(featureRequestsAddEvidenceCreateBodySourceUrlMax)- .default(featureRequestsAddEvidenceCreateBodySourceUrlDefault)+ .union([+ zod+ .url()+ .max(featureRequestsAddEvidenceCreateBodySourceUrlOneMax)+ .default(featureRequestsAddEvidenceCreateBodySourceUrlOneDefault),+ zod.string().max(featureRequestsAddEvidenceCreateBodySourceUrlTwoMax),+ ])+ .optional().describe('Optional HTTP or HTTPS link to the source.'),requested_on: zod.iso.date().nullish().describe('Date the account made the request, or null when unknown.'),image_ids: zod@@ -1341,8 +1362,10 @@ export const featureRequestsUpdateEvidenceCreateBodySummaryDefault = ``export const featureRequestsUpdateEvidenceCreateBodyCustomerQuoteDefault = ``export const featureRequestsUpdateEvidenceCreateBodyEvidenceSourceMax = 200-export const featureRequestsUpdateEvidenceCreateBodySourceUrlDefault = ``-export const featureRequestsUpdateEvidenceCreateBodySourceUrlMax = 2000+export const featureRequestsUpdateEvidenceCreateBodySourceUrlOneDefault = ``+export const featureRequestsUpdateEvidenceCreateBodySourceUrlOneMax = 2000++export const featureRequestsUpdateEvidenceCreateBodySourceUrlTwoMax = 0export const FeatureRequestsUpdateEvidenceCreateBody = /* @__PURE__ */ zod.object({summary: zod@@ -1358,9 +1381,14 @@ export const FeatureRequestsUpdateEvidenceCreateBody = /* @__PURE__ */ zod.objec.max(featureRequestsUpdateEvidenceCreateBodyEvidenceSourceMax).describe('Free-form name of the source where this evidence was recorded.'),source_url: zod- .url()- .max(featureRequestsUpdateEvidenceCreateBodySourceUrlMax)- .default(featureRequestsUpdateEvidenceCreateBodySourceUrlDefault)+ .union([+ zod+ .url()+ .max(featureRequestsUpdateEvidenceCreateBodySourceUrlOneMax)+ .default(featureRequestsUpdateEvidenceCreateBodySourceUrlOneDefault),+ zod.string().max(featureRequestsUpdateEvidenceCreateBodySourceUrlTwoMax),+ ])+ .optional().describe('Optional HTTP or HTTPS link to the source.'),requested_on: zod.iso.date().nullish().describe('Date the account made the request, or null when unknown.'),image_ids: zoddiff --git a/products/dashboards/backend/widget_specs/openapi.py b/products/dashboards/backend/widget_specs/openapi.pyindex 25aa05e0fda9..24630e08b16d 100644--- a/products/dashboards/backend/widget_specs/openapi.py+++ b/products/dashboards/backend/widget_specs/openapi.py@@ -6,6 +6,7 @@ from drf_spectacular.utils import PolymorphicProxySerializer, extend_schema_fielfrom pydantic import BaseModelfrom rest_framework import serializers+from products.dashboards.backend.facade.enums import RestrictionLevelfrom products.dashboards.backend.models.dashboard import DASHBOARD_GRID_COMPACTION_MODES, DASHBOARD_GRID_SPACING_GAPSfrom products.dashboards.backend.widget_specs.pydantic_openapi import pydantic_config_field, pydantic_stub_serializerfrom products.dashboards.backend.widget_specs.registry import EXPECTED_WIDGET_TYPES, WIDGET_SPECS@@ -296,7 +297,11 @@ class PatchedDashboardOpenApiSerializer(serializers.Serializer):help_text="ID of the color theme used for chart visualizations.",)tags = serializers.ListField(child=serializers.CharField(), required=False)- restriction_level = serializers.ChoiceField(choices=[21, 37], required=False)+ restriction_level = serializers.ChoiceField(+ choices=RestrictionLevel.choices,+ required=False,+ help_text="Who can edit this dashboard.",+ )quick_filter_ids = serializers.ListField(child=serializers.CharField(),required=False,diff --git a/products/dashboards/frontend/generated/api.schemas.ts b/products/dashboards/frontend/generated/api.schemas.tsindex 630b7e8e719b..a5d5aaa5eeb6 100644--- a/products/dashboards/frontend/generated/api.schemas.ts+++ b/products/dashboards/frontend/generated/api.schemas.ts@@ -217,6 +217,10 @@ export const RestrictionLevelEnumApi = {Number37: 37,} as const+/**+ * * `21` - Can view dashboard+ * * `37` - Can edit dashboard+ */export type EffectivePrivilegeLevelEnumApi =(typeof EffectivePrivilegeLevelEnumApi)[keyof typeof EffectivePrivilegeLevelEnumApi]@@ -276,7 +280,7 @@ export interface DashboardBasicApi {* * `21` - Everyone in the project can edit* * `37` - Only those invited to this dashboard can edit */readonly restriction_level: RestrictionLevelEnumApi- readonly effective_restriction_level: EffectivePrivilegeLevelEnumApi+ readonly effective_restriction_level: RestrictionLevelEnumApireadonly effective_privilege_level: EffectivePrivilegeLevelEnumApi/*** The effective access level the user has for this object@@ -414,7 +418,7 @@ export interface DashboardApi {data_color_theme_id?: number | nulltags?: unknown[]restriction_level?: RestrictionLevelEnumApi- readonly effective_restriction_level: EffectivePrivilegeLevelEnumApi+ readonly effective_restriction_level: RestrictionLevelEnumApireadonly effective_privilege_level: EffectivePrivilegeLevelEnumApi/*** The effective access level the user has for this object@@ -1017,7 +1021,11 @@ export interface PatchedPatchedDashboardOpenApiApi {*/data_color_theme_id?: number | nulltags?: string[]- restriction_level?: EffectivePrivilegeLevelEnumApi+ /** Who can edit this dashboard.+ *+ * * `21` - Everyone in the project can edit+ * * `37` - Only those invited to this dashboard can edit */+ restriction_level?: RestrictionLevelEnumApi/*** List of quick filter IDs associated with this dashboard.* @nullable@@ -9138,7 +9146,7 @@ export interface InsightApi {readonly last_modified_at: stringreadonly last_modified_by: UserBasicApireadonly is_sample: boolean- readonly effective_restriction_level: EffectivePrivilegeLevelEnumApi+ readonly effective_restriction_level: RestrictionLevelEnumApireadonly effective_privilege_level: EffectivePrivilegeLevelEnumApi/*** The effective access level the user has for this objectdiff --git a/products/dashboards/frontend/generated/api.zod.ts b/products/dashboards/frontend/generated/api.zod.tsindex b2cca09bc3fa..2a3bd8c2e7ad 100644--- a/products/dashboards/frontend/generated/api.zod.ts+++ b/products/dashboards/frontend/generated/api.zod.ts@@ -342,7 +342,15 @@ export const DashboardsPartialUpdateBody = /* @__PURE__ */ zodbreakdown_colors: zod.unknown().optional().describe('Custom color mapping for breakdown values.'),data_color_theme_id: zod.number().nullish().describe('ID of the color theme used for chart visualizations.'),tags: zod.array(zod.string()).optional(),- restriction_level: zod.union([zod.literal(21), zod.literal(37)]).optional(),+ restriction_level: zod+ .union([zod.literal(21), zod.literal(37)])+ .describe(+ '\* `21` - Everyone in the project can edit\n\* `37` - Only those invited to this dashboard can edit'+ )+ .optional()+ .describe(+ 'Who can edit this dashboard.\n\n\* `21` - Everyone in the project can edit\n\* `37` - Only those invited to this dashboard can edit'+ ),quick_filter_ids: zod.array(zod.string()).nullish()diff --git a/products/data_quality/frontend/generated/api.schemas.ts b/products/data_quality/frontend/generated/api.schemas.tsindex 227229deb162..07d7bf12e5c4 100644--- a/products/data_quality/frontend/generated/api.schemas.ts+++ b/products/data_quality/frontend/generated/api.schemas.ts@@ -133,11 +133,7 @@ export type DataQualityOverviewCheckApiConfig = { [key: string]: unknown }*/export interface DataQualityOverviewCheckApi {readonly id: string- /**- * Optional identifier-safe handle, unique per project. Omit to address the check by id.- * @maxLength 128- * @pattern ^[A-Za-z][A-Za-z0-9_]*$- */+ /** Optional identifier-safe handle, unique per project. Omit to address the check by id. */name?: string/** Why this check exists and what a failure means. */description?: string@@ -386,11 +382,7 @@ export type DataQualityCheckApiConfig = { [key: string]: unknown }*/export interface DataQualityCheckApi {readonly id: string- /**- * Optional identifier-safe handle, unique per project. Omit to address the check by id.- * @maxLength 128- * @pattern ^[A-Za-z][A-Za-z0-9_]*$- */+ /** Optional identifier-safe handle, unique per project. Omit to address the check by id. */name?: string/** Why this check exists and what a failure means. */description?: string@@ -498,11 +490,7 @@ export type PatchedDataQualityCheckApiConfig = { [key: string]: unknown }*/export interface PatchedDataQualityCheckApi {readonly id?: string- /**- * Optional identifier-safe handle, unique per project. Omit to address the check by id.- * @maxLength 128- * @pattern ^[A-Za-z][A-Za-z0-9_]*$- */+ /** Optional identifier-safe handle, unique per project. Omit to address the check by id. */name?: string/** Why this check exists and what a failure means. */description?: stringdiff --git a/products/data_quality/frontend/generated/api.zod.ts b/products/data_quality/frontend/generated/api.zod.tsindex fdec81d706bf..268781339680 100644--- a/products/data_quality/frontend/generated/api.zod.ts+++ b/products/data_quality/frontend/generated/api.zod.ts@@ -24,9 +24,11 @@ export const DataQualityRunsCreateBody = /* @__PURE__ */ zod/*** Create a check on this table or view, or refine the one already carrying the same fingerprint. Re-creating a semantically identical check returns 200 and the existing row, never a duplicate.*/-export const warehouseSavedQueriesChecksCreateBodyNameMax = 128+export const warehouseSavedQueriesChecksCreateBodyNameOneMax = 128++export const warehouseSavedQueriesChecksCreateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseSavedQueriesChecksCreateBodyNameTwoMax = 0-export const warehouseSavedQueriesChecksCreateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseSavedQueriesChecksCreateBodyColumnNameMax = 400export const warehouseSavedQueriesChecksCreateBodyAiModelMax = 128@@ -37,9 +39,13 @@ export const warehouseSavedQueriesChecksCreateBodyConfidenceMax = 1export const WarehouseSavedQueriesChecksCreateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseSavedQueriesChecksCreateBodyNameMax)- .regex(warehouseSavedQueriesChecksCreateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseSavedQueriesChecksCreateBodyNameOneMax)+ .regex(warehouseSavedQueriesChecksCreateBodyNameOneRegExp),+ zod.string().max(warehouseSavedQueriesChecksCreateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),@@ -94,9 +100,11 @@ export const WarehouseSavedQueriesChecksCreateBody = /* @__PURE__ */ zod/*** Edit this check in place, including what it asserts (check_type, column_name, config). The table or view it audits is fixed, and the check keeps its id, run history, latest status, and latest run time. A definition or name already held by another active check comes back as a field error, with nothing written.*/-export const warehouseSavedQueriesChecksUpdateBodyNameMax = 128+export const warehouseSavedQueriesChecksUpdateBodyNameOneMax = 128++export const warehouseSavedQueriesChecksUpdateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseSavedQueriesChecksUpdateBodyNameTwoMax = 0-export const warehouseSavedQueriesChecksUpdateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseSavedQueriesChecksUpdateBodyColumnNameMax = 400export const warehouseSavedQueriesChecksUpdateBodyAiModelMax = 128@@ -107,9 +115,13 @@ export const warehouseSavedQueriesChecksUpdateBodyConfidenceMax = 1export const WarehouseSavedQueriesChecksUpdateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseSavedQueriesChecksUpdateBodyNameMax)- .regex(warehouseSavedQueriesChecksUpdateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseSavedQueriesChecksUpdateBodyNameOneMax)+ .regex(warehouseSavedQueriesChecksUpdateBodyNameOneRegExp),+ zod.string().max(warehouseSavedQueriesChecksUpdateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),@@ -164,9 +176,11 @@ export const WarehouseSavedQueriesChecksUpdateBody = /* @__PURE__ */ zod/*** Edit this check in place, including what it asserts (check_type, column_name, config). The table or view it audits is fixed, and the check keeps its id, run history, latest status, and latest run time. A definition or name already held by another active check comes back as a field error, with nothing written.*/-export const warehouseSavedQueriesChecksPartialUpdateBodyNameMax = 128+export const warehouseSavedQueriesChecksPartialUpdateBodyNameOneMax = 128++export const warehouseSavedQueriesChecksPartialUpdateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseSavedQueriesChecksPartialUpdateBodyNameTwoMax = 0-export const warehouseSavedQueriesChecksPartialUpdateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseSavedQueriesChecksPartialUpdateBodyColumnNameMax = 400export const warehouseSavedQueriesChecksPartialUpdateBodyAiModelMax = 128@@ -177,9 +191,13 @@ export const warehouseSavedQueriesChecksPartialUpdateBodyConfidenceMax = 1export const WarehouseSavedQueriesChecksPartialUpdateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseSavedQueriesChecksPartialUpdateBodyNameMax)- .regex(warehouseSavedQueriesChecksPartialUpdateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseSavedQueriesChecksPartialUpdateBodyNameOneMax)+ .regex(warehouseSavedQueriesChecksPartialUpdateBodyNameOneRegExp),+ zod.string().max(warehouseSavedQueriesChecksPartialUpdateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),@@ -235,9 +253,11 @@ export const WarehouseSavedQueriesChecksPartialUpdateBody = /* @__PURE__ */ zod/*** Create a check on this table or view, or refine the one already carrying the same fingerprint. Re-creating a semantically identical check returns 200 and the existing row, never a duplicate.*/-export const warehouseTablesChecksCreateBodyNameMax = 128+export const warehouseTablesChecksCreateBodyNameOneMax = 128++export const warehouseTablesChecksCreateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseTablesChecksCreateBodyNameTwoMax = 0-export const warehouseTablesChecksCreateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseTablesChecksCreateBodyColumnNameMax = 400export const warehouseTablesChecksCreateBodyAiModelMax = 128@@ -248,9 +268,13 @@ export const warehouseTablesChecksCreateBodyConfidenceMax = 1export const WarehouseTablesChecksCreateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseTablesChecksCreateBodyNameMax)- .regex(warehouseTablesChecksCreateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseTablesChecksCreateBodyNameOneMax)+ .regex(warehouseTablesChecksCreateBodyNameOneRegExp),+ zod.string().max(warehouseTablesChecksCreateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),@@ -305,9 +329,11 @@ export const WarehouseTablesChecksCreateBody = /* @__PURE__ */ zod/*** Edit this check in place, including what it asserts (check_type, column_name, config). The table or view it audits is fixed, and the check keeps its id, run history, latest status, and latest run time. A definition or name already held by another active check comes back as a field error, with nothing written.*/-export const warehouseTablesChecksUpdateBodyNameMax = 128+export const warehouseTablesChecksUpdateBodyNameOneMax = 128++export const warehouseTablesChecksUpdateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseTablesChecksUpdateBodyNameTwoMax = 0-export const warehouseTablesChecksUpdateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseTablesChecksUpdateBodyColumnNameMax = 400export const warehouseTablesChecksUpdateBodyAiModelMax = 128@@ -318,9 +344,13 @@ export const warehouseTablesChecksUpdateBodyConfidenceMax = 1export const WarehouseTablesChecksUpdateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseTablesChecksUpdateBodyNameMax)- .regex(warehouseTablesChecksUpdateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseTablesChecksUpdateBodyNameOneMax)+ .regex(warehouseTablesChecksUpdateBodyNameOneRegExp),+ zod.string().max(warehouseTablesChecksUpdateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),@@ -375,9 +405,11 @@ export const WarehouseTablesChecksUpdateBody = /* @__PURE__ */ zod/*** Edit this check in place, including what it asserts (check_type, column_name, config). The table or view it audits is fixed, and the check keeps its id, run history, latest status, and latest run time. A definition or name already held by another active check comes back as a field error, with nothing written.*/-export const warehouseTablesChecksPartialUpdateBodyNameMax = 128+export const warehouseTablesChecksPartialUpdateBodyNameOneMax = 128++export const warehouseTablesChecksPartialUpdateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseTablesChecksPartialUpdateBodyNameTwoMax = 0-export const warehouseTablesChecksPartialUpdateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseTablesChecksPartialUpdateBodyColumnNameMax = 400export const warehouseTablesChecksPartialUpdateBodyAiModelMax = 128@@ -388,9 +420,13 @@ export const warehouseTablesChecksPartialUpdateBodyConfidenceMax = 1export const WarehouseTablesChecksPartialUpdateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseTablesChecksPartialUpdateBodyNameMax)- .regex(warehouseTablesChecksPartialUpdateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseTablesChecksPartialUpdateBodyNameOneMax)+ .regex(warehouseTablesChecksPartialUpdateBodyNameOneRegExp),+ zod.string().max(warehouseTablesChecksPartialUpdateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),diff --git a/products/early_access_features/frontend/generated/api.schemas.ts b/products/early_access_features/frontend/generated/api.schemas.tsindex 6afc29624888..3a4d79b16de0 100644--- a/products/early_access_features/frontend/generated/api.schemas.ts+++ b/products/early_access_features/frontend/generated/api.schemas.ts@@ -177,10 +177,7 @@ export interface EarlyAccessFeatureApi {* * `general-availability` - general availability* * `archived` - archived */stage: EarlyAccessFeatureStageEnumApi- /**- * URL to external documentation for this feature. Shown to users in the opt-in UI.- * @maxLength 800- */+ /** URL to external documentation for this feature. Shown to users in the opt-in UI. */documentation_url?: string/** Feature flag payload for this early access feature */readonly payload: EarlyAccessFeatureApiPayload@@ -238,10 +235,7 @@ export interface EarlyAccessFeatureSerializerCreateOnlyApi {* * `general-availability` - general availability* * `archived` - archived */stage: EarlyAccessFeatureStageEnumApi- /**- * URL to external documentation for this feature. Shown to users in the opt-in UI.- * @maxLength 800- */+ /** URL to external documentation for this feature. Shown to users in the opt-in UI. */documentation_url?: string/** Arbitrary JSON metadata associated with this feature. */payload?: unknown@@ -300,10 +294,7 @@ export interface PatchedEarlyAccessFeatureApi {* * `general-availability` - general availability* * `archived` - archived */stage?: EarlyAccessFeatureStageEnumApi- /**- * URL to external documentation for this feature. Shown to users in the opt-in UI.- * @maxLength 800- */+ /** URL to external documentation for this feature. Shown to users in the opt-in UI. */documentation_url?: string/** Feature flag payload for this early access feature */readonly payload?: PatchedEarlyAccessFeatureApiPayloaddiff --git a/products/early_access_features/frontend/generated/api.zod.ts b/products/early_access_features/frontend/generated/api.zod.tsindex bd6241381fbe..a2bc9edbd5fb 100644--- a/products/early_access_features/frontend/generated/api.zod.ts+++ b/products/early_access_features/frontend/generated/api.zod.ts@@ -11,7 +11,9 @@ import * as zod from 'zod'export const earlyAccessFeatureCreateBodyNameMax = 200-export const earlyAccessFeatureCreateBodyDocumentationUrlMax = 800+export const earlyAccessFeatureCreateBodyDocumentationUrlOneMax = 800++export const earlyAccessFeatureCreateBodyDocumentationUrlTwoMax = 0export const EarlyAccessFeatureCreateBody = /* @__PURE__ */ zod.object({@@ -29,8 +31,10 @@ export const EarlyAccessFeatureCreateBody = /* @__PURE__ */ zod'Lifecycle stage. Valid values: draft, concept, alpha, beta, general-availability, archived. Moving to an active stage (alpha\/beta\/general-availability) enables the feature flag for opted-in users.\n\n\* `draft` - draft\n\* `concept` - concept\n\* `alpha` - alpha\n\* `beta` - beta\n\* `general-availability` - general availability\n\* `archived` - archived'),documentation_url: zod- .url()- .max(earlyAccessFeatureCreateBodyDocumentationUrlMax)+ .union([+ zod.url().max(earlyAccessFeatureCreateBodyDocumentationUrlOneMax),+ zod.string().max(earlyAccessFeatureCreateBodyDocumentationUrlTwoMax),+ ]).optional().describe('URL to external documentation for this feature. Shown to users in the opt-in UI.'),payload: zod.unknown().optional().describe('Arbitrary JSON metadata associated with this feature.'),@@ -46,7 +50,9 @@ export const EarlyAccessFeatureCreateBody = /* @__PURE__ */ zodexport const earlyAccessFeatureUpdateBodyNameMax = 200-export const earlyAccessFeatureUpdateBodyDocumentationUrlMax = 800+export const earlyAccessFeatureUpdateBodyDocumentationUrlOneMax = 800++export const earlyAccessFeatureUpdateBodyDocumentationUrlTwoMax = 0export const EarlyAccessFeatureUpdateBody = /* @__PURE__ */ zod.object({@@ -64,8 +70,10 @@ export const EarlyAccessFeatureUpdateBody = /* @__PURE__ */ zod'Lifecycle stage. Valid values: draft, concept, alpha, beta, general-availability, archived. Moving to an active stage (alpha\/beta\/general-availability) enables the feature flag for opted-in users.\n\n\* `draft` - draft\n\* `concept` - concept\n\* `alpha` - alpha\n\* `beta` - beta\n\* `general-availability` - general availability\n\* `archived` - archived'),documentation_url: zod- .url()- .max(earlyAccessFeatureUpdateBodyDocumentationUrlMax)+ .union([+ zod.url().max(earlyAccessFeatureUpdateBodyDocumentationUrlOneMax),+ zod.string().max(earlyAccessFeatureUpdateBodyDocumentationUrlTwoMax),+ ]).optional().describe('URL to external documentation for this feature. Shown to users in the opt-in UI.'),})@@ -73,7 +81,9 @@ export const EarlyAccessFeatureUpdateBody = /* @__PURE__ */ zodexport const earlyAccessFeaturePartialUpdateBodyNameMax = 200-export const earlyAccessFeaturePartialUpdateBodyDocumentationUrlMax = 800+export const earlyAccessFeaturePartialUpdateBodyDocumentationUrlOneMax = 800++export const earlyAccessFeaturePartialUpdateBodyDocumentationUrlTwoMax = 0export const EarlyAccessFeaturePartialUpdateBody = /* @__PURE__ */ zod.object({@@ -96,8 +106,10 @@ export const EarlyAccessFeaturePartialUpdateBody = /* @__PURE__ */ zod'Lifecycle stage. Valid values: draft, concept, alpha, beta, general-availability, archived. Moving to an active stage (alpha\/beta\/general-availability) enables the feature flag for opted-in users.\n\n\* `draft` - draft\n\* `concept` - concept\n\* `alpha` - alpha\n\* `beta` - beta\n\* `general-availability` - general availability\n\* `archived` - archived'),documentation_url: zod- .url()- .max(earlyAccessFeaturePartialUpdateBodyDocumentationUrlMax)+ .union([+ zod.url().max(earlyAccessFeaturePartialUpdateBodyDocumentationUrlOneMax),+ zod.string().max(earlyAccessFeaturePartialUpdateBodyDocumentationUrlTwoMax),+ ]).optional().describe('URL to external documentation for this feature. Shown to users in the opt-in UI.'),})diff --git a/products/error_tracking/frontend/generated/api.schemas.ts b/products/error_tracking/frontend/generated/api.schemas.tsindex 36bc25b218b4..6d42b6b98fed 100644--- a/products/error_tracking/frontend/generated/api.schemas.ts+++ b/products/error_tracking/frontend/generated/api.schemas.ts@@ -1295,7 +1295,7 @@ export const ErrorTrackingIssueStatusEnumApi = {export interface ErrorTrackingAssigneeApi {/** User ID or role UUID to filter by. */- id: string | number | null+ id: string | number/** Assignee target type: user or role.** * `user` - userdiff --git a/products/error_tracking/frontend/generated/api.zod.ts b/products/error_tracking/frontend/generated/api.zod.tsindex c26d472ad310..5bbf7447ab5f 100644--- a/products/error_tracking/frontend/generated/api.zod.ts+++ b/products/error_tracking/frontend/generated/api.zod.ts@@ -679,7 +679,7 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.objectassignee: zod.union([zod.object({- id: zod.union([zod.string(), zod.number(), zod.null()]).describe('User ID or role UUID to filter by.'),+ id: zod.union([zod.string(), zod.number()]).describe('User ID or role UUID to filter by.'),type: zod.enum(['user', 'role']).describe('\* `user` - user\n\* `role` - role')diff --git a/products/mcp_store/frontend/generated/api.schemas.ts b/products/mcp_store/frontend/generated/api.schemas.tsindex 668c5ff63dc5..74fe907eee87 100644--- a/products/mcp_store/frontend/generated/api.schemas.ts+++ b/products/mcp_store/frontend/generated/api.schemas.ts@@ -1149,7 +1149,6 @@ export interface MCPServerTemplateApi {name: string/** @maxLength 2048 */url: string- /** @maxLength 2048 */docs_url?: stringdescription?: stringauth_type?: MCPAuthTypeEnumApidiff --git a/products/platform_features/frontend/generated/api.schemas.ts b/products/platform_features/frontend/generated/api.schemas.tsindex c7d8e8d82bdf..13c84e612ca0 100644--- a/products/platform_features/frontend/generated/api.schemas.ts+++ b/products/platform_features/frontend/generated/api.schemas.ts@@ -7,10 +7,15 @@* PostHog API - generated* OpenAPI spec version: 1.0.0*/-export type EffectiveMembershipLevelEnumApi =- (typeof EffectiveMembershipLevelEnumApi)[keyof typeof EffectiveMembershipLevelEnumApi]+/**+ * * `1` - member+ * * `8` - administrator+ * * `15` - owner+ */+export type OrganizationMembershipLevelEnumApi =+ (typeof OrganizationMembershipLevelEnumApi)[keyof typeof OrganizationMembershipLevelEnumApi]-export const EffectiveMembershipLevelEnumApi = {+export const OrganizationMembershipLevelEnumApi = {Number1: 1,Number8: 8,Number15: 15,@@ -65,7 +70,7 @@ export interface OrganizationApi {logo_media_id?: string | nullreadonly created_at: stringreadonly updated_at: string- readonly membership_level: EffectiveMembershipLevelEnumApi+ readonly membership_level: OrganizationMembershipLevelEnumApireadonly plugins_access_level: PluginsAccessLevelEnumApireadonly teams: readonly OrganizationApiTeamsItem[]readonly projects: readonly OrganizationApiProjectsItem[]@@ -173,7 +178,7 @@ export interface PatchedOrganizationApi {logo_media_id?: string | nullreadonly created_at?: stringreadonly updated_at?: string- readonly membership_level?: EffectiveMembershipLevelEnumApi+ readonly membership_level?: OrganizationMembershipLevelEnumApireadonly plugins_access_level?: PluginsAccessLevelEnumApireadonly teams?: readonly PatchedOrganizationApiTeamsItem[]readonly projects?: readonly PatchedOrganizationApiProjectsItem[]@@ -366,20 +371,6 @@ export interface UserBasicApi {role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null}-/**- * * `1` - member- * * `8` - administrator- * * `15` - owner- */-export type OrganizationMembershipLevelEnumApi =- (typeof OrganizationMembershipLevelEnumApi)[keyof typeof OrganizationMembershipLevelEnumApi]--export const OrganizationMembershipLevelEnumApi = {- Number1: 1,- Number8: 8,- Number15: 15,-} as const-export type SearchMatchTypeEnumApi = (typeof SearchMatchTypeEnumApi)[keyof typeof SearchMatchTypeEnumApi]export const SearchMatchTypeEnumApi = {@@ -545,11 +536,7 @@ export interface ProxyRecordListResponseApi {}export interface PatchedProxyRecordUpdateApi {- /**- * HTTPS URL that requests to the proxy domain root redirect to, or null to disable the redirect. The URL must use the same registrable domain as the managed proxy.- * @maxLength 1024- * @nullable- */+ /** HTTPS URL that requests to the proxy domain root redirect to, or null to disable the redirect. The URL must use the same registrable domain as the managed proxy. */root_redirect_url?: string | null}diff --git a/products/platform_features/frontend/generated/api.zod.ts b/products/platform_features/frontend/generated/api.zod.tsindex 64e7a5392aa4..962ca801af10 100644--- a/products/platform_features/frontend/generated/api.zod.ts+++ b/products/platform_features/frontend/generated/api.zod.ts@@ -209,13 +209,17 @@ export const ProxyRecordsCreateBody = /* @__PURE__ */ zod.object({/*** Set or clear the HTTPS redirect for requests to the managed proxy domain root.*/-export const proxyRecordsPartialUpdateBodyRootRedirectUrlMax = 1024+export const proxyRecordsPartialUpdateBodyRootRedirectUrlOneMax = 1024++export const proxyRecordsPartialUpdateBodyRootRedirectUrlTwoMax = 0export const ProxyRecordsPartialUpdateBody = /* @__PURE__ */ zod.object({root_redirect_url: zod- .url()- .max(proxyRecordsPartialUpdateBodyRootRedirectUrlMax)- .nullish()+ .union([+ zod.url().max(proxyRecordsPartialUpdateBodyRootRedirectUrlOneMax).nullable(),+ zod.string().max(proxyRecordsPartialUpdateBodyRootRedirectUrlTwoMax),+ ])+ .optional().describe('HTTPS URL that requests to the proxy domain root redirect to, or null to disable the redirect. The URL must use the same registrable domain as the managed proxy.'),diff --git a/products/product_analytics/frontend/generated/api.schemas.ts b/products/product_analytics/frontend/generated/api.schemas.tsindex 5b51f5aef3b5..31be02919476 100644--- a/products/product_analytics/frontend/generated/api.schemas.ts+++ b/products/product_analytics/frontend/generated/api.schemas.ts@@ -8181,6 +8181,21 @@ export interface UserBasicApi {role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null}+/**+ * * `21` - Everyone in the project can edit+ * * `37` - Only those invited to this dashboard can edit+ */+export type RestrictionLevelEnumApi = (typeof RestrictionLevelEnumApi)[keyof typeof RestrictionLevelEnumApi]++export const RestrictionLevelEnumApi = {+ Number21: 21,+ Number37: 37,+} as const++/**+ * * `21` - Can view dashboard+ * * `37` - Can edit dashboard+ */export type EffectivePrivilegeLevelEnumApi =(typeof EffectivePrivilegeLevelEnumApi)[keyof typeof EffectivePrivilegeLevelEnumApi]@@ -8372,7 +8387,7 @@ export interface InsightApi {readonly last_modified_at: stringreadonly last_modified_by: UserBasicApireadonly is_sample: boolean- readonly effective_restriction_level: EffectivePrivilegeLevelEnumApi+ readonly effective_restriction_level: RestrictionLevelEnumApireadonly effective_privilege_level: EffectivePrivilegeLevelEnumApi/*** The effective access level the user has for this object@@ -8500,7 +8515,7 @@ export interface PatchedInsightApi {readonly last_modified_at?: stringreadonly last_modified_by?: UserBasicApireadonly is_sample?: boolean- readonly effective_restriction_level?: EffectivePrivilegeLevelEnumApi+ readonly effective_restriction_level?: RestrictionLevelEnumApireadonly effective_privilege_level?: EffectivePrivilegeLevelEnumApi/*** The effective access level the user has for this objectdiff --git a/products/skills/frontend/generated/api.schemas.ts b/products/skills/frontend/generated/api.schemas.tsindex 57e87949bfc0..7a15adaf74b6 100644--- a/products/skills/frontend/generated/api.schemas.ts+++ b/products/skills/frontend/generated/api.schemas.ts@@ -670,22 +670,14 @@ export interface LLMSkillFileApi {}export interface LLMSkillPublishToCommunityApi {- /**- * Human-friendly display name for the community listing. Defaults to a title-cased skill slug. Must be a single line: it is used as the pull request title and commit message.- * @maxLength 64- * @pattern ^[^\u0000-\u001f\u007f]*$- */+ /** Human-friendly display name for the community listing. Defaults to a title-cased skill slug. Must be a single line: it is used as the pull request title and commit message. */display_name?: string/*** Tags used for filtering and discovery in the marketplace, e.g. ['web-analytics', 'triage'].* @items.maxLength 64*/tags?: string[]- /**- * The publisher's GitHub username, used for public attribution on the listing and PR. Optional, and self-reported: it is not verified against the publisher's PostHog account.- * @maxLength 39- * @pattern ^$|^[a-zA-Z0-9](?:-?[a-zA-Z0-9]){0,38}$- */+ /** The publisher's GitHub username, used for public attribution on the listing and PR. Optional, and self-reported: it is not verified against the publisher's PostHog account. */author_handle?: string}diff --git a/products/skills/frontend/generated/api.zod.ts b/products/skills/frontend/generated/api.zod.tsindex 2b2be9ac8293..10f996ededec 100644--- a/products/skills/frontend/generated/api.zod.ts+++ b/products/skills/frontend/generated/api.zod.ts@@ -290,22 +290,29 @@ export const LlmSkillsNameFilesRenameCreateBody = /* @__PURE__ */ zod.object({),})-export const llmSkillsNamePublishCommunityCreateBodyDisplayNameMax = 64+export const llmSkillsNamePublishCommunityCreateBodyDisplayNameOneMax = 64++export const llmSkillsNamePublishCommunityCreateBodyDisplayNameOneRegExp = new RegExp('^[^\\u0000-\\u001f\\u007f]\*$')+export const llmSkillsNamePublishCommunityCreateBodyDisplayNameTwoMax = 0-export const llmSkillsNamePublishCommunityCreateBodyDisplayNameRegExp = new RegExp('^[^\\u0000-\\u001f\\u007f]\*$')export const llmSkillsNamePublishCommunityCreateBodyTagsItemMax = 64-export const llmSkillsNamePublishCommunityCreateBodyAuthorHandleMax = 39+export const llmSkillsNamePublishCommunityCreateBodyAuthorHandleOneMax = 39-export const llmSkillsNamePublishCommunityCreateBodyAuthorHandleRegExp = new RegExp(+export const llmSkillsNamePublishCommunityCreateBodyAuthorHandleOneRegExp = new RegExp('^$|^[a-zA-Z0-9](?:-?[a-zA-Z0-9]){0,38}$')+export const llmSkillsNamePublishCommunityCreateBodyAuthorHandleTwoMax = 0export const LlmSkillsNamePublishCommunityCreateBody = /* @__PURE__ */ zod.object({display_name: zod- .string()- .max(llmSkillsNamePublishCommunityCreateBodyDisplayNameMax)- .regex(llmSkillsNamePublishCommunityCreateBodyDisplayNameRegExp)+ .union([+ zod+ .string()+ .max(llmSkillsNamePublishCommunityCreateBodyDisplayNameOneMax)+ .regex(llmSkillsNamePublishCommunityCreateBodyDisplayNameOneRegExp),+ zod.string().max(llmSkillsNamePublishCommunityCreateBodyDisplayNameTwoMax),+ ]).optional().describe('Human-friendly display name for the community listing. Defaults to a title-cased skill slug. Must be a single line: it is used as the pull request title and commit message.'@@ -315,9 +322,13 @@ export const LlmSkillsNamePublishCommunityCreateBody = /* @__PURE__ */ zod.objec.optional().describe("Tags used for filtering and discovery in the marketplace, e.g. ['web-analytics', 'triage']."),author_handle: zod- .string()- .max(llmSkillsNamePublishCommunityCreateBodyAuthorHandleMax)- .regex(llmSkillsNamePublishCommunityCreateBodyAuthorHandleRegExp)+ .union([+ zod+ .string()+ .max(llmSkillsNamePublishCommunityCreateBodyAuthorHandleOneMax)+ .regex(llmSkillsNamePublishCommunityCreateBodyAuthorHandleOneRegExp),+ zod.string().max(llmSkillsNamePublishCommunityCreateBodyAuthorHandleTwoMax),+ ]).optional().describe("The publisher's GitHub username, used for public attribution on the listing and PR. Optional, and self-reported: it is not verified against the publisher's PostHog account."diff --git a/products/tasks/backend/presentation/serializers.py b/products/tasks/backend/presentation/serializers.pyindex 826a10b23730..b2d747f49af1 100644--- a/products/tasks/backend/presentation/serializers.py+++ b/products/tasks/backend/presentation/serializers.py@@ -6,6 +6,7 @@ import binasciifrom datetime import datetime, timedeltafrom typing import Any, cast+from django.conf import settingsfrom django.utils import timezone as django_timezoneimport posthoganalytics@@ -153,6 +154,11 @@ class SlackThreadReferenceSerializer(DataclassSerializer):TASK_RUN_ARTIFACT_MAX_SIZE_BYTES = 30 * 1024 * 1024TASK_RUN_PDF_ARTIFACT_MAX_SIZE_BYTES = 10 * 1024 * 1024+# Inline uploads carry their content in the JSON body, which Django bounds with+# DATA_UPLOAD_MAX_MEMORY_SIZE before any serializer runs. Base64 inflates content by four+# thirds, so only three quarters of that ceiling is reachable, less room for the surrounding+# JSON. Larger artifacts go through prepare_upload, which presigns straight to object storage.+TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTES = (settings.DATA_UPLOAD_MAX_MEMORY_SIZE * 3) // 4 - 1024 * 1024TASK_RUN_ARTIFACT_TYPE_CHOICES = ["plan","context",@@ -205,6 +211,17 @@ def get_task_run_artifact_max_size_bytes(return TASK_RUN_ARTIFACT_MAX_SIZE_BYTES+def get_task_run_artifact_inline_max_size_bytes(+ artifact_name: str | None,+ content_type: str | None,+ artifact_type: str | None = None,+) -> int:+ return min(+ get_task_run_artifact_max_size_bytes(artifact_name, content_type, artifact_type),+ TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTES,+ )++def build_task_run_artifact_size_error(artifact_name: str | None,max_size_bytes: int,@@ -1079,7 +1096,12 @@ class TaskRunArtifactUploadSerializer(serializers.Serializer):default="",help_text="Optional source label for the artifact, such as agent_output or user_attachment",)- content = serializers.CharField(help_text="Artifact contents encoded according to content_encoding")+ content = serializers.CharField(+ help_text=(+ "Artifact contents encoded according to content_encoding. "+ f"Artifacts above {TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTES // (1024 * 1024)} MB must use prepare_upload instead."+ )+ )content_encoding = serializers.ChoiceField(choices=TASK_RUN_ARTIFACT_CONTENT_ENCODING_CHOICES,required=False,@@ -1110,7 +1132,7 @@ class TaskRunArtifactUploadSerializer(serializers.Serializer):else:attrs["content_bytes"] = content.encode("utf-8")- max_size_bytes = get_task_run_artifact_max_size_bytes(+ max_size_bytes = get_task_run_artifact_inline_max_size_bytes(attrs.get("name"),attrs.get("content_type"),attrs.get("type"),@@ -1269,7 +1291,7 @@ class TaskRunLivingArtifactCreateRequestSerializer(serializers.Serializer):raise serializers.ValidationError({"content_base64": "Invalid base64 content"}) from excattrs.pop("content_base64", None)- max_size_bytes = get_task_run_artifact_max_size_bytes(+ max_size_bytes = get_task_run_artifact_inline_max_size_bytes(attrs.get("name"),attrs.get("content_type"),attrs.get("artifact_type"),@@ -1379,7 +1401,7 @@ class TaskRunLivingArtifactEditRequestSerializer(serializers.Serializer):raise serializers.ValidationError({"content_base64": "Invalid base64 content"}) from excattrs.pop("content_base64", None)- max_size_bytes = get_task_run_artifact_max_size_bytes(attrs.get("name"), attrs.get("content_type"))+ max_size_bytes = get_task_run_artifact_inline_max_size_bytes(attrs.get("name"), attrs.get("content_type"))if len(attrs["content_bytes"]) > max_size_bytes:raise serializers.ValidationError({"content_base64": build_task_run_artifact_size_error(attrs.get("name"), max_size_bytes)}diff --git a/products/tasks/backend/tests/test_constants.py b/products/tasks/backend/tests/test_constants.pyindex 2889cf78d865..b975df94553e 100644--- a/products/tasks/backend/tests/test_constants.py+++ b/products/tasks/backend/tests/test_constants.py@@ -1,9 +1,12 @@import refrom pathlib import Path+from django.conf import settings+import yamlfrom products.tasks.backend.constants import POSTHOG_EXEC_PERMISSION_REGEX+from products.tasks.backend.presentation.serializers import TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTESPRODUCTS_DIR = Path(__file__).resolve().parents[3]@@ -39,3 +42,12 @@ def test_exec_permission_regex_covers_destructive_annotated_tools():pattern = re.compile(POSTHOG_EXEC_PERMISSION_REGEX, re.IGNORECASE)ungated = sorted(name for name in destructive if not pattern.search(name))assert not ungated, f"destructive-annotated MCP tools not covered by POSTHOG_EXEC_PERMISSION_REGEX: {ungated}"+++def test_inline_artifact_ceiling_stays_reachable_through_the_request_body_limit():+ # Django raises RequestDataTooBig before the serializer runs, so an inline ceiling that base64+ # inflates past DATA_UPLOAD_MAX_MEMORY_SIZE turns the "use prepare_upload" error into an opaque+ # 400 with no field attached. Raising this ceiling means raising the body limit with it.+ largest_encoded_body = TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTES * 4 // 3++ assert largest_encoded_body < settings.DATA_UPLOAD_MAX_MEMORY_SIZEdiff --git a/products/tasks/backend/tests/test_presentation_serializers.py b/products/tasks/backend/tests/test_presentation_serializers.pyindex 29917d6a7124..8e5e69bb08ae 100644--- a/products/tasks/backend/tests/test_presentation_serializers.py+++ b/products/tasks/backend/tests/test_presentation_serializers.py@@ -8,7 +8,9 @@ from parameterized import parameterizedfrom products.tasks.backend.facade import api as tasks_facadefrom products.tasks.backend.presentation.serializers import (+ TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTES,SandboxEnvironmentWriteSerializer,+ TaskRunArtifactUploadSerializer,TaskRunCreateRequestSerializer,TaskRunLivingArtifactCreateRequestSerializer,TaskWriteSerializer,@@ -112,3 +114,28 @@ class TestTaskRunCreateRequestSerializer(SimpleTestCase):assert not serializer.is_valid()mock_resolve_url_hosts_ips.assert_not_called()+++class TestTaskRunArtifactUploadSerializer(SimpleTestCase):+ @parameterized.expand(+ [+ ("at the ceiling", TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTES, True),+ ("above the ceiling", TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTES + 1, False),+ ]+ )+ def test_inline_content_is_capped_below_the_request_body_limit(+ self, _name: str, content_length: int, expected_valid: bool+ ) -> None:+ serializer = TaskRunArtifactUploadSerializer(+ data={+ "name": "output.txt",+ "type": "output",+ "content": "a" * content_length,+ "content_encoding": "utf-8",+ }+ )++ assert serializer.is_valid() is expected_valid+ if not expected_valid:+ megabytes = TASK_RUN_ARTIFACT_INLINE_MAX_SIZE_BYTES // (1024 * 1024)+ assert f"{megabytes}MB attachment limit" in str(serializer.errors["content"])diff --git a/products/tasks/frontend/generated/api.schemas.ts b/products/tasks/frontend/generated/api.schemas.tsindex 8d760d3c8416..b1d6ae13d612 100644--- a/products/tasks/frontend/generated/api.schemas.ts+++ b/products/tasks/frontend/generated/api.schemas.ts@@ -3440,7 +3440,7 @@ export interface TaskRunArtifactUploadApi {* @maxLength 64*/source?: string- /** Artifact contents encoded according to content_encoding */+ /** Artifact contents encoded according to content_encoding. Artifacts above 14 MB must use prepare_upload instead. */content: string/** Encoding used for content. Use base64 for binary files and utf-8 for text payloads.*diff --git a/products/tasks/frontend/generated/api.zod.ts b/products/tasks/frontend/generated/api.zod.tsindex 9c73aaec79f8..e60e0eb13f94 100644--- a/products/tasks/frontend/generated/api.zod.ts+++ b/products/tasks/frontend/generated/api.zod.ts@@ -2682,7 +2682,11 @@ export const TasksRunsArtifactsCreateBody = /* @__PURE__ */ zod.object({.max(tasksRunsArtifactsCreateBodyArtifactsItemSourceMax).default(tasksRunsArtifactsCreateBodyArtifactsItemSourceDefault).describe('Optional source label for the artifact, such as agent_output or user_attachment'),- content: zod.string().describe('Artifact contents encoded according to content_encoding'),+ content: zod+ .string()+ .describe(+ 'Artifact contents encoded according to content_encoding. Artifacts above 14 MB must use prepare_upload instead.'+ ),content_encoding: zod.enum(['utf-8', 'base64']).describe('\* `utf-8` - utf-8\n\* `base64` - base64')diff --git a/products/warehouse_sources/frontend/generated/api.zod.ts b/products/warehouse_sources/frontend/generated/api.zod.tsindex 1b965d6c9b29..38269aac70ae 100644--- a/products/warehouse_sources/frontend/generated/api.zod.ts+++ b/products/warehouse_sources/frontend/generated/api.zod.ts@@ -527,6 +527,7 @@ export const ExternalDataSourcesDatabaseSchemaCreateBody = /* @__PURE__ */ zod* since the docs are sent to the LLM gateway.*/export const externalDataSourcesDraftCustomManifestCreateBodySourceNameDefault = ``+export const externalDataSourcesDraftCustomManifestCreateBodyDocsUrlTwoMax = 0export const ExternalDataSourcesDraftCustomManifestCreateBody = /* @__PURE__ */ zod.object({source_name: zod@@ -534,7 +535,7 @@ export const ExternalDataSourcesDraftCustomManifestCreateBody = /* @__PURE__ */.default(externalDataSourcesDraftCustomManifestCreateBodySourceNameDefault).describe("Optional human name of the API being connected (e.g. 'Acme CRM'). Used only to orient the model."),docs_url: zod- .url()+ .union([zod.url(), zod.string().max(externalDataSourcesDraftCustomManifestCreateBodyDocsUrlTwoMax)]).optional().describe('URL of the API documentation to read. Provide this or docs_text; fetched server-side via the egress proxy.'diff --git a/products/web_analytics/frontend/generated/api.schemas.ts b/products/web_analytics/frontend/generated/api.schemas.tsindex 3853d145509e..9fb4fbc618c9 100644--- a/products/web_analytics/frontend/generated/api.schemas.ts+++ b/products/web_analytics/frontend/generated/api.schemas.ts@@ -128,11 +128,7 @@ export interface HeatmapScreenshotResponseApi {* @maxLength 2000*/url: string- /**- * URL whose heatmap data is overlaid on the screenshot (defaults to 'url').- * @maxLength 2000- * @nullable- */+ /** URL whose heatmap data is overlaid on the screenshot (defaults to 'url'). */data_url?: string | null/** Viewport widths (CSS pixels) the screenshot is rendered at. */readonly target_widths: readonly number[]@@ -240,11 +236,7 @@ export interface SavedHeatmapRequestApi {* @maxLength 2000*/url: string- /**- * URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted.- * @maxLength 2000- * @nullable- */+ /** URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted. */data_url?: string | null/*** Viewport widths (px, 100-3000) to render the heatmap screenshot at — one render per width. Defaults to [320, 375, 425, 768, 1024, 1440, 1920] when omitted. At most 16 widths.@@ -277,11 +269,7 @@ export interface PatchedSavedHeatmapRequestApi {* @maxLength 2000*/url?: string- /**- * URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted.- * @maxLength 2000- * @nullable- */+ /** URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted. */data_url?: string | null/*** Viewport widths (px, 100-3000) to render the heatmap screenshot at — one render per width. Defaults to [320, 375, 425, 768, 1024, 1440, 1920] when omitted. At most 16 widths.@@ -303,8 +291,11 @@ export interface PatchedSavedHeatmapRequestApi {}export interface SavedHeatmapCaptureRequestApi {- /** Single screenshot of the page, captured client-side by the toolbar (JPEG or PNG). Max 20MB. Pair with 'width'. Use 'images'/'widths' instead to save several viewport widths on one heatmap. */- image?: string+ /**+ * Single screenshot of the page, captured client-side by the toolbar (JPEG or PNG). Max 20MB. Pair with 'width'. Use 'images'/'widths' instead to save several viewport widths on one heatmap.+ * @nullable+ */+ image?: string | null/*** Viewport width (CSS pixels) the single 'image' was captured at.* @minimum 100diff --git a/products/web_analytics/frontend/generated/api.ts b/products/web_analytics/frontend/generated/api.tsindex 52f2d62b7b63..02856b7e66b8 100644--- a/products/web_analytics/frontend/generated/api.ts+++ b/products/web_analytics/frontend/generated/api.ts@@ -294,7 +294,7 @@ export const savedCaptureCreate = async (options?: RequestInit): Promise<HeatmapScreenshotResponseApi> => {const formData = new FormData()- if (savedHeatmapCaptureRequestApi.image !== undefined) {+ if (savedHeatmapCaptureRequestApi.image !== undefined && savedHeatmapCaptureRequestApi.image !== null) {formData.append(`image`, savedHeatmapCaptureRequestApi.image)}if (savedHeatmapCaptureRequestApi.width !== undefined) {diff --git a/products/web_analytics/frontend/generated/api.zod.ts b/products/web_analytics/frontend/generated/api.zod.tsindex 75365bea5d8a..9afa969ec87f 100644--- a/products/web_analytics/frontend/generated/api.zod.ts+++ b/products/web_analytics/frontend/generated/api.zod.ts@@ -16,7 +16,9 @@ export const savedCreateBodyNameMax = 400export const savedCreateBodyUrlMax = 2000-export const savedCreateBodyDataUrlMax = 2000+export const savedCreateBodyDataUrlOneMax = 2000++export const savedCreateBodyDataUrlTwoMax = 0export const savedCreateBodyWidthsItemMin = 100export const savedCreateBodyWidthsItemMax = 3000@@ -32,9 +34,8 @@ export const SavedCreateBody = /* @__PURE__ */ zod.object({.max(savedCreateBodyUrlMax).describe('Exact page URL to render and overlay heatmap data on. Wildcards are not allowed.'),data_url: zod- .url()- .max(savedCreateBodyDataUrlMax)- .nullish()+ .union([zod.url().max(savedCreateBodyDataUrlOneMax).nullable(), zod.string().max(savedCreateBodyDataUrlTwoMax)])+ .optional().describe("URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted."),widths: zod.array(zod.number().min(savedCreateBodyWidthsItemMin).max(savedCreateBodyWidthsItemMax))@@ -66,7 +67,9 @@ export const savedPartialUpdateBodyNameMax = 400export const savedPartialUpdateBodyUrlMax = 2000-export const savedPartialUpdateBodyDataUrlMax = 2000+export const savedPartialUpdateBodyDataUrlOneMax = 2000++export const savedPartialUpdateBodyDataUrlTwoMax = 0export const savedPartialUpdateBodyWidthsItemMin = 100export const savedPartialUpdateBodyWidthsItemMax = 3000@@ -87,9 +90,11 @@ export const SavedPartialUpdateBody = /* @__PURE__ */ zod.object({.optional().describe('Exact page URL to render and overlay heatmap data on. Wildcards are not allowed.'),data_url: zod- .url()- .max(savedPartialUpdateBodyDataUrlMax)- .nullish()+ .union([+ zod.url().max(savedPartialUpdateBodyDataUrlOneMax).nullable(),+ zod.string().max(savedPartialUpdateBodyDataUrlTwoMax),+ ])+ .optional().describe("URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted."),widths: zod.array(zod.number().min(savedPartialUpdateBodyWidthsItemMin).max(savedPartialUpdateBodyWidthsItemMax))@@ -134,7 +139,7 @@ export const savedCaptureCreateBodyNameMax = 400export const SavedCaptureCreateBody = /* @__PURE__ */ zod.object({image: zod.url()- .optional()+ .nullish().describe("Single screenshot of the page, captured client-side by the toolbar (JPEG or PNG). Max 20MB. Pair with 'width'. Use 'images'\/'widths' instead to save several viewport widths on one heatmap."),diff --git a/pyproject.toml b/pyproject.tomlindex e63c2904018f..4a77cf6fe110 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -49,14 +49,14 @@ dependencies = ["django-redis==7.0.0","django-structlog[celery]~=10.1.0","django-two-factor-auth~=1.18.0",- "djangorestframework~=3.16.1",+ "djangorestframework~=3.17.2","djangorestframework-csv~=3.0.2","djangorestframework-dataclasses~=1.4.0","dlt==1.18.2","dnspython==2.6.1","drf-exceptions-hog==0.4.0","drf-extensions~=0.8.0",- "drf-spectacular~=0.29.0",+ "drf-spectacular~=0.30.0","geoip2==4.6.0","google-ads==31.2.0","google-cloud-bigquery==3.26",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 6aebdbef37ca..b1080af21b41 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -8844,6 +8844,22 @@ export namespace Schemas {deleted?: boolean | null;}+ /**+ * * `21` - Everyone in the project can edit+ * * `37` - Only those invited to this dashboard can edit+ */+ export type RestrictionLevelEnum = typeof RestrictionLevelEnum[keyof typeof RestrictionLevelEnum];+++ export const RestrictionLevelEnum = {+ Number21: 21,+ Number37: 37,+ } as const;++ /**+ * * `21` - Can view dashboard+ * * `37` - Can edit dashboard+ */export type EffectivePrivilegeLevelEnum = typeof EffectivePrivilegeLevelEnum[keyof typeof EffectivePrivilegeLevelEnum];@@ -8982,7 +8998,7 @@ export namespace Schemas {readonly last_modified_at: string;readonly last_modified_by: UserBasic;readonly is_sample: boolean;- readonly effective_restriction_level: EffectivePrivilegeLevelEnum;+ readonly effective_restriction_level: RestrictionLevelEnum;readonly effective_privilege_level: EffectivePrivilegeLevelEnum;/*** The effective access level the user has for this object@@ -14066,9 +14082,7 @@ export namespace Schemas {startup_program_label?: string | null;/** @nullable */startup_program_label_previous?: string | null;- /** @nullable */stripe_portal_url?: string | null;- /** @nullable */external_billing_provider_invoices_url?: string | null;/** Subscribed and available products/addons with pricing, plan, limit, usage, and entitlement metadata. */products?: BillingOverviewResponseProductsItem[];@@ -20567,18 +20581,6 @@ export namespace Schemas {export type DashboardTilesItem = { [key: string]: unknown };- /**- * * `21` - Everyone in the project can edit- * * `37` - Only those invited to this dashboard can edit- */- export type RestrictionLevelEnum = typeof RestrictionLevelEnum[keyof typeof RestrictionLevelEnum];--- export const RestrictionLevelEnum = {- Number21: 21,- Number37: 37,- } as const;-/*** * `tight` - tight* * `condensed` - condensed@@ -20676,7 +20678,7 @@ export namespace Schemas {data_color_theme_id?: number | null;tags?: unknown[];restriction_level?: RestrictionLevelEnum;- readonly effective_restriction_level: EffectivePrivilegeLevelEnum;+ readonly effective_restriction_level: RestrictionLevelEnum;readonly effective_privilege_level: EffectivePrivilegeLevelEnum;/*** The effective access level the user has for this object@@ -20770,7 +20772,7 @@ export namespace Schemas {* * `21` - Everyone in the project can edit* * `37` - Only those invited to this dashboard can edit */readonly restriction_level: RestrictionLevelEnum;- readonly effective_restriction_level: EffectivePrivilegeLevelEnum;+ readonly effective_restriction_level: RestrictionLevelEnum;readonly effective_privilege_level: EffectivePrivilegeLevelEnum;/*** The effective access level the user has for this object@@ -21437,11 +21439,7 @@ export namespace Schemas {*/export interface DataQualityCheck {readonly id: string;- /**- * Optional identifier-safe handle, unique per project. Omit to address the check by id.- * @maxLength 128- * @pattern ^[A-Za-z][A-Za-z0-9_]*$- */+ /** Optional identifier-safe handle, unique per project. Omit to address the check by id. */name?: string;/** Why this check exists and what a failure means. */description?: string;@@ -21634,11 +21632,7 @@ export namespace Schemas {*/export interface DataQualityOverviewCheck {readonly id: string;- /**- * Optional identifier-safe handle, unique per project. Omit to address the check by id.- * @maxLength 128- * @pattern ^[A-Za-z][A-Za-z0-9_]*$- */+ /** Optional identifier-safe handle, unique per project. Omit to address the check by id. */name?: string;/** Why this check exists and what a failure means. */description?: string;@@ -29456,10 +29450,7 @@ export namespace Schemas {* * `general-availability` - general availability* * `archived` - archived */stage: EarlyAccessFeatureStageEnum;- /**- * URL to external documentation for this feature. Shown to users in the opt-in UI.- * @maxLength 800- */+ /** URL to external documentation for this feature. Shown to users in the opt-in UI. */documentation_url?: string;/** Feature flag payload for this early access feature */readonly payload: EarlyAccessFeaturePayload;@@ -29508,10 +29499,7 @@ export namespace Schemas {* * `general-availability` - general availability* * `archived` - archived */stage: EarlyAccessFeatureStageEnum;- /**- * URL to external documentation for this feature. Shown to users in the opt-in UI.- * @maxLength 800- */+ /** URL to external documentation for this feature. Shown to users in the opt-in UI. */documentation_url?: string;/** Arbitrary JSON metadata associated with this feature. */payload?: unknown;@@ -29689,15 +29677,6 @@ export namespace Schemas {DoNotUse: 'do_not_use',} as const;- export type EffectiveMembershipLevelEnum = typeof EffectiveMembershipLevelEnum[keyof typeof EffectiveMembershipLevelEnum];--- export const EffectiveMembershipLevelEnum = {- Number1: 1,- Number8: 8,- Number15: 15,- } as const;-export interface Element {/*** @maxLength 10000@@ -30920,7 +30899,7 @@ export namespace Schemas {export interface ErrorTrackingAssignee {/** User ID or role UUID to filter by. */- id: string | number | null;+ id: string | number;/** Assignee target type: user or role.** * `user` - user@@ -39412,10 +39391,7 @@ export namespace Schemas {* @maxLength 200*/evidence_source: string;- /**- * Optional HTTP or HTTPS link to the source.- * @maxLength 2000- */+ /** Optional HTTP or HTTPS link to the source. */source_url?: string;/*** Date the account made the request, or null when unknown.@@ -39466,10 +39442,7 @@ export namespace Schemas {* @maxLength 200*/evidence_source: string;- /**- * Optional HTTP or HTTPS link to the source.- * @maxLength 2000- */+ /** Optional HTTP or HTTPS link to the source. */source_url?: string;/*** Date the account made the request, or null when unknown.@@ -39507,10 +39480,7 @@ export namespace Schemas {* @maxLength 200*/evidence_source: string;- /**- * Optional HTTP or HTTPS link to the source.- * @maxLength 2000- */+ /** Optional HTTP or HTTPS link to the source. */source_url?: string;/*** Date the account made the request, or null when unknown.@@ -41564,11 +41534,7 @@ export namespace Schemas {* @maxLength 2000*/url: string;- /**- * URL whose heatmap data is overlaid on the screenshot (defaults to 'url').- * @maxLength 2000- * @nullable- */+ /** URL whose heatmap data is overlaid on the screenshot (defaults to 'url'). */data_url?: string | null;/** Viewport widths (CSS pixels) the screenshot is rendered at. */readonly target_widths: readonly number[];@@ -47294,22 +47260,14 @@ export namespace Schemas {}export interface LLMSkillPublishToCommunity {- /**- * Human-friendly display name for the community listing. Defaults to a title-cased skill slug. Must be a single line: it is used as the pull request title and commit message.- * @maxLength 64- * @pattern ^[^\u0000-\u001f\u007f]*$- */+ /** Human-friendly display name for the community listing. Defaults to a title-cased skill slug. Must be a single line: it is used as the pull request title and commit message. */display_name?: string;/*** Tags used for filtering and discovery in the marketplace, e.g. ['web-analytics', 'triage'].* @items.maxLength 64*/tags?: string[];- /**- * The publisher's GitHub username, used for public attribution on the listing and PR. Optional, and self-reported: it is not verified against the publisher's PostHog account.- * @maxLength 39- * @pattern ^$|^[a-zA-Z0-9](?:-?[a-zA-Z0-9]){0,38}$- */+ /** The publisher's GitHub username, used for public attribution on the listing and PR. Optional, and self-reported: it is not verified against the publisher's PostHog account. */author_handle?: string;}@@ -50011,7 +49969,6 @@ export namespace Schemas {name: string;/** @maxLength 2048 */url: string;- /** @maxLength 2048 */docs_url?: string;description?: string;auth_type?: MCPAuthTypeEnum;@@ -52604,6 +52561,20 @@ export namespace Schemas {export type OrganizationMetadata = {[key: string]: string};+ /**+ * * `1` - member+ * * `8` - administrator+ * * `15` - owner+ */+ export type OrganizationMembershipLevelEnum = typeof OrganizationMembershipLevelEnum[keyof typeof OrganizationMembershipLevelEnum];+++ export const OrganizationMembershipLevelEnum = {+ Number1: 1,+ Number8: 8,+ Number15: 15,+ } as const;+/*** * `0` - none* * `3` - config@@ -52630,7 +52601,7 @@ export namespace Schemas {logo_media_id?: string | null;readonly created_at: string;readonly updated_at: string;- readonly membership_level: EffectiveMembershipLevelEnum;+ readonly membership_level: OrganizationMembershipLevelEnum;readonly plugins_access_level: PluginsAccessLevelEnum;readonly teams: readonly OrganizationTeamsItem[];readonly projects: readonly OrganizationProjectsItem[];@@ -52733,7 +52704,7 @@ export namespace Schemas {slug: string;/** @nullable */readonly logo_media_id: string | null;- readonly membership_level: EffectiveMembershipLevelEnum;+ readonly membership_level: OrganizationMembershipLevelEnum;members_can_use_personal_api_keys?: boolean;/*** Set this to 'No' to temporarily disable an organization.@@ -52834,20 +52805,6 @@ export namespace Schemas {readonly created_by: UserBasic;}- /**- * * `1` - member- * * `8` - administrator- * * `15` - owner- */- export type OrganizationMembershipLevelEnum = typeof OrganizationMembershipLevelEnum[keyof typeof OrganizationMembershipLevelEnum];--- export const OrganizationMembershipLevelEnum = {- Number1: 1,- Number8: 8,- Number15: 15,- } as const;-export interface OrganizationInvite {readonly id: string;/** @maxLength 254 */@@ -60695,11 +60652,7 @@ export namespace Schemas {*/export interface PatchedDataQualityCheck {readonly id?: string;- /**- * Optional identifier-safe handle, unique per project. Omit to address the check by id.- * @maxLength 128- * @pattern ^[A-Za-z][A-Za-z0-9_]*$- */+ /** Optional identifier-safe handle, unique per project. Omit to address the check by id. */name?: string;/** Why this check exists and what a failure means. */description?: string;@@ -61090,10 +61043,7 @@ export namespace Schemas {* * `general-availability` - general availability* * `archived` - archived */stage?: EarlyAccessFeatureStageEnum;- /**- * URL to external documentation for this feature. Shown to users in the opt-in UI.- * @maxLength 800- */+ /** URL to external documentation for this feature. Shown to users in the opt-in UI. */documentation_url?: string;/** Feature flag payload for this early access feature */readonly payload?: PatchedEarlyAccessFeaturePayload;@@ -62993,7 +62943,7 @@ export namespace Schemas {readonly last_modified_at?: string;readonly last_modified_by?: UserBasic;readonly is_sample?: boolean;- readonly effective_restriction_level?: EffectivePrivilegeLevelEnum;+ readonly effective_restriction_level?: RestrictionLevelEnum;readonly effective_privilege_level?: EffectivePrivilegeLevelEnum;/*** The effective access level the user has for this object@@ -63811,7 +63761,7 @@ export namespace Schemas {logo_media_id?: string | null;readonly created_at?: string;readonly updated_at?: string;- readonly membership_level?: EffectiveMembershipLevelEnum;+ readonly membership_level?: OrganizationMembershipLevelEnum;readonly plugins_access_level?: PluginsAccessLevelEnum;readonly teams?: readonly PatchedOrganizationTeamsItem[];readonly projects?: readonly PatchedOrganizationProjectsItem[];@@ -63980,7 +63930,11 @@ export namespace Schemas {*/data_color_theme_id?: number | null;tags?: string[];- restriction_level?: EffectivePrivilegeLevelEnum;+ /** Who can edit this dashboard.+ *+ * * `21` - Everyone in the project can edit+ * * `37` - Only those invited to this dashboard can edit */+ restriction_level?: RestrictionLevelEnum;/*** List of quick filter IDs associated with this dashboard.* @nullable@@ -64238,7 +64192,7 @@ export namespace Schemas {*/product_description?: string | null;readonly created_at?: string;- readonly effective_membership_level?: EffectiveMembershipLevelEnum;+ readonly effective_membership_level?: OrganizationMembershipLevelEnum;readonly has_group_types?: boolean;readonly group_types?: readonly PatchedProjectBackwardCompatGroupTypesItem[];/** @nullable */@@ -65075,11 +65029,7 @@ export namespace Schemas {}export interface PatchedProxyRecordUpdate {- /**- * HTTPS URL that requests to the proxy domain root redirect to, or null to disable the redirect. The URL must use the same registrable domain as the managed proxy.- * @maxLength 1024- * @nullable- */+ /** HTTPS URL that requests to the proxy domain root redirect to, or null to disable the redirect. The URL must use the same registrable domain as the managed proxy. */root_redirect_url?: string | null;}@@ -65440,11 +65390,7 @@ export namespace Schemas {* @maxLength 2000*/url?: string;- /**- * URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted.- * @maxLength 2000- * @nullable- */+ /** URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted. */data_url?: string | null;/*** Viewport widths (px, 100-3000) to render the heatmap screenshot at — one render per width. Defaults to [320, 375, 425, 768, 1024, 1440, 1920] when omitted. At most 16 widths.@@ -67140,7 +67086,7 @@ export namespace Schemas {/** @nullable */proactive_tasks_enabled?: boolean | null;workflows_config?: TeamWorkflowsConfig;- readonly effective_membership_level?: EffectiveMembershipLevelEnum;+ readonly effective_membership_level?: OrganizationMembershipLevelEnum;readonly has_group_types?: boolean;readonly group_types?: readonly PatchedTeamGroupTypesItem[];/** @nullable */@@ -68625,7 +68571,7 @@ export namespace Schemas {*/product_description?: string | null;readonly created_at: string;- readonly effective_membership_level: EffectiveMembershipLevelEnum;+ readonly effective_membership_level: OrganizationMembershipLevelEnum;readonly has_group_types: boolean;readonly group_types: readonly ProjectBackwardCompatGroupTypesItem[];/** @nullable */@@ -75598,8 +75544,11 @@ export namespace Schemas {}export interface SavedHeatmapCaptureRequest {- /** Single screenshot of the page, captured client-side by the toolbar (JPEG or PNG). Max 20MB. Pair with 'width'. Use 'images'/'widths' instead to save several viewport widths on one heatmap. */- image?: string;+ /**+ * Single screenshot of the page, captured client-side by the toolbar (JPEG or PNG). Max 20MB. Pair with 'width'. Use 'images'/'widths' instead to save several viewport widths on one heatmap.+ * @nullable+ */+ image?: string | null;/*** Viewport width (CSS pixels) the single 'image' was captured at.* @minimum 100@@ -75648,11 +75597,7 @@ export namespace Schemas {* @maxLength 2000*/url: string;- /**- * URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted.- * @maxLength 2000- * @nullable- */+ /** URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted. */data_url?: string | null;/*** Viewport widths (px, 100-3000) to render the heatmap screenshot at — one render per width. Defaults to [320, 375, 425, 768, 1024, 1440, 1920] when omitted. At most 16 widths.@@ -83704,7 +83649,7 @@ export namespace Schemas {* @maxLength 64*/source?: string;- /** Artifact contents encoded according to content_encoding */+ /** Artifact contents encoded according to content_encoding. Artifacts above 14 MB must use prepare_upload instead. */content: string;/** Encoding used for content. Use base64 for binary files and utf-8 for text payloads.*@@ -84972,7 +84917,7 @@ export namespace Schemas {/** @nullable */proactive_tasks_enabled?: boolean | null;workflows_config?: TeamWorkflowsConfig;- readonly effective_membership_level: EffectiveMembershipLevelEnum;+ readonly effective_membership_level: OrganizationMembershipLevelEnum;readonly has_group_types: boolean;readonly group_types: readonly TeamGroupTypesItem[];/** @nullable */diff --git a/services/mcp/src/generated/customer_analytics/api.ts b/services/mcp/src/generated/customer_analytics/api.tsindex 990cb4562fae..4dd025d3bb77 100644--- a/services/mcp/src/generated/customer_analytics/api.ts+++ b/services/mcp/src/generated/customer_analytics/api.ts@@ -1265,8 +1265,10 @@ export const featureRequestsCreateBodyEvidenceOneSummaryDefault = ``export const featureRequestsCreateBodyEvidenceOneCustomerQuoteDefault = ``export const featureRequestsCreateBodyEvidenceOneEvidenceSourceMax = 200-export const featureRequestsCreateBodyEvidenceOneSourceUrlDefault = ``-export const featureRequestsCreateBodyEvidenceOneSourceUrlMax = 2000+export const featureRequestsCreateBodyEvidenceOneSourceUrlOneDefault = ``+export const featureRequestsCreateBodyEvidenceOneSourceUrlOneMax = 2000++export const featureRequestsCreateBodyEvidenceOneSourceUrlTwoMax = 0export const FeatureRequestsCreateBody = /* @__PURE__ */ zod.object({title: zod.string().max(featureRequestsCreateBodyTitleMax).describe('Required customer-facing request title.'),@@ -1299,9 +1301,14 @@ export const FeatureRequestsCreateBody = /* @__PURE__ */ zod.object({.max(featureRequestsCreateBodyEvidenceOneEvidenceSourceMax).describe('Free-form name of the source where this evidence was recorded.'),source_url: zod- .url()- .max(featureRequestsCreateBodyEvidenceOneSourceUrlMax)- .default(featureRequestsCreateBodyEvidenceOneSourceUrlDefault)+ .union([+ zod+ .url()+ .max(featureRequestsCreateBodyEvidenceOneSourceUrlOneMax)+ .default(featureRequestsCreateBodyEvidenceOneSourceUrlOneDefault),+ zod.string().max(featureRequestsCreateBodyEvidenceOneSourceUrlTwoMax),+ ])+ .optional().describe('Optional HTTP or HTTPS link to the source.'),requested_on: zod.iso.date()@@ -1392,8 +1399,10 @@ export const featureRequestsAddAccountCreateBodyEvidenceOneSummaryDefault = ``export const featureRequestsAddAccountCreateBodyEvidenceOneCustomerQuoteDefault = ``export const featureRequestsAddAccountCreateBodyEvidenceOneEvidenceSourceMax = 200-export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlDefault = ``-export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlMax = 2000+export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlOneDefault = ``+export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlOneMax = 2000++export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlTwoMax = 0export const FeatureRequestsAddAccountCreateBody = /* @__PURE__ */ zod.object({expected_version: zod@@ -1417,9 +1426,14 @@ export const FeatureRequestsAddAccountCreateBody = /* @__PURE__ */ zod.object({.max(featureRequestsAddAccountCreateBodyEvidenceOneEvidenceSourceMax).describe('Free-form name of the source where this evidence was recorded.'),source_url: zod- .url()- .max(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlMax)- .default(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlDefault)+ .union([+ zod+ .url()+ .max(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlOneMax)+ .default(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlOneDefault),+ zod.string().max(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlTwoMax),+ ])+ .optional().describe('Optional HTTP or HTTPS link to the source.'),requested_on: zod.iso.date()@@ -1449,8 +1463,10 @@ export const featureRequestsAddEvidenceCreateBodySummaryDefault = ``export const featureRequestsAddEvidenceCreateBodyCustomerQuoteDefault = ``export const featureRequestsAddEvidenceCreateBodyEvidenceSourceMax = 200-export const featureRequestsAddEvidenceCreateBodySourceUrlDefault = ``-export const featureRequestsAddEvidenceCreateBodySourceUrlMax = 2000+export const featureRequestsAddEvidenceCreateBodySourceUrlOneDefault = ``+export const featureRequestsAddEvidenceCreateBodySourceUrlOneMax = 2000++export const featureRequestsAddEvidenceCreateBodySourceUrlTwoMax = 0export const FeatureRequestsAddEvidenceCreateBody = /* @__PURE__ */ zod.object({summary: zod@@ -1466,9 +1482,14 @@ export const FeatureRequestsAddEvidenceCreateBody = /* @__PURE__ */ zod.object({.max(featureRequestsAddEvidenceCreateBodyEvidenceSourceMax).describe('Free-form name of the source where this evidence was recorded.'),source_url: zod- .url()- .max(featureRequestsAddEvidenceCreateBodySourceUrlMax)- .default(featureRequestsAddEvidenceCreateBodySourceUrlDefault)+ .union([+ zod+ .url()+ .max(featureRequestsAddEvidenceCreateBodySourceUrlOneMax)+ .default(featureRequestsAddEvidenceCreateBodySourceUrlOneDefault),+ zod.string().max(featureRequestsAddEvidenceCreateBodySourceUrlTwoMax),+ ])+ .optional().describe('Optional HTTP or HTTPS link to the source.'),requested_on: zod.iso.date().nullish().describe('Date the account made the request, or null when unknown.'),image_ids: zod@@ -1562,8 +1583,10 @@ export const featureRequestsUpdateEvidenceCreateBodySummaryDefault = ``export const featureRequestsUpdateEvidenceCreateBodyCustomerQuoteDefault = ``export const featureRequestsUpdateEvidenceCreateBodyEvidenceSourceMax = 200-export const featureRequestsUpdateEvidenceCreateBodySourceUrlDefault = ``-export const featureRequestsUpdateEvidenceCreateBodySourceUrlMax = 2000+export const featureRequestsUpdateEvidenceCreateBodySourceUrlOneDefault = ``+export const featureRequestsUpdateEvidenceCreateBodySourceUrlOneMax = 2000++export const featureRequestsUpdateEvidenceCreateBodySourceUrlTwoMax = 0export const FeatureRequestsUpdateEvidenceCreateBody = /* @__PURE__ */ zod.object({summary: zod@@ -1579,9 +1602,14 @@ export const FeatureRequestsUpdateEvidenceCreateBody = /* @__PURE__ */ zod.objec.max(featureRequestsUpdateEvidenceCreateBodyEvidenceSourceMax).describe('Free-form name of the source where this evidence was recorded.'),source_url: zod- .url()- .max(featureRequestsUpdateEvidenceCreateBodySourceUrlMax)- .default(featureRequestsUpdateEvidenceCreateBodySourceUrlDefault)+ .union([+ zod+ .url()+ .max(featureRequestsUpdateEvidenceCreateBodySourceUrlOneMax)+ .default(featureRequestsUpdateEvidenceCreateBodySourceUrlOneDefault),+ zod.string().max(featureRequestsUpdateEvidenceCreateBodySourceUrlTwoMax),+ ])+ .optional().describe('Optional HTTP or HTTPS link to the source.'),requested_on: zod.iso.date().nullish().describe('Date the account made the request, or null when unknown.'),image_ids: zoddiff --git a/services/mcp/src/generated/dashboards/api.ts b/services/mcp/src/generated/dashboards/api.tsindex 6faf238f0f7b..99ad6a40c02a 100644--- a/services/mcp/src/generated/dashboards/api.ts+++ b/services/mcp/src/generated/dashboards/api.ts@@ -292,7 +292,15 @@ export const DashboardsPartialUpdateBody = /* @__PURE__ */ zodbreakdown_colors: zod.unknown().optional().describe('Custom color mapping for breakdown values.'),data_color_theme_id: zod.number().nullish().describe('ID of the color theme used for chart visualizations.'),tags: zod.array(zod.string()).optional(),- restriction_level: zod.union([zod.literal(21), zod.literal(37)]).optional(),+ restriction_level: zod+ .union([zod.literal(21), zod.literal(37)])+ .describe(+ '\* `21` - Everyone in the project can edit\n\* `37` - Only those invited to this dashboard can edit'+ )+ .optional()+ .describe(+ 'Who can edit this dashboard.\n\n\* `21` - Everyone in the project can edit\n\* `37` - Only those invited to this dashboard can edit'+ ),quick_filter_ids: zod.array(zod.string()).nullish()diff --git a/services/mcp/src/generated/data_quality/api.ts b/services/mcp/src/generated/data_quality/api.tsindex d66243a697ce..c5d3d5585a9c 100644--- a/services/mcp/src/generated/data_quality/api.ts+++ b/services/mcp/src/generated/data_quality/api.ts@@ -20,9 +20,11 @@ export const WarehouseSavedQueriesChecksCreateParams = /* @__PURE__ */ zod.objecsaved_query_id: zod.string(),})-export const warehouseSavedQueriesChecksCreateBodyNameMax = 128+export const warehouseSavedQueriesChecksCreateBodyNameOneMax = 128++export const warehouseSavedQueriesChecksCreateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseSavedQueriesChecksCreateBodyNameTwoMax = 0-export const warehouseSavedQueriesChecksCreateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseSavedQueriesChecksCreateBodyColumnNameMax = 400export const warehouseSavedQueriesChecksCreateBodyAiModelMax = 128@@ -33,9 +35,13 @@ export const warehouseSavedQueriesChecksCreateBodyConfidenceMax = 1export const WarehouseSavedQueriesChecksCreateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseSavedQueriesChecksCreateBodyNameMax)- .regex(warehouseSavedQueriesChecksCreateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseSavedQueriesChecksCreateBodyNameOneMax)+ .regex(warehouseSavedQueriesChecksCreateBodyNameOneRegExp),+ zod.string().max(warehouseSavedQueriesChecksCreateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),@@ -100,9 +106,11 @@ export const WarehouseSavedQueriesChecksPartialUpdateParams = /* @__PURE__ */ zosaved_query_id: zod.string(),})-export const warehouseSavedQueriesChecksPartialUpdateBodyNameMax = 128+export const warehouseSavedQueriesChecksPartialUpdateBodyNameOneMax = 128++export const warehouseSavedQueriesChecksPartialUpdateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseSavedQueriesChecksPartialUpdateBodyNameTwoMax = 0-export const warehouseSavedQueriesChecksPartialUpdateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseSavedQueriesChecksPartialUpdateBodyColumnNameMax = 400export const warehouseSavedQueriesChecksPartialUpdateBodyAiModelMax = 128@@ -113,9 +121,13 @@ export const warehouseSavedQueriesChecksPartialUpdateBodyConfidenceMax = 1export const WarehouseSavedQueriesChecksPartialUpdateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseSavedQueriesChecksPartialUpdateBodyNameMax)- .regex(warehouseSavedQueriesChecksPartialUpdateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseSavedQueriesChecksPartialUpdateBodyNameOneMax)+ .regex(warehouseSavedQueriesChecksPartialUpdateBodyNameOneRegExp),+ zod.string().max(warehouseSavedQueriesChecksPartialUpdateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),@@ -231,9 +243,11 @@ export const WarehouseTablesChecksCreateParams = /* @__PURE__ */ zod.object({table_id: zod.string(),})-export const warehouseTablesChecksCreateBodyNameMax = 128+export const warehouseTablesChecksCreateBodyNameOneMax = 128++export const warehouseTablesChecksCreateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseTablesChecksCreateBodyNameTwoMax = 0-export const warehouseTablesChecksCreateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseTablesChecksCreateBodyColumnNameMax = 400export const warehouseTablesChecksCreateBodyAiModelMax = 128@@ -244,9 +258,13 @@ export const warehouseTablesChecksCreateBodyConfidenceMax = 1export const WarehouseTablesChecksCreateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseTablesChecksCreateBodyNameMax)- .regex(warehouseTablesChecksCreateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseTablesChecksCreateBodyNameOneMax)+ .regex(warehouseTablesChecksCreateBodyNameOneRegExp),+ zod.string().max(warehouseTablesChecksCreateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),@@ -311,9 +329,11 @@ export const WarehouseTablesChecksPartialUpdateParams = /* @__PURE__ */ zod.objetable_id: zod.string(),})-export const warehouseTablesChecksPartialUpdateBodyNameMax = 128+export const warehouseTablesChecksPartialUpdateBodyNameOneMax = 128++export const warehouseTablesChecksPartialUpdateBodyNameOneRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')+export const warehouseTablesChecksPartialUpdateBodyNameTwoMax = 0-export const warehouseTablesChecksPartialUpdateBodyNameRegExp = new RegExp('^[A-Za-z][A-Za-z0-9_]\*$')export const warehouseTablesChecksPartialUpdateBodyColumnNameMax = 400export const warehouseTablesChecksPartialUpdateBodyAiModelMax = 128@@ -324,9 +344,13 @@ export const warehouseTablesChecksPartialUpdateBodyConfidenceMax = 1export const WarehouseTablesChecksPartialUpdateBody = /* @__PURE__ */ zod.object({name: zod- .string()- .max(warehouseTablesChecksPartialUpdateBodyNameMax)- .regex(warehouseTablesChecksPartialUpdateBodyNameRegExp)+ .union([+ zod+ .string()+ .max(warehouseTablesChecksPartialUpdateBodyNameOneMax)+ .regex(warehouseTablesChecksPartialUpdateBodyNameOneRegExp),+ zod.string().max(warehouseTablesChecksPartialUpdateBodyNameTwoMax),+ ]).optional().describe('Optional identifier-safe handle, unique per project. Omit to address the check by id.'),description: zod.string().optional().describe('Why this check exists and what a failure means.'),diff --git a/services/mcp/src/generated/early_access_features/api.ts b/services/mcp/src/generated/early_access_features/api.tsindex c78dcc24fd25..9b2b6694c812 100644--- a/services/mcp/src/generated/early_access_features/api.ts+++ b/services/mcp/src/generated/early_access_features/api.ts@@ -31,7 +31,9 @@ export const EarlyAccessFeatureCreateParams = /* @__PURE__ */ zod.object({export const earlyAccessFeatureCreateBodyNameMax = 200-export const earlyAccessFeatureCreateBodyDocumentationUrlMax = 800+export const earlyAccessFeatureCreateBodyDocumentationUrlOneMax = 800++export const earlyAccessFeatureCreateBodyDocumentationUrlTwoMax = 0export const EarlyAccessFeatureCreateBody = /* @__PURE__ */ zod.object({@@ -49,8 +51,10 @@ export const EarlyAccessFeatureCreateBody = /* @__PURE__ */ zod'Lifecycle stage. Valid values: draft, concept, alpha, beta, general-availability, archived. Moving to an active stage (alpha\/beta\/general-availability) enables the feature flag for opted-in users.\n\n\* `draft` - draft\n\* `concept` - concept\n\* `alpha` - alpha\n\* `beta` - beta\n\* `general-availability` - general availability\n\* `archived` - archived'),documentation_url: zod- .url()- .max(earlyAccessFeatureCreateBodyDocumentationUrlMax)+ .union([+ zod.url().max(earlyAccessFeatureCreateBodyDocumentationUrlOneMax),+ zod.string().max(earlyAccessFeatureCreateBodyDocumentationUrlTwoMax),+ ]).optional().describe('URL to external documentation for this feature. Shown to users in the opt-in UI.'),payload: zod.unknown().optional().describe('Arbitrary JSON metadata associated with this feature.'),@@ -84,7 +88,9 @@ export const EarlyAccessFeaturePartialUpdateParams = /* @__PURE__ */ zod.object(export const earlyAccessFeaturePartialUpdateBodyNameMax = 200-export const earlyAccessFeaturePartialUpdateBodyDocumentationUrlMax = 800+export const earlyAccessFeaturePartialUpdateBodyDocumentationUrlOneMax = 800++export const earlyAccessFeaturePartialUpdateBodyDocumentationUrlTwoMax = 0export const EarlyAccessFeaturePartialUpdateBody = /* @__PURE__ */ zod.object({@@ -107,8 +113,10 @@ export const EarlyAccessFeaturePartialUpdateBody = /* @__PURE__ */ zod'Lifecycle stage. Valid values: draft, concept, alpha, beta, general-availability, archived. Moving to an active stage (alpha\/beta\/general-availability) enables the feature flag for opted-in users.\n\n\* `draft` - draft\n\* `concept` - concept\n\* `alpha` - alpha\n\* `beta` - beta\n\* `general-availability` - general availability\n\* `archived` - archived'),documentation_url: zod- .url()- .max(earlyAccessFeaturePartialUpdateBodyDocumentationUrlMax)+ .union([+ zod.url().max(earlyAccessFeaturePartialUpdateBodyDocumentationUrlOneMax),+ zod.string().max(earlyAccessFeaturePartialUpdateBodyDocumentationUrlTwoMax),+ ]).optional().describe('URL to external documentation for this feature. Shown to users in the opt-in UI.'),})diff --git a/services/mcp/src/generated/error_tracking/api.ts b/services/mcp/src/generated/error_tracking/api.tsindex d9ad0471ebf3..82acdf09fb81 100644--- a/services/mcp/src/generated/error_tracking/api.ts+++ b/services/mcp/src/generated/error_tracking/api.ts@@ -8391,7 +8391,7 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.objectassignee: zod.union([zod.object({- id: zod.union([zod.string(), zod.number(), zod.null()]).describe('User ID or role UUID to filter by.'),+ id: zod.union([zod.string(), zod.number()]).describe('User ID or role UUID to filter by.'),type: zod.enum(['user', 'role']).describe('\* `user` - user\n\* `role` - role')diff --git a/services/mcp/src/generated/web_analytics/api.ts b/services/mcp/src/generated/web_analytics/api.tsindex c8887e08f695..dd486128fbda 100644--- a/services/mcp/src/generated/web_analytics/api.ts+++ b/services/mcp/src/generated/web_analytics/api.ts@@ -272,7 +272,9 @@ export const savedCreateBodyNameMax = 400export const savedCreateBodyUrlMax = 2000-export const savedCreateBodyDataUrlMax = 2000+export const savedCreateBodyDataUrlOneMax = 2000++export const savedCreateBodyDataUrlTwoMax = 0export const savedCreateBodyWidthsItemMin = 100export const savedCreateBodyWidthsItemMax = 3000@@ -288,9 +290,8 @@ export const SavedCreateBody = /* @__PURE__ */ zod.object({.max(savedCreateBodyUrlMax).describe('Exact page URL to render and overlay heatmap data on. Wildcards are not allowed.'),data_url: zod- .url()- .max(savedCreateBodyDataUrlMax)- .nullish()+ .union([zod.url().max(savedCreateBodyDataUrlOneMax).nullable(), zod.string().max(savedCreateBodyDataUrlTwoMax)])+ .optional().describe("URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted."),widths: zod.array(zod.number().min(savedCreateBodyWidthsItemMin).max(savedCreateBodyWidthsItemMax))@@ -342,7 +343,9 @@ export const savedPartialUpdateBodyNameMax = 400export const savedPartialUpdateBodyUrlMax = 2000-export const savedPartialUpdateBodyDataUrlMax = 2000+export const savedPartialUpdateBodyDataUrlOneMax = 2000++export const savedPartialUpdateBodyDataUrlTwoMax = 0export const savedPartialUpdateBodyWidthsItemMin = 100export const savedPartialUpdateBodyWidthsItemMax = 3000@@ -361,9 +364,11 @@ export const SavedPartialUpdateBody = /* @__PURE__ */ zod.object({.optional().describe('Exact page URL to render and overlay heatmap data on. Wildcards are not allowed.'),data_url: zod- .url()- .max(savedPartialUpdateBodyDataUrlMax)- .nullish()+ .union([+ zod.url().max(savedPartialUpdateBodyDataUrlOneMax).nullable(),+ zod.string().max(savedPartialUpdateBodyDataUrlTwoMax),+ ])+ .optional().describe("URL whose heatmap data is overlaid on the screenshot. Defaults to 'url' when omitted."),widths: zod.array(zod.number().min(savedPartialUpdateBodyWidthsItemMin).max(savedPartialUpdateBodyWidthsItemMax))diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-update.jsonindex 6d7d1c5c4066..4320b4bed1a1 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-update.json@@ -109,7 +109,8 @@"const": 37,"type": "number"}- ]+ ],+ "description": "Who can edit this dashboard.\n\n* `21` - Everyone in the project can edit\n* `37` - Only those invited to this dashboard can edit"},"tags": {"items": {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-create.jsonindex 123ed7d1b35c..27f682c0460a 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-create.json@@ -6,10 +6,18 @@"type": "string"},"documentation_url": {- "description": "URL to external documentation for this feature. Shown to users in the opt-in UI.",- "format": "uri",- "maxLength": 800,- "type": "string"+ "anyOf": [+ {+ "format": "uri",+ "maxLength": 800,+ "type": "string"+ },+ {+ "maxLength": 0,+ "type": "string"+ }+ ],+ "description": "URL to external documentation for this feature. Shown to users in the opt-in UI."},"feature_flag_id": {"description": "Optional ID of an existing feature flag to link. If omitted, a new flag is auto-created from the feature name. The flag must not already be linked to another feature, must not be group-based, and must not be multivariate.",diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-partial-update.jsonindex 43af96bce242..8556a8e939a6 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-partial-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-partial-update.json@@ -6,10 +6,18 @@"type": "string"},"documentation_url": {- "description": "URL to external documentation for this feature. Shown to users in the opt-in UI.",- "format": "uri",- "maxLength": 800,- "type": "string"+ "anyOf": [+ {+ "format": "uri",+ "maxLength": 800,+ "type": "string"+ },+ {+ "maxLength": 0,+ "type": "string"+ }+ ],+ "description": "URL to external documentation for this feature. Shown to users in the opt-in UI."},"id": {"description": "A UUID string identifying this early access feature.",diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.jsonindex c4f436728915..9a7656612a09 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json@@ -12,9 +12,6 @@},{"type": "number"- },- {- "type": "null"}],"description": "User ID or role UUID to filter by."diff --git a/uv.lock b/uv.lockindex c16b42a19ffa..a16c0a4abca7 100644--- a/uv.lock+++ b/uv.lock@@ -2091,14 +2091,14 @@ wheels = [[[package]]name = "djangorestframework"-version = "3.16.1"+version = "3.17.2"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "django" },]-sdist = { url = "https://files.pythonhosted.org/packages/8a/95/5376fe618646fde6899b3cdc85fd959716bb67542e273a76a80d9f326f27/djangorestframework-3.16.1.tar.gz", hash = "sha256:166809528b1aced0a17dc66c24492af18049f2c9420dbd0be29422029cfc3ff7", size = 1089735, upload-time = "2025-08-06T17:50:53.251Z" }+sdist = { url = "https://files.pythonhosted.org/packages/3b/35/c96055e700fdff25da3a7b7756cfd1d4dc54f38b9bc6d6c5e19e3a0fdc20/djangorestframework-3.17.2.tar.gz", hash = "sha256:89ed713b6dc83e1539f214b7d10808ae19bb8511004beba886225da6d5c9dafa", size = 906683, upload-time = "2026-08-05T07:47:22.5Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/b0/ce/bf8b9d3f415be4ac5588545b5fcdbbb841977db1c1d923f7568eeabe1689/djangorestframework-3.16.1-py3-none-any.whl", hash = "sha256:33a59f47fb9c85ede792cbf88bde71893bcda0667bc573f784649521f1102cec", size = 1080442, upload-time = "2025-08-06T17:50:50.667Z" },+ { url = "https://files.pythonhosted.org/packages/a2/46/c14108e400b208c394325eb63fbae06c81341b6447fa1a6f9da718b17fe7/djangorestframework-3.17.2-py3-none-any.whl", hash = "sha256:cb0546a7415d5b46c04e0f4fe0a54b2109f4fdd5e83ca773c8c6183a6493d042", size = 899109, upload-time = "2026-08-05T07:47:20.853Z" },][[package]]@@ -2250,7 +2250,7 @@ wheels = [[[package]]name = "drf-spectacular"-version = "0.29.0"+version = "0.30.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "django" },@@ -2260,9 +2260,9 @@ dependencies = [{ name = "pyyaml" },{ name = "uritemplate" },]-sdist = { url = "https://files.pythonhosted.org/packages/5e/0e/a4f50d83e76cbe797eda88fc0083c8ca970cfa362b5586359ef06ec6f70a/drf_spectacular-0.29.0.tar.gz", hash = "sha256:0a069339ea390ce7f14a75e8b5af4a0860a46e833fd4af027411a3e94fc1a0cc", size = 241722, upload-time = "2025-11-02T03:40:26.348Z" }+sdist = { url = "https://files.pythonhosted.org/packages/50/43/41d25039a6a53545420ebc98eb9f877ec9fe30c7bd03fefabcaf9b953af7/drf_spectacular-0.30.0.tar.gz", hash = "sha256:53e79e7ba00e240441b63c32273754a5368e4c2ab44a19f2595277cc1cd559c9", size = 252311, upload-time = "2026-07-06T11:29:46.264Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/32/d9/502c56fc3ca960075d00956283f1c44e8cafe433dada03f9ed2821f3073b/drf_spectacular-0.29.0-py3-none-any.whl", hash = "sha256:d1ee7c9535d89848affb4427347f7c4a22c5d22530b8842ef133d7b72e19b41a", size = 105433, upload-time = "2025-11-02T03:40:24.823Z" },+ { url = "https://files.pythonhosted.org/packages/c3/56/74dd7b45bbde6d24494220b98d6961cb1200b63a1800332b430daa2c4551/drf_spectacular-0.30.0-py3-none-any.whl", hash = "sha256:006cf5921ebe20a9bd24f7c846261ebbf78780be5961b0d6e87afaa82afd62ff", size = 111150, upload-time = "2026-07-06T11:29:45.12Z" },][[package]]@@ -5877,14 +5877,14 @@ requires-dist = [{ name = "django-scim2", specifier = "==0.23.0" },{ name = "django-structlog", extras = ["celery"], specifier = "~=10.1.0" },{ name = "django-two-factor-auth", specifier = "~=1.18.0" },- { name = "djangorestframework", specifier = "~=3.16.1" },+ { name = "djangorestframework", specifier = "~=3.17.2" },{ name = "djangorestframework-csv", specifier = "~=3.0.2" },{ name = "djangorestframework-dataclasses", specifier = "~=1.4.0" },{ name = "dlt", specifier = "==1.18.2" },{ name = "dnspython", specifier = "==2.6.1" },{ name = "drf-exceptions-hog", specifier = "==0.4.0" },{ name = "drf-extensions", specifier = "~=0.8.0" },- { name = "drf-spectacular", specifier = "~=0.29.0" },+ { name = "drf-spectacular", specifier = "~=0.30.0" },{ name = "duckdb", specifier = "~=1.5.2" },{ name = "elevenlabs", specifier = "~=2.1.0" },{ name = "fastavro", specifier = "~=1.12.0" },