{"version":3,"file":"update-project.mjs","names":[],"sources":["../../src/actions/update-project.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 SupabaseUpdateProjectInput = z.object({\n  ref: z.string().describe(\"Project reference identifier (unique identifier for the project). This is typically a 20-character alphanumeric string found in your project URL or via the List All Projects endpoint.\"),\n  name: z.string().describe(\"New name for the project. Must be between 1 and 256 characters. This is the human-readable display name that will appear in the Supabase dashboard.\"),\n}).describe(\"Request to update a Supabase project's configuration.\\n\\nUpdates the given project by modifying its name or other properties.\");\nexport const SupabaseUpdateProjectOutput = z.object({\n  id: z.number().int().describe(\"Internal numeric identifier of the project.\").nullable(),\n  ref: z.string().describe(\"Project reference identifier (same as the input ref parameter).\").nullable(),\n  name: z.string().describe(\"Updated name of the project.\").nullable(),\n}).passthrough().describe(\"Response returned after successfully updating a Supabase project.\\n\\nContains the updated project information including id, name, and reference.\");\n\nexport const supabaseUpdateProject: AppAction<\n  typeof SupabaseUpdateProjectInput,\n  typeof SupabaseUpdateProjectOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_UPDATE_PROJECT\", {\n  slug: \"supabase-update-project\",\n  name: \"Update a project\",\n  description: \"Updates a Supabase project's configuration (currently supports updating the project name). Use when you need to rename an existing project.\",\n  input: SupabaseUpdateProjectInput,\n  output: SupabaseUpdateProjectOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBwC,EAAE,OAAO;EACjD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;EAClN,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CACjL,CAAC,CAAC,CAAC,SAAS,+HAeH;CACP,QAfyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACtF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACrG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kJAWhB;AACV,CAAC"}