{"version":3,"file":"delete-edge-function.cjs","names":["z","action"],"sources":["../../src/actions/delete-edge-function.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 SupabaseDeleteEdgeFunctionInput = z.object({\n  ref: z.string().describe(\"Project ref - unique identifier for the Supabase project.\"),\n  function_slug: z.string().describe(\"Function slug - URL-friendly identifier of the Edge Function to delete.\"),\n}).describe(\"Request schema for deleting an Edge Function from a Supabase project.\");\nexport const SupabaseDeleteEdgeFunctionOutput = z.object({\n  success: z.boolean().default(true).describe(\"Indicates the function was successfully deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting an Edge Function.\\n\\nThe API returns an empty 200 response on successful deletion.\");\n\nexport const supabaseDeleteEdgeFunction: AppAction<\n  typeof SupabaseDeleteEdgeFunctionInput,\n  typeof SupabaseDeleteEdgeFunctionOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_DELETE_EDGE_FUNCTION\", {\n  slug: \"supabase-delete-edge-function\",\n  name: \"Delete edge function\",\n  description: \"Deletes an Edge Function from a Supabase project by its slug. Use this action when you need to permanently remove a deployed Edge Function that is no longer needed or should be replaced. This action is irreversible — the function cannot be recovered once deleted, though you can redeploy it from source if needed.\",\n  input: SupabaseDeleteEdgeFunctionInput,\n  output: SupabaseDeleteEdgeFunctionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;AAC9G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iHAAiH;AAE3I,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}