{"version":3,"file":"delete-custom-hostname-config.cjs","names":["z","action"],"sources":["../../src/actions/delete-custom-hostname-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 SupabaseDeleteCustomHostnameConfigInput = z.object({\n  ref: z.string().describe(\"The unique reference ID of the Supabase project for which the custom hostname configuration will be deleted.\"),\n}).describe(\"Request schema for deleting a project's custom hostname configuration.\");\nexport const SupabaseDeleteCustomHostnameConfigOutput = z.object({\n  message: z.string().describe(\"Success or informational message.\").nullable().optional(),\n  success: z.boolean().describe(\"Indicates whether the deletion was successful.\").nullable().optional(),\n  error_message: z.string().describe(\"Error message if the deletion failed or feature is not available.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting a project's custom hostname configuration.\\n\\nAccording to Supabase Management API, a successful deletion returns an empty JSON object `{}`.\\nError responses include an error_message field.\");\n\nexport const supabaseDeleteCustomHostnameConfig: AppAction<\n  typeof SupabaseDeleteCustomHostnameConfigInput,\n  typeof SupabaseDeleteCustomHostnameConfigOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_DELETE_CUSTOM_HOSTNAME_CONFIG\", {\n  slug: \"supabase-delete-custom-hostname-config\",\n  name: \"Delete custom hostname config\",\n  description: \"Deletes an active custom hostname configuration for the project identified by `ref`, reverting to the default Supabase-provided hostname; this action immediately makes the project inaccessible via the custom domain and requires subsequent updates to client, OAuth, and DNS settings.\",\n  input: SupabaseDeleteCustomHostnameConfigInput,\n  output: SupabaseDeleteCustomHostnameConfigOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,EACzI,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4NAA4N;AAEtP,MAAa,qCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}