{"version":3,"file":"beta-enable-database-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/beta-enable-database-webhooks.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 SupabaseBetaEnableDatabaseWebhooksInput = z.object({\n  ref: z.string().describe(\"The unique identifier for the Supabase project.\"),\n}).describe(\"Request schema for `BetaEnableDatabaseWebhooks`\");\nexport const SupabaseBetaEnableDatabaseWebhooksOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for `BetaEnableDatabaseWebhooks`.\\n\\nOfficial Supabase docs indicate a 201 response with an empty JSON object ({}),\\nso this model intentionally has no fields. The previous `data` field was removed\\nto match the documented empty response body.\");\n\nexport const supabaseBetaEnableDatabaseWebhooks: AppAction<\n  typeof SupabaseBetaEnableDatabaseWebhooksInput,\n  typeof SupabaseBetaEnableDatabaseWebhooksOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_BETA_ENABLE_DATABASE_WEBHOOKS\", {\n  slug: \"supabase-beta-enable-database-webhooks\",\n  name: \"Enable project database webhooks\",\n  description: \"Enables database webhooks for the Supabase project `ref`, triggering real-time notifications for INSERT, UPDATE, or DELETE events.\",\n  input: SupabaseBetaEnableDatabaseWebhooksInput,\n  output: SupabaseBetaEnableDatabaseWebhooksOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAC5E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,2CAA2CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qQAAqQ;AAExW,MAAa,qCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}