{"version":3,"file":"list-branches.cjs","names":["z","action"],"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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H;CACvJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC3H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,6BAA6BA,IAAAA,EAAE,QAAQ;AAEpD,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}