{"version":3,"file":"update-ssl-enforcement-config.cjs","names":["z","action"],"sources":["../../src/actions/update-ssl-enforcement-config.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 SupabaseUpdateSslEnforcementConfigInput = z.object({\n  ref: z.string().describe(\"The unique identifier of the Supabase project.\"),\n  requestedConfig__database: z.boolean().describe(\"Desired SSL enforcement state for the project's database (`true` to enable, `false` to disable).\").optional(),\n}).describe(\"Request schema for `UpdateSslEnforcementConfig`\");\nconst SupabaseUpdateSslEnforcementConfig_CurrentConfigSchema = z.object({\n  database: z.boolean().describe(\"Whether SSL enforcement is enabled for database connections (includes direct Postgres and the connection pooler).\").nullable(),\n}).passthrough().describe(\"Represents the current SSL enforcement settings for the database.\");\nexport const SupabaseUpdateSslEnforcementConfigOutput = z.object({\n  currentConfig: SupabaseUpdateSslEnforcementConfig_CurrentConfigSchema.nullable(),\n  appliedSuccessfully: z.boolean().describe(\"Indicates whether the requested SSL enforcement configuration update was applied successfully.\").nullable(),\n}).passthrough().describe(\"Response schema for `UpdateSslEnforcementConfig`\");\n\nexport const supabaseUpdateSslEnforcementConfig: AppAction<\n  typeof SupabaseUpdateSslEnforcementConfigInput,\n  typeof SupabaseUpdateSslEnforcementConfigOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_UPDATE_SSL_ENFORCEMENT_CONFIG\", {\n  slug: \"supabase-update-ssl-enforcement-config\",\n  name: \"Update SSL enforcement config\",\n  description: \"Updates the SSL enforcement configuration (enable/disable) for a specified Supabase project's database.\",\n  input: SupabaseUpdateSslEnforcementConfigInput,\n  output: SupabaseUpdateSslEnforcementConfigOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACzE,2BAA2BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,yDAAyDA,IAAAA,EAAE,OAAO,EACtE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS,EAC/J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAC7F,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,eAAe,uDAAuD,SAAS;CAC/E,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,qCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}