{"version":3,"file":"update-database-password.cjs","names":["z","action"],"sources":["../../src/actions/update-database-password.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 SupabaseUpdateDatabasePasswordInput = z.object({\n  ref: z.string().describe(\"The unique reference ID of the Supabase project.\"),\n  password: z.string().describe(\"The new database password to set. Must be at least 4 characters long.\"),\n}).describe(\"Request schema for updating a Supabase project's database password.\");\nexport const SupabaseUpdateDatabasePasswordOutput = z.object({\n  message: z.string().describe(\"Confirmation message indicating the password update status.\").nullable(),\n}).passthrough().describe(\"Response schema for updating a Supabase project's database password.\\n\\nReturns a success message confirming the password update.\");\n\nexport const supabaseUpdateDatabasePassword: AppAction<\n  typeof SupabaseUpdateDatabasePasswordInput,\n  typeof SupabaseUpdateDatabasePasswordOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_UPDATE_DATABASE_PASSWORD\", {\n  slug: \"supabase-update-database-password\",\n  name: \"Update database password\",\n  description: \"Updates the database password for a Supabase project. Use when needing to rotate credentials or recover database access.\",\n  input: SupabaseUpdateDatabasePasswordInput,\n  output: SupabaseUpdateDatabasePasswordOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;AACvG,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mIAAmI;AAE7J,MAAa,iCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}