{"version":3,"file":"get-database-branch-config.mjs","names":[],"sources":["../../src/actions/get-database-branch-config.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 SupabaseGetDatabaseBranchConfigInput = z.object({\n  branch_id: z.string().describe(\"Project reference (ref) for the database branch. Must be exactly 20 lowercase alphabetic characters.\"),\n}).describe(\"Request schema for `GetDatabaseBranchConfig`\");\nexport const SupabaseGetDatabaseBranchConfigOutput = z.object({\n  ref: z.string().describe(\"Project reference (project_id) associated with the database branch (unique reference identifier).\").nullable(),\n  status: z.string().describe(\"Current operational status of the branch services/configuration (for example, \\\"INACTIVE\\\" or \\\"ACTIVE_HEALTHY\\\").\").nullable(),\n  db_host: z.string().describe(\"Hostname for direct Postgres connections to the branch.\").nullable(),\n  db_pass: z.string().describe(\"Password for the default database user (used with db_user).\").nullable().optional(),\n  db_port: z.number().int().describe(\"Port number for Postgres connections to the branch.\").nullable(),\n  db_user: z.string().describe(\"Default database user for the branch (commonly \\\"postgres\\\").\").nullable().optional(),\n  jwt_secret: z.string().describe(\"JWT secret (signing key) configured for the branch; used for authentication and signing tokens.\").nullable().optional(),\n  postgres_engine: z.string().describe(\"PostgreSQL engine/build line used by the branch (for example, \\\"community\\\", \\\"aurora\\\"); this indicates the engine line, not the version number.\").nullable(),\n  release_channel: z.string().describe(\"Release channel of the branch environment (for example, \\\"stable\\\", \\\"beta\\\"); some responses may use \\\"ga\\\" to indicate General Availability.\").nullable(),\n  postgres_version: z.string().describe(\"PostgreSQL version used by the branch, typically the major version (for example, \\\"15\\\"); in some environments this may appear as a full build string (for example, \\\"supabase-postgres-15.x.x\\\").\").nullable(),\n}).passthrough().describe(\"Configuration details for a specific Supabase database branch (raw object response).\");\n\nexport const supabaseGetDatabaseBranchConfig: AppAction<\n  typeof SupabaseGetDatabaseBranchConfigInput,\n  typeof SupabaseGetDatabaseBranchConfigOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_GET_DATABASE_BRANCH_CONFIG\", {\n  slug: \"supabase-get-database-branch-config\",\n  name: \"Get database branch config\",\n  description: \"Retrieves the read-only configuration and status for a Supabase database branch, typically for monitoring or verifying its settings.\",\n  input: SupabaseGetDatabaseBranchConfigInput,\n  output: SupabaseGetDatabaseBranchConfigOutput,\n});\n"],"mappings":";;;AAsBA,MAAa,kCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBkD,EAAE,OAAO,EAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,EACvI,CAAC,CAAC,CAAC,SAAS,8CAsBH;CACP,QAtBmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC3J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EACnM,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;EAChM,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS;CACvP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAWhB;AACV,CAAC"}