{"version":3,"file":"list-migration-history.cjs","names":["z","action"],"sources":["../../src/actions/list-migration-history.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 SupabaseListMigrationHistoryInput = z.object({\n  ref: z.string().describe(\"The unique reference ID (20 alphanumeric characters) of your Supabase project. You can find this in your project's dashboard URL or by calling the List All Projects action. The project must belong to the authenticated user.\"),\n}).describe(\"Request schema for listing applied migration versions.\");\nexport const SupabaseListMigrationHistoryOutput = z.unknown();\n\nexport const supabaseListMigrationHistory: AppAction<\n  typeof SupabaseListMigrationHistoryInput,\n  typeof SupabaseListMigrationHistoryOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_LIST_MIGRATION_HISTORY\", {\n  slug: \"supabase-list-migration-history\",\n  name: \"List migration history\",\n  description: \"Retrieves the list of applied database migration versions for a Supabase project. Use this to track which migrations have been applied to the project's database. This is a read-only operation that requires the project reference ID.\",\n  input: SupabaseListMigrationHistoryInput,\n  output: SupabaseListMigrationHistoryOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iOAAiO,EAC5P,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,qCAAqCA,IAAAA,EAAE,QAAQ;AAE5D,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}