{"version":3,"file":"update-project.cjs","names":["z","action"],"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":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CAClN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;AACjL,CAAC,CAAC,CAAC,SAAS,+HAA+H;AAC3I,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACtF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kJAAkJ;AAE5K,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}