{"version":3,"file":"update-project-legacy-api-keys.mjs","names":[],"sources":["../../src/actions/update-project-legacy-api-keys.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 SupabaseUpdateProjectLegacyApiKeysInput = z.object({\n  ref: z.string().describe(\"The unique reference ID (20 alphanumeric characters) of your Supabase project. You can find this in your project's dashboard URL or by calling the List All Projects action.\"),\n  enabled: z.boolean().describe(\"Enable or disable JWT-based legacy API keys (anon, service_role). Set to true to enable, false to disable.\"),\n}).describe(\"Request schema for updating legacy API keys status.\");\nexport const SupabaseUpdateProjectLegacyApiKeysOutput = z.object({\n  enabled: z.boolean().describe(\"Current status of legacy API keys. True if enabled, false if disabled.\").nullable(),\n}).passthrough().describe(\"Response schema containing the updated legacy API keys status.\");\n\nexport const supabaseUpdateProjectLegacyApiKeys: AppAction<\n  typeof SupabaseUpdateProjectLegacyApiKeysInput,\n  typeof SupabaseUpdateProjectLegacyApiKeysOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_UPDATE_PROJECT_LEGACY_API_KEYS\", {\n  slug: \"supabase-update-project-legacy-api-keys\",\n  name: \"Update project legacy API keys\",\n  description: \"Tool to disable or re-enable JWT-based legacy API keys (anon, service_role) for a Supabase project. Use when you need to toggle legacy API key access for security or migration purposes. Note: This API endpoint may be removed in the future - check for HTTP 404 Not Found if the endpoint is no longer available.\",\n  input: SupabaseUpdateProjectLegacyApiKeysInput,\n  output: SupabaseUpdateProjectLegacyApiKeysOutput,\n});\n"],"mappings":";;;AAcA,MAAa,qCAIT,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqD,EAAE,OAAO;EAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K;EACvM,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4GAA4G;CAC5I,CAAC,CAAC,CAAC,SAAS,qDAaH;CACP,QAbsD,EAAE,OAAO,EAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;AACV,CAAC"}