{"version":3,"file":"disable-preview-branching.mjs","names":[],"sources":["../../src/actions/disable-preview-branching.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 SupabaseDisablePreviewBranchingInput = z.object({\n  ref: z.string().describe(\"The unique reference ID of the Supabase project for which preview branching is to be disabled.\"),\n}).describe(\"Request schema for `DisablePreviewBranching`\");\nexport const SupabaseDisablePreviewBranchingOutput = z.object({\n  error: z.string().describe(\"Error details if the operation failed.\").nullable().optional(),\n  message: z.string().default(\"Preview branching has been disabled successfully.\").describe(\"Human-readable message describing the operation outcome.\").nullable().optional(),\n  success: z.boolean().default(true).describe(\"Indicates whether the operation was successful.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `DisablePreviewBranching`.\\n\\nAccording to Supabase Management API docs, a successful disable action returns\\nan empty JSON object ({}). No fields are included in the body.\\nAdditional fields are included for providing context about the operation outcome.\");\n\nexport const supabaseDisablePreviewBranching: AppAction<\n  typeof SupabaseDisablePreviewBranchingInput,\n  typeof SupabaseDisablePreviewBranchingOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_DISABLE_PREVIEW_BRANCHING\", {\n  slug: \"supabase-disable-preview-branching\",\n  name: \"Disable preview branching\",\n  description: \"Disables the preview branching feature for an existing Supabase project, identified by its unique reference ID (`ref`). Note: Preview branching must be enabled on the project for this operation to succeed. If the project does not have preview branching enabled, a 422 error will be returned.\",\n  input: SupabaseDisablePreviewBranchingInput,\n  output: SupabaseDisablePreviewBranchingOutput,\n});\n"],"mappings":";;;AAeA,MAAa,kCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBkD,EAAE,OAAO,EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,EAC3H,CAAC,CAAC,CAAC,SAAS,8CAeH;CACP,QAfmD,EAAE,OAAO;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qRAWhB;AACV,CAAC"}