{"version":3,"file":"beta-get-project-pgsodium-config.mjs","names":[],"sources":["../../src/actions/beta-get-project-pgsodium-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 SupabaseBetaGetProjectPgsodiumConfigInput = z.object({\n  ref: z.string().describe(\"The unique identifier of the Supabase project.\"),\n}).describe(\"Request schema for `BetaGetProjectPgsodiumConfig`\");\nexport const SupabaseBetaGetProjectPgsodiumConfigOutput = z.object({\n  root_key: z.string().describe(\"Root encryption key for the project's pgsodium configuration. Hex-encoded 32-byte (64-character) PGSodium root key for the project.\").nullable(),\n}).passthrough().describe(\"Response schema for `BetaGetProjectPgsodiumConfig`.\\n\\nThe endpoint returns the PGSodium configuration object directly with the root key, not wrapped in a `data` field.\");\n\nexport const supabaseBetaGetProjectPgsodiumConfig: AppAction<\n  typeof SupabaseBetaGetProjectPgsodiumConfigInput,\n  typeof SupabaseBetaGetProjectPgsodiumConfigOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_BETA_GET_PROJECT_PGSODIUM_CONFIG\", {\n  slug: \"supabase-beta-get-project-pgsodium-config\",\n  name: \"Get project pgsodium config\",\n  description: \"Retrieves the PGSodium configuration, including the root encryption key, for an existing Supabase project identified by its `ref`.\",\n  input: SupabaseBetaGetProjectPgsodiumConfigInput,\n  output: SupabaseBetaGetProjectPgsodiumConfigOutput,\n});\n"],"mappings":";;;AAaA,MAAa,uCAIT,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuD,EAAE,OAAO,EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC3E,CAAC,CAAC,CAAC,SAAS,mDAaH;CACP,QAbwD,EAAE,OAAO,EACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS,EAChL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0KAWhB;AACV,CAAC"}