{"version":3,"file":"create-bulk-secrets.mjs","names":[],"sources":["../../src/actions/create-bulk-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 SupabaseCreateBulkSecretsInput = z.object({\n  ref: z.string().describe(\"The unique reference ID (ref) of the Supabase project where secrets will be created.\"),\n  secrets: z.array(z.object({\n  name: z.string().describe(\"Secret name. Must not start with the SUPABASE_ prefix. Maximum length: 256 characters.\"),\n  value: z.string().describe(\"Secret value. Maximum length: 24576 characters.\"),\n}).passthrough().describe(\"Represents a single secret to be created.\")).describe(\"List of secrets to create. Each secret must have a unique name that doesn't start with SUPABASE_.\"),\n}).describe(\"Request schema for bulk creating secrets in a Supabase project.\");\nexport const SupabaseCreateBulkSecretsOutput = z.object({\n  message: z.string().default(\"Secrets created successfully\").describe(\"Success message confirming the secrets were created.\").nullable().optional(),\n  success: z.boolean().default(true).describe(\"Indicates whether the secrets were created successfully.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for bulk create secrets operation.\\n\\nSupabase API returns 201 Created on success with no response body.\");\n\nexport const supabaseCreateBulkSecrets: AppAction<\n  typeof SupabaseCreateBulkSecretsInput,\n  typeof SupabaseCreateBulkSecretsOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_CREATE_BULK_SECRETS\", {\n  slug: \"supabase-create-bulk-secrets\",\n  name: \"Bulk create secrets\",\n  description: \"Tool to bulk create secrets for a Supabase project. Use when you need to create multiple project secrets at once. Each secret name must not start with SUPABASE_.\",\n  input: SupabaseCreateBulkSecretsInput,\n  output: SupabaseCreateBulkSecretsOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EAC/G,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;GAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,mGAAmG;CACpL,CAAC,CAAC,CAAC,SAAS,iEAcH;CACP,QAd6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,8BAA8B,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0HAWhB;AACV,CAAC"}