{"version":3,"file":"create-bulk-secrets.cjs","names":["z","action"],"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":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CAC/G,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EAClH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,mGAAmG;AACpL,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,8BAA8B,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0HAA0H;AAEpJ,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}