{"version":3,"file":"push-branch.mjs","names":[],"sources":["../../src/actions/push-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 SupabasePushBranchInput = z.object({\n  branch_id_or_ref: z.string().describe(\"The unique identifier or reference of the database branch to push.\"),\n  migration_version: z.string().describe(\"Optional migration version to push to the branch. Format: timestamp like '20260216000000'.\").optional(),\n}).describe(\"Request schema for pushing a database branch.\");\nexport const SupabasePushBranchOutput = z.object({\n  message: z.string().describe(\"Confirmation message indicating the push was initiated successfully (value is \\\"ok\\\").\").nullable(),\n  workflow_run_id: z.string().describe(\"Identifier of the workflow run triggered to perform the push operation.\").nullable(),\n}).passthrough().describe(\"Response body for POST /v1/branches/{branch_id_or_ref}/push.\\n\\nReturns the identifier of the workflow run triggered to perform the push operation\\nand a confirmation message.\");\n\nexport const supabasePushBranch: AppAction<\n  typeof SupabasePushBranchInput,\n  typeof SupabasePushBranchOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_PUSH_BRANCH\", {\n  slug: \"supabase-push-branch\",\n  name: \"Push a database branch\",\n  description: \"Pushes a database branch, applying migrations and changes to the specified branch. Use when you need to deploy schema changes or migrations to a database branch.\",\n  input: SupabasePushBranchInput,\n  output: SupabasePushBranchOutput,\n});\n"],"mappings":";;;AAeA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBqC,EAAE,OAAO;EAC9C,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC1G,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAChJ,CAAC,CAAC,CAAC,SAAS,+CAcH;CACP,QAdsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EAChI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iLAWhB;AACV,CAAC"}