{"version":3,"file":"alpha-delete-api-key.cjs","names":["z","action"],"sources":["../../src/actions/alpha-delete-api-key.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 SupabaseAlphaDeleteApiKeyInput = z.object({\n  id: z.string().describe(\"The unique identifier of the API key that needs to be deleted from the project.\"),\n  ref: z.string().describe(\"The unique reference ID of the Supabase project from which the API key is to be deleted.\"),\n}).describe(\"Request schema for `AlphaDeleteApiKey`\");\nexport const SupabaseAlphaDeleteApiKeyOutput = z.object({\n  id: z.string().describe(\"Unique identifier of the API key.\").nullable(),\n  hash: z.string().describe(\"Server-side cryptographic hash of the API key value (the plaintext key is not stored).\").nullable(),\n  name: z.string().describe(\"Human-readable name of the API key.\").nullable(),\n  type: z.string().describe(\"Type of the API key (e.g., legacy for JWT-based anon/service_role keys, or other platform key types).\").nullable(),\n  prefix: z.string().describe(\"Public, non-sensitive prefix associated with the API key to help identify it without exposing the full value.\").nullable(),\n  api_key: z.string().describe(\"The full API key value. Returned only when the reveal=true query parameter is provided and permitted. Sensitive; may be omitted for security.\").nullable().optional(),\n  updated_at: z.string().describe(\"ISO 8601 timestamp when the API key was last updated.\").nullable(),\n  description: z.string().describe(\"Optional human-readable description of the API key. May be empty or omitted.\").nullable().optional(),\n  inserted_at: z.string().describe(\"ISO 8601 timestamp when the API key was created.\").nullable(),\n  secret_jwt_template: z.record(z.string(), z.unknown()).describe(\"Optional object of JWT claims template associated with secret JWT-style keys. Keys and structure are implementation-defined (for example, may include role).\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `AlphaDeleteApiKey`.\\n\\nMatches the API key object returned by the Management API when deleting an API key.\\nThe `api_key` value is only returned when the `reveal=true` query parameter is provided and permitted.\");\n\nexport const supabaseAlphaDeleteApiKey: AppAction<\n  typeof SupabaseAlphaDeleteApiKeyInput,\n  typeof SupabaseAlphaDeleteApiKeyOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_ALPHA_DELETE_API_KEY\", {\n  slug: \"supabase-alpha-delete-api-key\",\n  name: \"Delete an API key from the project\",\n  description: \"Permanently deletes a specific API key (identified by `id`) from a Supabase project (identified by `ref`), revoking its access.\",\n  input: SupabaseAlphaDeleteApiKeyInput,\n  output: SupabaseAlphaDeleteApiKeyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACzG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;AACrH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC7H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC5I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACtJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClM,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC9F,qBAAqBA,IA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