{"version":3,"file":"push-branch.cjs","names":["z","action"],"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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC1G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAChI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iLAAiL;AAE3M,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}