{"version":3,"file":"list-project-secrets.cjs","names":["z","action"],"sources":["../../src/actions/list-project-secrets.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 SupabaseListProjectSecretsInput = z.object({\n  ref: z.string().describe(\"The unique reference ID (ref) of the Supabase project whose secrets you want to list. This is a 20-character alphanumeric identifier visible in your project dashboard URL.\"),\n}).describe(\"Request schema for listing all secrets in a Supabase project.\");\nconst SupabaseListProjectSecrets_SecretEntrySchema = z.object({\n  name: z.string().describe(\"The name/key of the secret.\").nullable(),\n  value: z.string().describe(\"The value of the secret. Note that secret values may be masked or partially redacted in the response for security reasons.\").nullable(),\n  updated_at: z.string().describe(\"ISO 8601 timestamp (UTC) indicating when the secret was last updated.\").nullable(),\n}).passthrough().describe(\"Represents a single secret in the Supabase project.\");\nexport const SupabaseListProjectSecretsOutput = z.object({\n  secrets: z.array(SupabaseListProjectSecrets_SecretEntrySchema).describe(\"Array of secret entries for the specified project.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing the list of secrets for the project.\");\n\nexport const supabaseListProjectSecrets: AppAction<\n  typeof SupabaseListProjectSecretsInput,\n  typeof SupabaseListProjectSecretsOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_LIST_PROJECT_SECRETS\", {\n  slug: \"supabase-list-project-secrets\",\n  name: \"List project secrets\",\n  description: \"Retrieves all secrets (environment variables) for a Supabase project by its reference ID. Use this action when you need to view the secrets configured for a project, such as API keys, database URLs, or other environment variables. Note that secret values in the response may be masked for security reasons.\",\n  input: SupabaseListProjectSecretsInput,\n  output: SupabaseListProjectSecretsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,EACxM,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CAClK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}