{"version":3,"file":"update-database-password.mjs","names":[],"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":";;;AAcA,MAAa,iCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBiD,EAAE,OAAO;EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACvG,CAAC,CAAC,CAAC,SAAS,qEAaH;CACP,QAbkD,EAAE,OAAO,EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mIAWhB;AACV,CAAC"}