{"version":3,"file":"beta-get-vanity-subdomain-config.cjs","names":["z","action"],"sources":["../../src/actions/beta-get-vanity-subdomain-config.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 SupabaseBetaGetVanitySubdomainConfigInput = z.object({\n  ref: z.string().describe(\"The unique reference ID of the Supabase project for which to fetch the vanity subdomain configuration.\"),\n}).describe(\"Retrieves the current vanity subdomain configuration for a Supabase project.\");\nexport const SupabaseBetaGetVanitySubdomainConfigOutput = z.object({\n  status: z.string().describe(\"Current status of the project's vanity subdomain configuration. Example: 'not-used' indicates that no vanity subdomain is configured.\").nullable(),\n  custom_domain: z.string().describe(\"The vanity subdomain currently associated with the project (e.g., 'my-brand.supabase.co'). May be null/empty if no vanity subdomain is configured.\").nullable().optional(),\n}).passthrough().describe(\"The current vanity subdomain configuration for a Supabase project.\\n\\nMatches Management API: returns an object with `status` and `custom_domain` fields (no wrapper).\");\n\nexport const supabaseBetaGetVanitySubdomainConfig: AppAction<\n  typeof SupabaseBetaGetVanitySubdomainConfigInput,\n  typeof SupabaseBetaGetVanitySubdomainConfigOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_BETA_GET_VANITY_SUBDOMAIN_CONFIG\", {\n  slug: \"supabase-beta-get-vanity-subdomain-config\",\n  name: \"Get current vanity subdomain config\",\n  description: \"Fetches the current vanity subdomain configuration, including its status and custom domain name, for a Supabase project identified by its reference ID.\",\n  input: SupabaseBetaGetVanitySubdomainConfigInput,\n  output: SupabaseBetaGetVanitySubdomainConfigOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,EACnI,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC9K,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wKAAwK;AAElM,MAAa,uCAITC,eAAAA,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}