{"version":3,"file":"get-project-readonly-mode-status.cjs","names":["z","action"],"sources":["../../src/actions/get-project-readonly-mode-status.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 SupabaseGetProjectReadonlyModeStatusInput = z.object({\n  ref: z.string().describe(\"Project reference ID, found in your project's dashboard URL (e.g., `https://supabase.com/dashboard/project/<project-ref>`).\"),\n}).describe(\"Schema for retrieving the read-only mode status of a Supabase project.\");\nexport const SupabaseGetProjectReadonlyModeStatusOutput = z.object({\n  enabled: z.boolean().describe(\"Whether read-only mode is currently enabled for the project.\").nullable(),\n  override_enabled: z.boolean().describe(\"Whether a temporary/manual override (that disables read-only mode) is currently enabled.\").nullable(),\n  override_active_until: z.string().describe(\"Timestamp indicating when the temporary override (if enabled) remains active until. Includes timezone information. If no override is active, some responses may use a sentinel value such as '1970-01-01 00:00:00+00'.\").nullable(),\n}).passthrough().describe(\"Response indicating a project's read-only mode status.\\n\\nMatches Supabase Management API GET /v1/projects/{ref}/readonly response.\");\n\nexport const supabaseGetProjectReadonlyModeStatus: AppAction<\n  typeof SupabaseGetProjectReadonlyModeStatusInput,\n  typeof SupabaseGetProjectReadonlyModeStatusOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_GET_PROJECT_READONLY_MODE_STATUS\", {\n  slug: \"supabase-get-project-readonly-mode-status\",\n  name: \"Get project's read-only mode status\",\n  description: \"Retrieves the read-only mode status for a specified Supabase project to check its operational state; this action does not change the read-only state.\",\n  input: SupabaseGetProjectReadonlyModeStatusInput,\n  output: SupabaseGetProjectReadonlyModeStatusOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,EACxJ,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC5I,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;AAChR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAAqI;AAE/J,MAAa,uCAITC,eAAAA,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}