{"version":3,"file":"delete-function.cjs","names":["z","action"],"sources":["../../src/actions/delete-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 SupabaseDeleteFunctionInput = z.object({\n  ref: z.string().describe(\"The unique identifier of the Supabase project from which the function will be deleted.\"),\n  function_slug: z.string().describe(\"The unique identifier (slug) of the Edge Function to be deleted. This is typically the name given to the function upon creation.\"),\n}).describe(\"Request schema for deleting a specific Edge Function from a Supabase project.\");\nexport const SupabaseDeleteFunctionOutput = z.object({}).describe(\"Response schema for `DeleteFunction`.\\n\\nSupabase Management API returns an empty JSON object {} on successful deletion.\\nThis model intentionally has no fields and forbids extra properties to exactly match the API.\");\n\nexport const supabaseDeleteFunction: AppAction<\n  typeof SupabaseDeleteFunctionInput,\n  typeof SupabaseDeleteFunctionOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_DELETE_FUNCTION\", {\n  slug: \"supabase-delete-function\",\n  name: \"Delete an edge function by slug\",\n  description: \"Permanently deletes a specific Edge Function (by `function_slug`) from a Supabase project (by `ref`); this action is irreversible and requires prior existence of both project and function.\",\n  input: SupabaseDeleteFunctionInput,\n  output: SupabaseDeleteFunctionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACjH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;AACvK,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yNAAyN;AAE3R,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}