import type { IntegrationScopeRequirement } from "../../../automation/integrations" /** Read the authenticated Vercel user. */ export const VERCEL_USER_READ_SCOPE = "user:read" /** Read Vercel teams and their members. */ export const VERCEL_TEAM_READ_SCOPE = "team:read" /** Read Vercel projects and their settings. */ export const VERCEL_PROJECT_READ_SCOPE = "project:read" /** Create, update, and delete Vercel projects. */ export const VERCEL_PROJECT_WRITE_SCOPE = "project:write" /** Read Vercel deployments and build information. */ export const VERCEL_DEPLOYMENT_READ_SCOPE = "deployment:read" /** Create, cancel, delete, and promote Vercel deployments. */ export const VERCEL_DEPLOYMENT_WRITE_SCOPE = "deployment:write" /** Read and manage deployment checks created by the integration. */ export const VERCEL_DEPLOYMENT_CHECK_WRITE_SCOPE = "deployment-check:write" /** Read Vercel Global Config stores, items, and masked tokens. */ export const VERCEL_EDGE_CONFIG_READ_SCOPE = "edge-config:read" /** Create, update, and delete Vercel Global Config resources. */ export const VERCEL_EDGE_CONFIG_WRITE_SCOPE = "edge-config:write" /** Read and manage Vercel drains. */ export const VERCEL_LOG_DRAIN_WRITE_SCOPE = "log-drain:write" /** Read all Vercel project environment variables in the account. */ export const VERCEL_GLOBAL_PROJECT_ENV_VARS_READ_SCOPE = "global-project-env-vars:read" /** Create, update, and delete all Vercel project environment variables. */ export const VERCEL_GLOBAL_PROJECT_ENV_VARS_WRITE_SCOPE = "global-project-env-vars:write" /** Manage integration-owned Vercel project environment variables. */ export const VERCEL_PROJECT_ENV_VARS_WRITE_SCOPE = "project-env-vars:write" /** Read variables available through either supported environment-variable grant. */ export const VERCEL_PROJECT_ENV_VARS_READ_REQUIREMENT = { requirements: [ VERCEL_PROJECT_ENV_VARS_WRITE_SCOPE, VERCEL_GLOBAL_PROJECT_ENV_VARS_READ_SCOPE, ], type: "or", } as const satisfies IntegrationScopeRequirement /** Write variables through either supported environment-variable grant. */ export const VERCEL_PROJECT_ENV_VARS_WRITE_REQUIREMENT = { requirements: [ VERCEL_PROJECT_ENV_VARS_WRITE_SCOPE, VERCEL_GLOBAL_PROJECT_ENV_VARS_WRITE_SCOPE, ], type: "or", } as const satisfies IntegrationScopeRequirement /** Read the connected Automate.ax Vercel integration installation. */ export const VERCEL_INTEGRATION_CONFIGURATION_READ_SCOPE = "integration-configuration:read" /** Read domains connected to Vercel projects. */ export const VERCEL_DOMAIN_READ_SCOPE = "domain:read" /** Add, remove, and verify domains connected to Vercel projects. */ export const VERCEL_DOMAIN_WRITE_SCOPE = "domain:write" /** Requires both project and domain write access for project-domain changes. */ export const VERCEL_PROJECT_DOMAIN_WRITE_REQUIREMENT = { requirements: [VERCEL_PROJECT_WRITE_SCOPE, VERCEL_DOMAIN_WRITE_SCOPE], type: "and", } as const satisfies IntegrationScopeRequirement