{"version":3,"file":"delete-secrets.cjs","names":["z","action"],"sources":["../../src/actions/delete-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 SupabaseDeleteSecretsInput = z.object({\n  ref: z.string().describe(\"The unique reference ID (ref) of the Supabase project whose secrets should be deleted.\"),\n  secret_names: z.array(z.string()).describe(\"List of secret names to delete. Each name must match an existing secret in the project.\"),\n}).describe(\"Request schema for bulk deleting secrets from a Supabase project.\");\nexport const SupabaseDeleteSecretsOutput = z.object({\n  message: z.string().describe(\"Optional message from the API about the deletion operation.\").nullable().optional(),\n  success: z.boolean().default(true).describe(\"Indicates whether the bulk delete operation completed successfully.\").nullable().optional(),\n}).passthrough().describe(\"Response from bulk deleting secrets from a Supabase project.\\n\\nThe API typically returns a 200 status with an empty response or success indicator\\nwhen secrets are deleted successfully.\");\n\nexport const supabaseDeleteSecrets: AppAction<\n  typeof SupabaseDeleteSecretsInput,\n  typeof SupabaseDeleteSecretsOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_DELETE_SECRETS\", {\n  slug: \"supabase-delete-secrets\",\n  name: \"Bulk delete secrets\",\n  description: \"Deletes one or more secrets from a Supabase project by their names. This action is irreversible - deleted secrets cannot be recovered. Use this action when you need to remove environment variables or configuration secrets that are no longer needed or should be replaced. Supports both single and bulk deletion operations through the same endpoint.\",\n  input: SupabaseDeleteSecretsInput,\n  output: SupabaseDeleteSecretsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACjH,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACtI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4LAA4L;AAEtN,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}