{"version":3,"file":"get-database-branch-config.cjs","names":["z","action"],"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":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,EACvI,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACvI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC3J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACnM,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CAChM,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS;AACvP,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,kCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}