{"version":3,"file":"delete-edge-function.mjs","names":[],"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":";;;AAcA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC9G,CAAC,CAAC,CAAC,SAAS,uEAaH;CACP,QAb8C,EAAE,OAAO,EACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iHAWhB;AACV,CAAC"}