{"version":3,"file":"beta-get-project-ssl-enforcement-config.cjs","names":["z","action"],"sources":["../../src/actions/beta-get-project-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 SupabaseBetaGetProjectSslEnforcementConfigInput = z.object({\n  ref: z.string().describe(\"The unique identifier of the Supabase project. This can typically be found in your project's dashboard URL (e.g., `https://supabase.com/dashboard/project/<project-ref>`).\"),\n}).describe(\"Request schema for `BetaGetProjectSslEnforcementConfig`\");\nconst SupabaseBetaGetProjectSslEnforcementConfig_CurrentConfigSchema = z.object({\n  database: z.boolean().describe(\"Whether SSL enforcement is enabled for database connections for this project (covers direct Postgres connections and the connection pooler/Supavisor; true = enforced, false = not enforced).\").nullable(),\n}).passthrough();\nexport const SupabaseBetaGetProjectSslEnforcementConfigOutput = z.object({\n  currentConfig: SupabaseBetaGetProjectSslEnforcementConfig_CurrentConfigSchema.nullable(),\n  appliedSuccessfully: z.boolean().describe(\"Indicates whether the current configuration has been applied successfully across the project (true = applied successfully, false = not yet fully applied).\").nullable(),\n}).passthrough().describe(\"Get project's SSL enforcement configuration response\\n\\nResponse returned by GET /v1/projects/{ref}/ssl-enforcement. Provides the current SSL enforcement configuration for the project.\");\n\nexport const supabaseBetaGetProjectSslEnforcementConfig: AppAction<\n  typeof SupabaseBetaGetProjectSslEnforcementConfigInput,\n  typeof SupabaseBetaGetProjectSslEnforcementConfigOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_BETA_GET_PROJECT_SSL_ENFORCEMENT_CONFIG\", {\n  slug: \"supabase-beta-get-project-ssl-enforcement-config\",\n  name: \"Get project SSL enforcement configuration\",\n  description: \"Retrieves the SSL enforcement configuration for a specified Supabase project, indicating if SSL connections are mandated for its database.\",\n  input: SupabaseBetaGetProjectSslEnforcementConfigInput,\n  output: SupabaseBetaGetProjectSslEnforcementConfigOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO,EACtE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,EACvM,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,iEAAiEA,IAAAA,EAAE,OAAO,EAC9E,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS,EAC3O,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,mDAAmDA,IAAAA,EAAE,OAAO;CACvE,eAAe,+DAA+D,SAAS;CACvF,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4JAA4J,CAAC,CAAC,SAAS;AACnN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0LAA0L;AAEpN,MAAa,6CAITC,eAAAA,OAAO,oDAAoD;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}