{"version":3,"file":"get-project.mjs","names":[],"sources":["../../src/actions/get-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 SupabaseGetProjectInput = z.object({\n  ref: z.string().describe(\"Project ref - unique identifier (20 lowercase letters) for the Supabase project.\"),\n}).describe(\"Request schema for `GetProject`\");\nconst SupabaseGetProject_ProjectStatusSchema = z.enum([\"INACTIVE\", \"ACTIVE_HEALTHY\", \"ACTIVE_UNHEALTHY\", \"COMING_UP\", \"UNKNOWN\", \"GOING_DOWN\", \"INIT_FAILED\", \"REMOVED\", \"RESTORING\", \"UPGRADING\", \"PAUSING\", \"RESTORE_FAILED\", \"RESTARTING\", \"PAUSE_FAILED\", \"RESIZING\"]).describe(\"Enumerates the possible operational statuses of a Supabase project.\\n- ACTIVE_HEALTHY: Project is active and operating normally.\\n- ACTIVE_UNHEALTHY: Project is active but experiencing operational issues.\\n- COMING_UP: Project is in the process of starting up.\\n- GOING_DOWN: Project is in the process of shutting down.\\n- INACTIVE: Project is currently inactive or paused.\\n- INIT_FAILED: Project initialization failed.\\n- REMOVED: Project has been permanently removed.\\n- RESTARTING: Project is currently restarting.\\n- UNKNOWN: The project's status could not be determined.\\n- UPGRADING: Project is currently undergoing an upgrade.\\n- PAUSING: Project is in the process of being paused.\\n- RESTORING: Project is currently being restored from a backup.\\n- RESTORE_FAILED: Attempt to restore the project from backup failed.\\n- PAUSE_FAILED: Attempt to pause the project failed.\\n- RESIZING: Project is being resized.\");\nconst SupabaseGetProject_DatabaseSchema = z.object({\n  host: z.string().describe(\"Database host (FQDN).\").nullable(),\n  version: z.string().describe(\"Database version string (e.g., '17.6.1.021', '15.8.1.079').\").nullable(),\n  postgres_engine: z.string().describe(\"Postgres engine/version family for the project (e.g., '15', '17').\").nullable(),\n  release_channel: z.string().describe(\"Database release channel for the project (e.g., 'ga', 'preview').\").nullable(),\n}).passthrough().describe(\"Database configuration for a Supabase project.\");\nexport const SupabaseGetProjectOutput = z.object({\n  id: z.string().describe(\"Deprecated: Use `ref` instead. Unique identifier (project ref).\").nullable(),\n  ref: z.string().describe(\"Project ref - unique identifier for the project.\").nullable(),\n  name: z.string().describe(\"Name of your project - human-readable project name.\").nullable(),\n  region: z.string().describe(\"Region of your project - cloud region where the project is hosted (e.g., us-east-1).\").nullable(),\n  status: SupabaseGetProject_ProjectStatusSchema.nullable(),\n  database: SupabaseGetProject_DatabaseSchema.nullable(),\n  created_at: z.string().describe(\"Creation timestamp in ISO 8601 UTC format.\").nullable(),\n  organization_id: z.string().describe(\"Deprecated: Use `organization_slug` instead. Organization identifier.\").nullable(),\n  organization_slug: z.string().describe(\"Organization slug - identifier of the organization that owns the project.\").nullable(),\n}).passthrough().describe(\"Response schema for getting a specific Supabase project.\");\n\nexport const supabaseGetProject: AppAction<\n  typeof SupabaseGetProjectInput,\n  typeof SupabaseGetProjectOutput,\n  typeof supabase.credential\n> = action(\"SUPABASE_GET_PROJECT\", {\n  slug: \"supabase-get-project\",\n  name: \"Get project\",\n  description: \"Retrieves detailed information about a specific Supabase project by its unique reference ID. Use when you need to get comprehensive project details including status, database configuration, and metadata. Authentication: - Requires a valid Bearer token in the Authorization header. - Token format: 'Bearer <access_token>' where access_token is either: - A Personal Access Token (PAT) generated from https://supabase.com/dashboard/account/tokens - An OAuth2 access token with the 'project_admin_read' scope Required Scope: - project_admin_read: Allows retrieval of project information. Returns: Project object containing id, ref, name, organization details, region, status, database configuration, and created_at timestamp.\",\n  input: SupabaseGetProjectInput,\n  output: SupabaseGetProjectOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,EAC7G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,yCAAyC,EAAE,KAAK;CAAC;CAAY;CAAkB;CAAoB;CAAa;CAAW;CAAc;CAAe;CAAW;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