{"version":3,"file":"beta-remove-read-replica.mjs","names":[],"sources":["../../src/actions/beta-remove-read-replica.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 SupabaseBetaRemoveReadReplicaInput = z.object({\n  ref: z.string().describe(\"The unique project reference ID (20 lowercase characters, e.g. 'abcdefghijklmnopqrst'). Found in project settings or URL.\"),\n  database_identifier: z.string().describe(\"The unique identifier of the read replica database to remove. Obtain from the project's database settings or read replica listing.\"),\n}).describe(\"Request schema for `BetaRemoveReadReplica`\");\nexport const SupabaseBetaRemoveReadReplicaOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for `BetaRemoveReadReplica`.\\n\\nPer Supabase Management API docs, this endpoint returns HTTP 201 Created with an empty JSON object ({}).\\nPreviously this response schema included a generic `data` dictionary, but the official docs indicate no fields\\nare present in the body, so the model is intentionally empty.  # Updated to match official docs; removed `data` field.\");\n\nexport const supabaseBetaRemoveReadReplica: AppAction<\n  typeof SupabaseBetaRemoveReadReplicaInput,\n  typeof SupabaseBetaRemoveReadReplicaOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_BETA_REMOVE_READ_REPLICA\", {\n  slug: \"supabase-beta-remove-read-replica\",\n  name: \"Remove read replica\",\n  description: \"Remove a read replica from a Supabase project (Pro plan or higher required). This beta endpoint initiates the removal of a specified read replica database. The operation is irreversible. Before removal, ensure all application traffic is redirected from the replica to the primary database. Requirements: - Project must be on Pro plan or higher - Bearer token with infra_read_replicas_write permission (FGA) - Valid read replica database identifier Note: Returns 201 on success with an empty response body.\",\n  input: SupabaseBetaRemoveReadReplicaInput,\n  output: SupabaseBetaRemoveReadReplicaOutput,\n});\n"],"mappings":";;;AAYA,MAAa,gCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;EACpJ,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;CAC/K,CAAC,CAAC,CAAC,SAAS,4CAWH;CACP,QAXiD,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kYAWpF;AACV,CAAC"}