{"version":3,"file":"beta-activate-vanity-subdomain.mjs","names":[],"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":";;;AAgBA,MAAa,sCAIT,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsD,EAAE,OAAO;EAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACvE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;CACtL,CAAC,CAAC,CAAC,SAAS,gEAeH;CACP,QAfuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gIAWhB;AACV,CAAC"}