{"version":3,"file":"delete-project.cjs","names":["z","action"],"sources":["../../src/actions/delete-project.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 SupabaseDeleteProjectInput = z.object({\n  ref: z.string().describe(\"Project reference identifier (unique identifier for the project). This is typically a 20-character alphanumeric string found in your project URL or via the List All Projects endpoint.\"),\n}).describe(\"Request to delete a Supabase project.\\n\\nPermanently deletes the specified project and all associated resources.\");\nexport const SupabaseDeleteProjectOutput = z.object({\n  id: z.number().int().describe(\"Internal numeric identifier of the deleted project.\").nullable(),\n  ref: z.string().describe(\"Project reference identifier (same as the input ref parameter).\").nullable(),\n  name: z.string().describe(\"Name of the deleted project.\").nullable(),\n}).passthrough().describe(\"Response returned after successfully deleting a Supabase project.\\n\\nContains the deleted project information including id, name, and reference.\");\n\nexport const supabaseDeleteProject: AppAction<\n  typeof SupabaseDeleteProjectInput,\n  typeof SupabaseDeleteProjectOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_DELETE_PROJECT\", {\n  slug: \"supabase-delete-project\",\n  name: \"Delete a project\",\n  description: \"Permanently and irreversibly deletes a Supabase project and all associated resources, including databases, storage, and configurations. This action is irreversible — the project cannot be recovered once deleted. Use when you need to completely remove a project from your organization.\",\n  input: SupabaseDeleteProjectInput,\n  output: SupabaseDeleteProjectOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,EACpN,CAAC,CAAC,CAAC,SAAS,kHAAkH;AAC9H,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC9F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kJAAkJ;AAE5K,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}