{"version":3,"file":"reset-database-branch.mjs","names":[],"sources":["../../src/actions/reset-database-branch.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 SupabaseResetDatabaseBranchInput = z.object({\n  branch_id: z.string().describe(\"The unique identifier of the database branch to reset.\"),\n}).describe(\"Request schema for `ResetDatabaseBranch`\");\nexport const SupabaseResetDatabaseBranchOutput = z.object({\n  message: z.string().describe(\"Human-readable status message indicating the outcome (typically \\\"ok\\\" on success).\").nullable(),\n  workflow_run_id: z.string().describe(\"Identifier of the workflow run triggered to perform the reset operation.\").nullable(),\n}).passthrough().describe(\"Response body for POST /v1/branches/{branch_id_or_ref}/reset.\\n\\nReturns a flat object containing the identifier of the workflow run triggered to\\nperform the reset operation and a human-readable status message (typically \\\"ok\\\").\");\n\nexport const supabaseResetDatabaseBranch: AppAction<\n  typeof SupabaseResetDatabaseBranchInput,\n  typeof SupabaseResetDatabaseBranchOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_RESET_DATABASE_BRANCH\", {\n  slug: \"supabase-reset-database-branch\",\n  name: \"Reset a database branch\",\n  description: \"Resets an existing Supabase database branch, identified by `branch_id`, to its initial clean state, irreversibly deleting all its current data and schema changes.\",\n  input: SupabaseResetDatabaseBranchInput,\n  output: SupabaseResetDatabaseBranchOutput,\n});\n"],"mappings":";;;AAcA,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB8C,EAAE,OAAO,EACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,EACzF,CAAC,CAAC,CAAC,SAAS,0CAcH;CACP,QAd+C,EAAE,OAAO;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC7H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wOAWhB;AACV,CAAC"}