{"version":3,"file":"beta-activate-vanity-subdomain.cjs","names":["z","action"],"sources":["../../src/actions/beta-activate-vanity-subdomain.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { supabase } from \"../app\";\n\nexport const SupabaseBetaActivateVanitySubdomainInput = z.object({\n  ref: z.string().describe(\"Unique reference ID of the Supabase project.\"),\n  vanity_subdomain: z.string().describe(\"Vanity subdomain to activate (e.g., 'my-example-brand'). Must be 1-63 alphanumeric characters or hyphens; cannot start or end with a hyphen.\"),\n}).describe(\"Request to activate a vanity subdomain for a Supabase project.\");\nexport const SupabaseBetaActivateVanitySubdomainOutput = z.object({\n  message: z.string().describe(\"Additional information about the operation result.\").nullable().optional(),\n  success: z.boolean().default(true).describe(\"Indicates whether the operation was successful.\").nullable().optional(),\n  custom_domain: z.string().describe(\"The domain now configured for the project after activation (the project's vanity subdomain, e.g., 'my-example-brand.supabase.co').\").nullable().optional(),\n}).passthrough().describe(\"Response body returned when activating a vanity subdomain for a project via POST /v1/projects/{ref}/vanity-subdomain/activate.\");\n\nexport const supabaseBetaActivateVanitySubdomain: AppAction<\n  typeof SupabaseBetaActivateVanitySubdomainInput,\n  typeof SupabaseBetaActivateVanitySubdomainOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_BETA_ACTIVATE_VANITY_SUBDOMAIN\", {\n  slug: \"supabase-beta-activate-vanity-subdomain\",\n  name: \"Activate vanity subdomain for project\",\n  description: \"Activates a vanity subdomain for the specified Supabase project (e.g., 'my-brand.supabase.co'). Important notes: - Vanity subdomains require a paid plan (Pro/Team/Enterprise) - Usage of vanity subdomains and custom domains is mutually exclusive - After activation, your project's auth services will no longer work on the original {project-ref}.supabase.co hostname - Schedule a downtime window to update client code and OAuth providers before activating\",\n  input: SupabaseBetaActivateVanitySubdomainInput,\n  output: SupabaseBetaActivateVanitySubdomainOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACvE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;AACtL,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gIAAgI;AAE1J,MAAa,sCAITC,eAAAA,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}