{"version":3,"file":"get-project-readonly-mode-status.mjs","names":[],"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":";;;AAeA,MAAa,uCAIT,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBuD,EAAE,OAAO,EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,EACxJ,CAAC,CAAC,CAAC,SAAS,wEAeH;CACP,QAfwD,EAAE,OAAO;EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EAC5I,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;CAChR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qIAWhB;AACV,CAAC"}