{"version":3,"file":"list-branches.mjs","names":[],"sources":["../../src/actions/list-branches.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 SupabaseListBranchesInput = z.object({\n  ref: z.string().describe(\"The unique reference identifier (project ref) of the Supabase project. This ID can be found in your project's dashboard URL.\"),\n  limit: z.number().int().default(25).describe(\"Maximum number of branches to return per request. Defaults to 25.\").optional(),\n  offset: z.number().int().describe(\"Number of branches to skip before returning results. Use for pagination.\").optional(),\n}).describe(\"Request schema for listing all database branches of a Supabase project.\");\nexport const SupabaseListBranchesOutput = z.unknown();\n\nexport const supabaseListBranches: AppAction<\n  typeof SupabaseListBranchesInput,\n  typeof SupabaseListBranchesOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_LIST_BRANCHES\", {\n  slug: \"supabase-list-branches\",\n  name: \"List database branches\",\n  description: \"Lists all database branches for a specified Supabase project, providing information about each branch's status, configuration, and metadata. Use this action when you need to view all branches in a project, check branch statuses, or identify available branches before performing operations. Database branches are useful for isolated development and testing of schema changes.\",\n  input: SupabaseListBranchesInput,\n  output: SupabaseListBranchesOutput,\n});\n"],"mappings":";;;AAaA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H;EACvJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,yEAWH;CACP,QAXwC,EAAE,QAWlC;AACV,CAAC"}