@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
4,451 lines • 152 kB
text/typescript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
import { ACLAction, ACLAction$inboundSchema } from "./aclaction.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export const GetProjectProjectsFunctionDefaultMemoryType = {
Performance: "performance",
PerformanceXl: "performance_xl",
Standard: "standard",
StandardLegacy: "standard_legacy",
} as const;
export type GetProjectProjectsFunctionDefaultMemoryType = ClosedEnum<
typeof GetProjectProjectsFunctionDefaultMemoryType
>;
export const GetProjectProjectsBuildMachineType = {
Basic: "basic",
Enhanced: "enhanced",
Standard: "standard",
Turbo: "turbo",
} as const;
export type GetProjectProjectsBuildMachineType = ClosedEnum<
typeof GetProjectProjectsBuildMachineType
>;
export const GetProjectProjectsBuildMachineSelection = {
Elastic: "elastic",
Fixed: "fixed",
} as const;
export type GetProjectProjectsBuildMachineSelection = ClosedEnum<
typeof GetProjectProjectsBuildMachineSelection
>;
export const GetProjectProjectsBuildMachineElasticReason = {
BasicFloor: "basic-floor",
BuildTimeoutFailure: "build-timeout-failure",
EnospcFailure: "enospc-failure",
EnterpriseFloor: "enterprise-floor",
HighPeakDisk: "high-peak-disk",
HighPeakMemory: "high-peak-memory",
LongBuildDuration: "long-build-duration",
OomFailure: "oom-failure",
ShortBuildDuration: "short-build-duration",
SustainedHighCpu: "sustained-high-cpu",
} as const;
export type GetProjectProjectsBuildMachineElasticReason = ClosedEnum<
typeof GetProjectProjectsBuildMachineElasticReason
>;
export const GetProjectProjectsConfiguration = {
SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
} as const;
export type GetProjectProjectsConfiguration = ClosedEnum<
typeof GetProjectProjectsConfiguration
>;
export type GetProjectProjectsBuildQueue = {
configuration?: GetProjectProjectsConfiguration | undefined;
};
export type GetProjectDefaultResourceConfig = {
elasticConcurrencyEnabled?: boolean | undefined;
fluid?: boolean | undefined;
functionDefaultRegions: Array<string>;
functionDefaultTimeout?: number | undefined;
functionDefaultMemoryType?:
| GetProjectProjectsFunctionDefaultMemoryType
| undefined;
functionZeroConfigFailover?: boolean | undefined;
buildMachineType?: GetProjectProjectsBuildMachineType | undefined;
buildMachineSelection?: GetProjectProjectsBuildMachineSelection | undefined;
buildMachineElasticLastUpdated?: number | undefined;
buildMachineElasticReason?:
| GetProjectProjectsBuildMachineElasticReason
| undefined;
isNSNBDisabled?: boolean | undefined;
buildQueue?: GetProjectProjectsBuildQueue | undefined;
enableFunctionsBeta?: boolean | undefined;
};
export type GetProjectStaticIps = {
builds: boolean;
enabled: boolean;
regions: Array<string>;
};
export const GetProjectProjectsDeploymentType = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
} as const;
export type GetProjectProjectsDeploymentType = ClosedEnum<
typeof GetProjectProjectsDeploymentType
>;
export const GetProjectCve55182MigrationAppliedFrom = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
} as const;
export type GetProjectCve55182MigrationAppliedFrom = ClosedEnum<
typeof GetProjectCve55182MigrationAppliedFrom
>;
export const GetProjectApril2026SecurityIncidentMigrationAppliedFrom = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
} as const;
export type GetProjectApril2026SecurityIncidentMigrationAppliedFrom =
ClosedEnum<typeof GetProjectApril2026SecurityIncidentMigrationAppliedFrom>;
export type GetProjectSsoProtection = {
deploymentType: GetProjectProjectsDeploymentType;
cve55182MigrationAppliedFrom?:
| GetProjectCve55182MigrationAppliedFrom
| null
| undefined;
april2026SecurityIncidentMigrationAppliedFrom?:
| GetProjectApril2026SecurityIncidentMigrationAppliedFrom
| null
| undefined;
};
export type GetProjectProjectsAliasAssigned = number | boolean;
export type GetProjectProjectsAliasError = {
code: string;
message: string;
};
/**
* The type of matching to perform
*/
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType =
{
EndsWith: "endsWith",
Equals: "equals",
StartsWith: "startsWith",
} as const;
/**
* The type of matching to perform
*/
export type GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType =
ClosedEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType
>;
export type GetProjectProjectsResponseBranchMatcher = {
/**
* The type of matching to perform
*/
type: GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType;
/**
* The pattern to match against branch names
*/
pattern: string;
};
export type GetProjectProjectsBuilds = {
use: string;
src?: string | undefined;
dest?: string | undefined;
};
export const GetProjectProjectsChecksConclusion = {
Canceled: "canceled",
Failed: "failed",
Skipped: "skipped",
Succeeded: "succeeded",
} as const;
export type GetProjectProjectsChecksConclusion = ClosedEnum<
typeof GetProjectProjectsChecksConclusion
>;
export const GetProjectProjectsChecksState = {
Completed: "completed",
Registered: "registered",
Running: "running",
} as const;
export type GetProjectProjectsChecksState = ClosedEnum<
typeof GetProjectProjectsChecksState
>;
export type GetProjectProjectsResponseCreator = {
email: string;
githubLogin?: string | undefined;
gitlabLogin?: string | undefined;
uid: string;
username: string;
};
export type GetProjectProjectsOidcTokenClaims = {
iss: string;
sub: string;
scope: string;
aud: string;
owner: string;
ownerId: string;
project: string;
projectId: string;
environment: string;
customEnvironmentId?: string | undefined;
mfeGroupIds?: Array<string> | undefined;
plan?: string | undefined;
};
export const GetProjectProjectsPlan = {
Enterprise: "enterprise",
Hobby: "hobby",
Pro: "pro",
} as const;
export type GetProjectProjectsPlan = ClosedEnum<typeof GetProjectProjectsPlan>;
export const GetProjectProjectsReadyState = {
Blocked: "BLOCKED",
Building: "BUILDING",
Canceled: "CANCELED",
Error: "ERROR",
Initializing: "INITIALIZING",
Queued: "QUEUED",
Ready: "READY",
} as const;
export type GetProjectProjectsReadyState = ClosedEnum<
typeof GetProjectProjectsReadyState
>;
export const GetProjectProjectsReadySubstate = {
Promoted: "PROMOTED",
Rolling: "ROLLING",
Staged: "STAGED",
} as const;
export type GetProjectProjectsReadySubstate = ClosedEnum<
typeof GetProjectProjectsReadySubstate
>;
export const GetProjectProjectsResponse200Type = {
Lambdas: "LAMBDAS",
} as const;
export type GetProjectProjectsResponse200Type = ClosedEnum<
typeof GetProjectProjectsResponse200Type
>;
export type GetProjectTargets = {
id: string;
alias?: Array<string> | undefined;
aliasAssigned?: number | boolean | null | undefined;
aliasError?: GetProjectProjectsAliasError | null | undefined;
aliasFinal?: string | null | undefined;
automaticAliases?: Array<string> | undefined;
branchMatcher?: GetProjectProjectsResponseBranchMatcher | undefined;
buildingAt?: number | undefined;
builds?: Array<GetProjectProjectsBuilds> | undefined;
checksConclusion?: GetProjectProjectsChecksConclusion | undefined;
checksState?: GetProjectProjectsChecksState | undefined;
connectBuildsEnabled?: boolean | undefined;
connectConfigurationId?: string | undefined;
createdAt: number;
createdIn: string;
creator: GetProjectProjectsResponseCreator | null;
deletedAt?: number | undefined;
deploymentHostname: string;
forced?: boolean | undefined;
name: string;
meta?: { [k: string]: string } | undefined;
monorepoManager?: string | null | undefined;
oidcTokenClaims?: GetProjectProjectsOidcTokenClaims | undefined;
plan: GetProjectProjectsPlan;
/**
* Whether or not preview comments are enabled for the deployment
*/
previewCommentsEnabled?: boolean | undefined;
private: boolean;
readyAt?: number | undefined;
readyState: GetProjectProjectsReadyState;
readySubstate?: GetProjectProjectsReadySubstate | undefined;
requestedAt?: number | undefined;
target?: string | null | undefined;
teamId?: string | null | undefined;
type: GetProjectProjectsResponse200Type;
url: string;
/**
* Present for user creators; omitted for app/integration/system creators.
*/
userId?: string | undefined;
withCache?: boolean | undefined;
};
export type GetProjectPermissions = {
oauth2Connection?: Array<ACLAction> | undefined;
user?: Array<ACLAction> | undefined;
userConnection?: Array<ACLAction> | undefined;
userMfaConfiguration?: Array<ACLAction> | undefined;
userPreference?: Array<ACLAction> | undefined;
userSudo?: Array<ACLAction> | undefined;
webAuthn?: Array<ACLAction> | undefined;
accessGroup?: Array<ACLAction> | undefined;
agent?: Array<ACLAction> | undefined;
aiGatewayApiKey?: Array<ACLAction> | undefined;
aiGatewayApiKeyBypassAll?: Array<ACLAction> | undefined;
aiGatewayApiKeyOwnedBySelf?: Array<ACLAction> | undefined;
aiGatewayApiKeySpendAttribution?: Array<ACLAction> | undefined;
aiGatewayApiKeyZdrExemption?: Array<ACLAction> | undefined;
aiGatewayBudget?: Array<ACLAction> | undefined;
aiGatewayCredits?: Array<ACLAction> | undefined;
aiGatewayPrivateModels?: Array<ACLAction> | undefined;
aiGatewayGuardrails?: Array<ACLAction> | undefined;
aiGatewayRules?: Array<ACLAction> | undefined;
aiGatewaySettings?: Array<ACLAction> | undefined;
aiGatewayTranscripts?: Array<ACLAction> | undefined;
aiGatewayTranscriptsSettings?: Array<ACLAction> | undefined;
aiGatewayUsage?: Array<ACLAction> | undefined;
aiGatewayVirtualModelConfigs?: Array<ACLAction> | undefined;
alerts?: Array<ACLAction> | undefined;
alertRules?: Array<ACLAction> | undefined;
aliasGlobal?: Array<ACLAction> | undefined;
analyticsSampling?: Array<ACLAction> | undefined;
analyticsUsage?: Array<ACLAction> | undefined;
apiKey?: Array<ACLAction> | undefined;
apiKeyAiGateway?: Array<ACLAction> | undefined;
apiKeyOwnedBySelf?: Array<ACLAction> | undefined;
oauth2Application?: Array<ACLAction> | undefined;
vercelAppInstallation?: Array<ACLAction> | undefined;
vercelAppInstallationRequest?: Array<ACLAction> | undefined;
auditLog?: Array<ACLAction> | undefined;
automation?: Array<ACLAction> | undefined;
billingAddress?: Array<ACLAction> | undefined;
billingInformation?: Array<ACLAction> | undefined;
billingInvoice?: Array<ACLAction> | undefined;
billingInvoiceEmailRecipient?: Array<ACLAction> | undefined;
billingInvoiceLanguage?: Array<ACLAction> | undefined;
billingPlan?: Array<ACLAction> | undefined;
billingPurchaseOrder?: Array<ACLAction> | undefined;
billingRefund?: Array<ACLAction> | undefined;
billingTaxId?: Array<ACLAction> | undefined;
blob?: Array<ACLAction> | undefined;
blobStoreTokenSet?: Array<ACLAction> | undefined;
budget?: Array<ACLAction> | undefined;
cacheArtifact?: Array<ACLAction> | undefined;
cacheArtifactUsageEvent?: Array<ACLAction> | undefined;
codeChecks?: Array<ACLAction> | undefined;
codeOwners?: Array<ACLAction> | undefined;
ciInvocations?: Array<ACLAction> | undefined;
ciLogs?: Array<ACLAction> | undefined;
concurrentBuilds?: Array<ACLAction> | undefined;
connect?: Array<ACLAction> | undefined;
connectConfiguration?: Array<ACLAction> | undefined;
connectLogs?: Array<ACLAction> | undefined;
connexClient?: Array<ACLAction> | undefined;
connexClientProject?: Array<ACLAction> | undefined;
connexContact?: Array<ACLAction> | undefined;
connexInstallation?: Array<ACLAction> | undefined;
connexToken?: Array<ACLAction> | undefined;
buildMachineDefault?: Array<ACLAction> | undefined;
cursorOriginInstallation?: Array<ACLAction> | undefined;
dataCacheBillingSettings?: Array<ACLAction> | undefined;
defaultDeploymentProtection?: Array<ACLAction> | undefined;
deploymentPolicy?: Array<ACLAction> | undefined;
domain?: Array<ACLAction> | undefined;
domainAcceptDelegation?: Array<ACLAction> | undefined;
domainAuthCodes?: Array<ACLAction> | undefined;
domainCertificate?: Array<ACLAction> | undefined;
domainCheckConfig?: Array<ACLAction> | undefined;
domainMove?: Array<ACLAction> | undefined;
domainPurchase?: Array<ACLAction> | undefined;
domainRecord?: Array<ACLAction> | undefined;
domainTransferIn?: Array<ACLAction> | undefined;
drain?: Array<ACLAction> | undefined;
edgeConfig?: Array<ACLAction> | undefined;
edgeConfigItem?: Array<ACLAction> | undefined;
edgeConfigSchema?: Array<ACLAction> | undefined;
edgeConfigToken?: Array<ACLAction> | undefined;
endpointVerification?: Array<ACLAction> | undefined;
event?: Array<ACLAction> | undefined;
fileUpload?: Array<ACLAction> | undefined;
flagsExplorerSubscription?: Array<ACLAction> | undefined;
gitRepository?: Array<ACLAction> | undefined;
imageOptimizationNewPrice?: Array<ACLAction> | undefined;
integration?: Array<ACLAction> | undefined;
integrationAccount?: Array<ACLAction> | undefined;
integrationConfiguration?: Array<ACLAction> | undefined;
integrationConfigurationProjects?: Array<ACLAction> | undefined;
integrationConfigurationRole?: Array<ACLAction> | undefined;
integrationConfigurationTransfer?: Array<ACLAction> | undefined;
integrationDeploymentAction?: Array<ACLAction> | undefined;
integrationEvent?: Array<ACLAction> | undefined;
integrationLog?: Array<ACLAction> | undefined;
integrationResource?: Array<ACLAction> | undefined;
integrationResourceData?: Array<ACLAction> | undefined;
integrationResourceReplCommand?: Array<ACLAction> | undefined;
integrationResourceSecrets?: Array<ACLAction> | undefined;
integrationSSOSession?: Array<ACLAction> | undefined;
integrationStrict?: Array<ACLAction> | undefined;
integrationStoreTokenSet?: Array<ACLAction> | undefined;
integrationVercelConfigurationOverride?: Array<ACLAction> | undefined;
integrationPullRequest?: Array<ACLAction> | undefined;
ipBlocking?: Array<ACLAction> | undefined;
jobGlobal?: Array<ACLAction> | undefined;
kmsIssuer?: Array<ACLAction> | undefined;
kmsProjectGrant?: Array<ACLAction> | undefined;
logDrain?: Array<ACLAction> | undefined;
marketplaceBillingData?: Array<ACLAction> | undefined;
marketplaceExperimentationEdgeConfigData?: Array<ACLAction> | undefined;
marketplaceExperimentationItem?: Array<ACLAction> | undefined;
marketplaceFlexCommit?: Array<ACLAction> | undefined;
marketplaceInstallationMember?: Array<ACLAction> | undefined;
marketplaceInvoice?: Array<ACLAction> | undefined;
marketplaceSettings?: Array<ACLAction> | undefined;
monitoring?: Array<ACLAction> | undefined;
monitoringAlert?: Array<ACLAction> | undefined;
monitoringChart?: Array<ACLAction> | undefined;
monitoringQuery?: Array<ACLAction> | undefined;
monitoringSettings?: Array<ACLAction> | undefined;
notificationCustomerBudget?: Array<ACLAction> | undefined;
notificationDeploymentFailed?: Array<ACLAction> | undefined;
notificationDomainConfiguration?: Array<ACLAction> | undefined;
notificationDomainExpire?: Array<ACLAction> | undefined;
notificationDomainMoved?: Array<ACLAction> | undefined;
notificationDomainPurchase?: Array<ACLAction> | undefined;
notificationDomainRenewal?: Array<ACLAction> | undefined;
notificationDomainTransfer?: Array<ACLAction> | undefined;
notificationDomainUnverified?: Array<ACLAction> | undefined;
notificationMonitoringAlert?: Array<ACLAction> | undefined;
notificationPaymentFailed?: Array<ACLAction> | undefined;
notificationPreferences?: Array<ACLAction> | undefined;
notificationStatementOfReasons?: Array<ACLAction> | undefined;
notificationUsageAlert?: Array<ACLAction> | undefined;
oidcFederationPolicy?: Array<ACLAction> | undefined;
observabilityConfiguration?: Array<ACLAction> | undefined;
observabilityFunnel?: Array<ACLAction> | undefined;
observabilityNotebook?: Array<ACLAction> | undefined;
openTelemetryEndpoint?: Array<ACLAction> | undefined;
ownEvent?: Array<ACLAction> | undefined;
organization?: Array<ACLAction> | undefined;
organizationDomain?: Array<ACLAction> | undefined;
organizationTeam?: Array<ACLAction> | undefined;
passwordProtectionInvoiceItem?: Array<ACLAction> | undefined;
paymentMethod?: Array<ACLAction> | undefined;
permissions?: Array<ACLAction> | undefined;
postgres?: Array<ACLAction> | undefined;
postgresStoreTokenSet?: Array<ACLAction> | undefined;
previewDeploymentSuffix?: Array<ACLAction> | undefined;
privateCloudAccount?: Array<ACLAction> | undefined;
projectTransferIn?: Array<ACLAction> | undefined;
projectTransferRequest?: Array<ACLAction> | undefined;
proTrialOnboarding?: Array<ACLAction> | undefined;
rateLimit?: Array<ACLAction> | undefined;
redis?: Array<ACLAction> | undefined;
redisStoreTokenSet?: Array<ACLAction> | undefined;
remoteCaching?: Array<ACLAction> | undefined;
repository?: Array<ACLAction> | undefined;
samlConfig?: Array<ACLAction> | undefined;
secret?: Array<ACLAction> | undefined;
securityConfig?: Array<ACLAction> | undefined;
sensitiveEnvironmentVariablePolicy?: Array<ACLAction> | undefined;
sharedEnvVars?: Array<ACLAction> | undefined;
sharedEnvVarsProduction?: Array<ACLAction> | undefined;
space?: Array<ACLAction> | undefined;
spaceRun?: Array<ACLAction> | undefined;
storeIsLocked?: Array<ACLAction> | undefined;
storeTokenSetSensitive?: Array<ACLAction> | undefined;
storeTransfer?: Array<ACLAction> | undefined;
supportCase?: Array<ACLAction> | undefined;
supportCaseComment?: Array<ACLAction> | undefined;
team?: Array<ACLAction> | undefined;
teamAccessRequest?: Array<ACLAction> | undefined;
teamFellowMembership?: Array<ACLAction> | undefined;
teamGitExclusivity?: Array<ACLAction> | undefined;
teamInvite?: Array<ACLAction> | undefined;
teamInviteCode?: Array<ACLAction> | undefined;
teamInviteLink?: Array<ACLAction> | undefined;
teamJoin?: Array<ACLAction> | undefined;
teamMemberMfaStatus?: Array<ACLAction> | undefined;
teamMicrofrontends?: Array<ACLAction> | undefined;
teamOwnMembership?: Array<ACLAction> | undefined;
teamOwnMembershipDisconnectSAML?: Array<ACLAction> | undefined;
teamSudo?: Array<ACLAction> | undefined;
teamTokenInvalidation?: Array<ACLAction> | undefined;
token?: Array<ACLAction> | undefined;
toolbarComment?: Array<ACLAction> | undefined;
usage?: Array<ACLAction> | undefined;
usageCycle?: Array<ACLAction> | undefined;
vcrRepository?: Array<ACLAction> | undefined;
vpcPeeringConnection?: Array<ACLAction> | undefined;
webAnalyticsPlan?: Array<ACLAction> | undefined;
webhook?: Array<ACLAction> | undefined;
webhookEvent?: Array<ACLAction> | undefined;
aliasProject?: Array<ACLAction> | undefined;
aliasProtectionBypass?: Array<ACLAction> | undefined;
bulkRedirects?: Array<ACLAction> | undefined;
buildMachine?: Array<ACLAction> | undefined;
connectConfigurationLink?: Array<ACLAction> | undefined;
dataCacheNamespace?: Array<ACLAction> | undefined;
deployment?: Array<ACLAction> | undefined;
deploymentBuildLogs?: Array<ACLAction> | undefined;
deploymentCheck?: Array<ACLAction> | undefined;
deploymentCheckPreview?: Array<ACLAction> | undefined;
deploymentCheckReRunFromProductionBranch?: Array<ACLAction> | undefined;
deploymentProductionGit?: Array<ACLAction> | undefined;
deploymentV0?: Array<ACLAction> | undefined;
deploymentPreview?: Array<ACLAction> | undefined;
deploymentPrivate?: Array<ACLAction> | undefined;
deploymentPromote?: Array<ACLAction> | undefined;
deploymentRollback?: Array<ACLAction> | undefined;
edgeCacheNamespace?: Array<ACLAction> | undefined;
environments?: Array<ACLAction> | undefined;
job?: Array<ACLAction> | undefined;
logs?: Array<ACLAction> | undefined;
logsPreset?: Array<ACLAction> | undefined;
observabilityData?: Array<ACLAction> | undefined;
onDemandBuild?: Array<ACLAction> | undefined;
onDemandConcurrency?: Array<ACLAction> | undefined;
optionsAllowlist?: Array<ACLAction> | undefined;
passwordProtection?: Array<ACLAction> | undefined;
privateLinkEndpoint?: Array<ACLAction> | undefined;
productionAliasProtectionBypass?: Array<ACLAction> | undefined;
productionShareableLink?: Array<ACLAction> | undefined;
project?: Array<ACLAction> | undefined;
projectAccessGroup?: Array<ACLAction> | undefined;
projectAnalyticsSampling?: Array<ACLAction> | undefined;
projectAnalyticsUsage?: Array<ACLAction> | undefined;
projectCheck?: Array<ACLAction> | undefined;
projectCheckRun?: Array<ACLAction> | undefined;
projectDeploymentExpiration?: Array<ACLAction> | undefined;
projectDeploymentHook?: Array<ACLAction> | undefined;
projectDeploymentProtectionStrict?: Array<ACLAction> | undefined;
projectDomain?: Array<ACLAction> | undefined;
projectDomainCheckConfig?: Array<ACLAction> | undefined;
projectDomainMove?: Array<ACLAction> | undefined;
projectDomainVerify?: Array<ACLAction> | undefined;
projectEvent?: Array<ACLAction> | undefined;
projectEnvVars?: Array<ACLAction> | undefined;
projectEnvVarsProduction?: Array<ACLAction> | undefined;
projectEnvVarsUnownedByIntegration?: Array<ACLAction> | undefined;
projectFlags?: Array<ACLAction> | undefined;
projectFlagsProduction?: Array<ACLAction> | undefined;
projectFlagsSDKKey?: Array<ACLAction> | undefined;
projectFromV0?: Array<ACLAction> | undefined;
projectId?: Array<ACLAction> | undefined;
projectIntegrationConfiguration?: Array<ACLAction> | undefined;
projectLink?: Array<ACLAction> | undefined;
projectMember?: Array<ACLAction> | undefined;
projectMonitoring?: Array<ACLAction> | undefined;
projectOIDCToken?: Array<ACLAction> | undefined;
projectPermissions?: Array<ACLAction> | undefined;
projectProductionBranch?: Array<ACLAction> | undefined;
projectProtectionBypass?: Array<ACLAction> | undefined;
projectRollingRelease?: Array<ACLAction> | undefined;
projectRoutes?: Array<ACLAction> | undefined;
projectSupportCase?: Array<ACLAction> | undefined;
projectSupportCaseComment?: Array<ACLAction> | undefined;
projectTier?: Array<ACLAction> | undefined;
projectTransfer?: Array<ACLAction> | undefined;
projectTransferOut?: Array<ACLAction> | undefined;
projectUsage?: Array<ACLAction> | undefined;
pageIntegrity?: Array<ACLAction> | undefined;
seawallConfig?: Array<ACLAction> | undefined;
securityPlusConfiguration?: Array<ACLAction> | undefined;
shareableLink?: Array<ACLAction> | undefined;
shareableLinkStrict?: Array<ACLAction> | undefined;
sharedEnvVarConnection?: Array<ACLAction> | undefined;
skewProtection?: Array<ACLAction> | undefined;
analytics?: Array<ACLAction> | undefined;
trustedIps?: Array<ACLAction> | undefined;
trustedSources?: Array<ACLAction> | undefined;
v0Chat?: Array<ACLAction> | undefined;
vercelAuth?: Array<ACLAction> | undefined;
vercelRun?: Array<ACLAction> | undefined;
webAnalytics?: Array<ACLAction> | undefined;
workflowRunData?: Array<ACLAction> | undefined;
};
export type GetProjectLastRollbackTarget = {};
export const GetProjectJobStatus = {
Failed: "failed",
InProgress: "in-progress",
Pending: "pending",
Skipped: "skipped",
Succeeded: "succeeded",
} as const;
export type GetProjectJobStatus = ClosedEnum<typeof GetProjectJobStatus>;
export const GetProjectProjectsResponse200ApplicationJSONType = {
Promote: "promote",
Rollback: "rollback",
} as const;
export type GetProjectProjectsResponse200ApplicationJSONType = ClosedEnum<
typeof GetProjectProjectsResponse200ApplicationJSONType
>;
export type GetProjectLastAliasRequest = {
fromDeploymentId: string | null;
toDeploymentId: string;
/**
* If rolling back from a rolling release, fromDeploymentId captures the "base" of that rolling release, and fromRollingReleaseId captures the "target" of that rolling release.
*/
fromRollingReleaseId?: string | undefined;
jobStatus: GetProjectJobStatus;
requestedAt: number;
type: GetProjectProjectsResponse200ApplicationJSONType;
};
export type GetProjectProtectionBypass2 = {
createdAt: number;
createdBy: string;
scope: "automation-bypass";
/**
* When there was only one bypass, it was automatically set as an env var on deployments. With multiple bypasses, there is always one bypass that is selected as the default, and gets set as an env var on deployments. As this is a new field, undefined means that the bypass is the env var. If there are any automation bypasses, exactly one must be the env var.
*/
isEnvVar?: boolean | undefined;
/**
* Optional note about the bypass to be displayed in the UI
*/
note?: string | undefined;
};
export type GetProjectProtectionBypass1 = {
createdAt: number;
createdBy: string;
scope: "integration-automation-bypass";
integrationId: string;
configurationId: string;
};
export type GetProjectProtectionBypass =
| GetProjectProtectionBypass1
| GetProjectProtectionBypass2;
export const GetProjectTrustedIpsProjectsDeploymentType = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
Production: "production",
} as const;
export type GetProjectTrustedIpsProjectsDeploymentType = ClosedEnum<
typeof GetProjectTrustedIpsProjectsDeploymentType
>;
export type GetProjectTrustedIps2 = {
deploymentType: GetProjectTrustedIpsProjectsDeploymentType;
};
export const GetProjectTrustedIpsDeploymentType = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
Production: "production",
} as const;
export type GetProjectTrustedIpsDeploymentType = ClosedEnum<
typeof GetProjectTrustedIpsDeploymentType
>;
export type TrustedIpsAddresses = {
value: string;
note?: string | undefined;
};
export const TrustedIpsProtectionMode = {
Additional: "additional",
Exclusive: "exclusive",
} as const;
export type TrustedIpsProtectionMode = ClosedEnum<
typeof TrustedIpsProtectionMode
>;
export type GetProjectTrustedIps1 = {
deploymentType: GetProjectTrustedIpsDeploymentType;
addresses: Array<TrustedIpsAddresses>;
protectionMode: TrustedIpsProtectionMode;
};
export type GetProjectTrustedIps =
| GetProjectTrustedIps1
| GetProjectTrustedIps2;
export const GetProjectFromProjectsPreset = {
AllCustom: "all-custom",
} as const;
export type GetProjectFromProjectsPreset = ClosedEnum<
typeof GetProjectFromProjectsPreset
>;
/**
* The source envs on the trusted project that are allowed to access `to`.
*/
export type GetProjectFrom2 = {
/**
* System environment slugs (`production`, `preview`) and/or custom environment slugs defined on the referenced project.
*/
slugs?: Array<string> | undefined;
preset: GetProjectFromProjectsPreset;
};
export const GetProjectFromPreset = {
AllCustom: "all-custom",
} as const;
export type GetProjectFromPreset = ClosedEnum<typeof GetProjectFromPreset>;
/**
* The source envs on the trusted project that are allowed to access `to`.
*/
export type GetProjectFrom1 = {
/**
* System environment slugs (`production`, `preview`) and/or custom environment slugs defined on the referenced project.
*/
slugs: Array<string>;
preset?: GetProjectFromPreset | undefined;
};
export type GetProjectFrom = GetProjectFrom1 | GetProjectFrom2;
export const GetProjectToProjectsResponse200Preset = {
AllCustom: "all-custom",
} as const;
export type GetProjectToProjectsResponse200Preset = ClosedEnum<
typeof GetProjectToProjectsResponse200Preset
>;
/**
* The target envs on the current project that may be accessed.
*/
export type GetProjectToProjects2 = {
/**
* System environment slugs (`production`, `preview`) and/or custom environment slugs defined on the referenced project.
*/
slugs?: Array<string> | undefined;
preset: GetProjectToProjectsResponse200Preset;
};
export const GetProjectToProjectsResponsePreset = {
AllCustom: "all-custom",
} as const;
export type GetProjectToProjectsResponsePreset = ClosedEnum<
typeof GetProjectToProjectsResponsePreset
>;
/**
* The target envs on the current project that may be accessed.
*/
export type GetProjectToProjects1 = {
/**
* System environment slugs (`production`, `preview`) and/or custom environment slugs defined on the referenced project.
*/
slugs: Array<string>;
preset?: GetProjectToProjectsResponsePreset | undefined;
};
export type GetProjectProjectsTo =
| GetProjectToProjects1
| GetProjectToProjects2;
/**
* Optional overrides for the default same-env-by-slug matching. Provide explicit rules to allow cross-env access or presets.
*/
export type GetProjectCustomAllow = {
from: GetProjectFrom1 | GetProjectFrom2;
to: GetProjectToProjects1 | GetProjectToProjects2;
};
export type GetProjectProjects = {
label?: string | undefined;
/**
* Optional overrides for the default same-env-by-slug matching. Provide explicit rules to allow cross-env access or presets.
*/
customAllow?: Array<GetProjectCustomAllow> | undefined;
};
export const GetProjectToProjectsPreset = {
AllCustom: "all-custom",
} as const;
export type GetProjectToProjectsPreset = ClosedEnum<
typeof GetProjectToProjectsPreset
>;
/**
* The target envs on the current project that may be accessed.
*/
export type GetProjectTo2 = {
/**
* System environment slugs (`production`, `preview`) and/or custom environment slugs defined on the referenced project.
*/
slugs?: Array<string> | undefined;
preset: GetProjectToProjectsPreset;
};
export const GetProjectToPreset = {
AllCustom: "all-custom",
} as const;
export type GetProjectToPreset = ClosedEnum<typeof GetProjectToPreset>;
/**
* The target envs on the current project that may be accessed.
*/
export type GetProjectTo1 = {
/**
* System environment slugs (`production`, `preview`) and/or custom environment slugs defined on the referenced project.
*/
slugs: Array<string>;
preset?: GetProjectToPreset | undefined;
};
export type GetProjectTo = GetProjectTo1 | GetProjectTo2;
export type GetProjectOidcProviders = {
to: GetProjectTo1 | GetProjectTo2;
label?: string | undefined;
claims: { [k: string]: Array<string> };
};
export type GetProjectTrustedSources = {
/**
* Allow same-team Vercel CI access to preview deployments built from the CI run's repository, using the deployment source rather than the current project repository link. Defaults to enabled when not stored; omitted or null Trusted Sources updates preserve the stored value.
*/
enableVercelCiSameRepository?: boolean | undefined;
projects?: { [k: string]: GetProjectProjects } | undefined;
oidcProviders?: { [k: string]: Array<GetProjectOidcProviders> } | undefined;
};
export type GetProjectGitComments = {
/**
* Whether the Vercel bot should comment on PRs
*/
onPullRequest: boolean;
/**
* Whether the Vercel bot should comment on commits
*/
onCommit: boolean;
};
/**
* Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
*/
export const GetProjectCreateDeployments = {
Disabled: "disabled",
Enabled: "enabled",
} as const;
/**
* Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
*/
export type GetProjectCreateDeployments = ClosedEnum<
typeof GetProjectCreateDeployments
>;
/**
* Configuration for consolidated git commit status reporting. When enabled, Vercel will post a single consolidated commit status instead of individual statuses for each deployment.
*/
export type GetProjectConsolidatedGitCommitStatus = {
/**
* Whether consolidated commit status is enabled.
*/
enabled: boolean;
/**
* Whether to propagate individual deployment failures to the consolidated status.
*/
propagateFailures: boolean;
};
export type GetProjectGitProviderOptions = {
/**
* Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
*/
createDeployments: GetProjectCreateDeployments;
/**
* Whether the Vercel bot should not automatically create GitHub repository-dispatch events on deployment events. https://vercel.com/docs/git/vercel-for-github#repository-dispatch-events - `true`: disable repository-dispatch events for this project (explicit override of the team setting). - `false`: enable repository-dispatch events for this project (explicit override of the team setting). - absent: inherit from `team.disableRepositoryDispatchEvents`.
*/
disableRepositoryDispatchEvents?: boolean | undefined;
/**
* Whether the project requires commits to be signed & verified before deployments will be created. - `true`: require verified commits for this project (explicit override of the team setting). - `false`: do not require verified commits (explicit override of the team setting). - absent: inherit from `team.requireVerifiedCommits`.
*/
requireVerifiedCommits?: boolean | undefined;
/**
* Whether Vercel should post commit statuses for this project. When omitted, commit statuses remain enabled.
*/
gitCommitStatus?: boolean | undefined;
/**
* Configuration for consolidated git commit status reporting. When enabled, Vercel will post a single consolidated commit status instead of individual statuses for each deployment.
*/
consolidatedGitCommitStatus?:
| GetProjectConsolidatedGitCommitStatus
| undefined;
};
export type GetProjectWebAnalytics = {
id: string;
disabledAt?: number | undefined;
canceledAt?: number | undefined;
enabledAt?: number | undefined;
hasData?: true | undefined;
};
export const GetProjectProjectsAction = {
Allow: "allow",
Bypass: "bypass",
Challenge: "challenge",
Deny: "deny",
Log: "log",
RateLimit: "rate_limit",
Redirect: "redirect",
} as const;
export type GetProjectProjectsAction = ClosedEnum<
typeof GetProjectProjectsAction
>;
export const GetProjectAlgo = {
FixedWindow: "fixed_window",
TokenBucket: "token_bucket",
} as const;
export type GetProjectAlgo = ClosedEnum<typeof GetProjectAlgo>;
export type GetProjectRateLimit = {
algo: GetProjectAlgo;
window: number;
limit: number;
keys: Array<string>;
};
export type GetProjectRedirect = {
location: string;
permanent: boolean;
};
export const GetProjectLogHeadersProjects2 = {
Wildcard: "*",
} as const;
export type GetProjectLogHeadersProjects2 = ClosedEnum<
typeof GetProjectLogHeadersProjects2
>;
export type GetProjectProjectsLogHeaders =
| Array<string>
| GetProjectLogHeadersProjects2;
export type GetProjectRulesets = {
action: GetProjectProjectsAction;
rateLimit?: GetProjectRateLimit | null | undefined;
redirect?: GetProjectRedirect | null | undefined;
actionDuration?: string | null | undefined;
bypassSystem?: boolean | null | undefined;
logHeaders?: Array<string> | GetProjectLogHeadersProjects2 | undefined;
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction =
{
Challenge: "challenge",
Deny: "deny",
Log: "log",
} as const;
export type GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction =
ClosedEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction
>;
export type GetProjectVercelRuleset = {
active: boolean;
action?:
| GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction
| undefined;
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction =
{
Challenge: "challenge",
Deny: "deny",
Log: "log",
} as const;
export type GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction =
ClosedEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction
>;
export type GetProjectTrafficSources = {
active: boolean;
action?:
| GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction
| undefined;
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction =
{
Challenge: "challenge",
Deny: "deny",
Log: "log",
} as const;
export type GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction =
ClosedEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction
>;
export type GetProjectBotFilter = {
active: boolean;
action?:
| GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction
| undefined;
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyAction = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
} as const;
export type GetProjectProjectsResponse200ApplicationJSONResponseBodyAction =
ClosedEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodyAction
>;
export type GetProjectAiBots = {
active: boolean;
action?:
| GetProjectProjectsResponse200ApplicationJSONResponseBodyAction
| undefined;
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction =
{
Challenge: "challenge",
Deny: "deny",
Log: "log",
} as const;
export type GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction =
ClosedEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction
>;
export type GetProjectOwasp = {
active: boolean;
action?:
| GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction
| undefined;
};
export type GetProjectManagedRules = {
vercelRuleset: GetProjectVercelRuleset;
trafficSources: GetProjectTrafficSources;
botFilter: GetProjectBotFilter;
aiBots: GetProjectAiBots;
owasp: GetProjectOwasp;
};
export const GetProjectLogHeaders2 = {
Wildcard: "*",
} as const;
export type GetProjectLogHeaders2 = ClosedEnum<typeof GetProjectLogHeaders2>;
export type GetProjectLogHeaders = Array<string> | GetProjectLogHeaders2;
export type GetProjectSecurityPlusMetadata = {
updatedAt: number;
/**
* Timestamp when the feature was first enabled. Never changes after initial enablement.
*/
firstEnabledAt?: number | undefined;
};
export type GetProjectSecurity = {
attackModeEnabled?: boolean | undefined;
attackModeUpdatedAt?: number | undefined;
firewallEnabled?: boolean | undefined;
firewallUpdatedAt?: number | undefined;
attackModeActiveUntil?: number | null | undefined;
firewallConfigVersion?: number | undefined;
rulesets?: { [k: string]: GetProjectRulesets } | undefined;
firewallSeawallEnabled?: boolean | undefined;
ja3Enabled?: boolean | undefined;
ja4Enabled?: boolean | undefined;
firewallBypassIps?: Array<string> | undefined;
managedRules?: GetProjectManagedRules | null | undefined;
botIdEnabled?: boolean | undefined;
logHeaders?: Array<string> | GetProjectLogHeaders2 | undefined;
securityPlus?: boolean | undefined;
securityPlusMetadata?: GetProjectSecurityPlusMetadata | undefined;
/**
* Whether Page Integrity is enabled for this project. Used by the metadata service to gate DynamoDB lookups against the page-integrity-inventory table.
*/
pageIntegrityEnabled?: boolean | undefined;
};
/**
* - team: `https://oidc.vercel.com/[team_slug]` - global: `https://oidc.vercel.com`
*/
export const GetProjectIssuerMode = {
Global: "global",
Team: "team",
} as const;
/**
* - team: `https://oidc.vercel.com/[team_slug]` - global: `https://oidc.vercel.com`
*/
export type GetProjectIssuerMode = ClosedEnum<typeof GetProjectIssuerMode>;
export type GetProjectOidcTokenConfig = {
/**
* Whether or not to generate OpenID Connect JSON Web Tokens.
*/
enabled?: boolean | undefined;
/**
* - team: `https://oidc.vercel.com/[team_slug]` - global: `https://oidc.vercel.com`
*/
issuerMode?: GetProjectIssuerMode | undefined;
};
/**
* Allowlist entry for GitLab, which uses nested groups rather than a flat org/repo. `namespace` is the full group path (e.g. `group` or `group/subgroup`); `project` is the leaf project name. Omit `project` to match any project under the namespace. Namespace is matched case-insensitively.
*/
export type GetProjectSources2 = {
provider: "gitlab";
namespace: string;
project?: string | undefined;
};
export const GetProjectSourcesProvider = {
Bitbucket: "bitbucket",
Github: "github",
} as const;
export type GetProjectSourcesProvider = ClosedEnum<
typeof GetProjectSourcesProvider
>;
/**
* Allowlist entry for GitHub and Bitbucket, whose repos are identified by a flat `org`/`repo` (Bitbucket's workspace/owner maps to `org`, its repo slug to `repo`). Omit `repo` to match any repo in the org. Org is matched case-insensitively.
*/
export type GetProjectSources1 = {
provider: GetProjectSourcesProvider;
org: string;
repo?: string | undefined;
};
export type GetProjectSources =
| (GetProjectSources1 & { provider: "bitbucket" })
| (GetProjectSources1 & { provider: "github" })
| GetProjectSources2;
export type GetProjectEnvironments2 = {
type: "custom";
environmentId: string;
};
export const GetProjectEnvironmentsTarget = {
Preview: "preview",
Production: "production",
} as const;
export type GetProjectEnvironmentsTarget = ClosedEnum<
typeof GetProjectEnvironmentsTarget
>;
export type GetProjectEnvironments1 = {
type: "system";
target: GetProjectEnvironmentsTarget;
};
export type GetProjectEnvironments =
| GetProjectEnvironments1
| GetProjectEnvironments2;
/**
* `enabled: true` with empty `sources` is deny-all.
*/
export type GetProjectGitSources = {
sources: Array<
| (GetProjectSources1 & { provider: "bitbucket" })
| (GetProjectSources1 & { provider: "github" })
| GetProjectSources2
>;
enabled: boolean;
environments: Array<GetProjectEnvironments1 | GetProjectEnvironments2>;
};
/**
* Customer-configurable deployment sources. Every deploy classifies to exactly one. JSON schema in `packages/deployment-policy/schemas/body.ts` enumerates exactly these values. - `'git'` — git provider webhook. - `'cli'` — Vercel CLI (legacy classic-token CLI and SIWV CLI both). - `'rest-api'` — direct user/team-token REST upload. Does NOT cover deploy hooks, Marketplace integrations, or first-party app tokens. - `'deploy-hook'` — project deploy-hook URL. The URL is the credential. - `'integration'` — third-party Marketplace actor: Marketplace integration token, user-delegated OAuth from a Marketplace app, or an unrecognized third-party Vercel App. First-party Vercel Apps are never `'integration'`. - `'v0'` — the v0 product surface (entitlement-gated). v0 deploys through the CLI under the hood, but classifies as its own source so a team can allow or deny v0 independently of `'cli'`. First-party Vercel apps (Toolbar, etc.) classify as `'first-party'` — see `ClassifiedSource` in `./checks`. They're not in this union because they aren't customer-configurable; they bypass `checkDeploymentSources` entirely. v0 is intentionally NOT among them: like the CLI, it's a real product surface and is policy-controllable.
*/
export const GetProjectProjectsSources = {
Cli: "cli",
DeployHook: "deploy-hook",
Git: "git",
Integration: "integration",
RestApi: "rest-api",
V0: "v0",
} as const;
/**
* Customer-configurable deployment sources. Every deploy classifies to exactly one. JSON schema in `packages/deployment-policy/schemas/body.ts` enumerates exactly these values. - `'git'` — git provider webhook. - `'cli'` — Vercel CLI (legacy classic-token CLI and SIWV CLI both). - `'rest-api'` — direct user/team-token REST upload. Does NOT cover deploy hooks, Marketplace integrations, or first-party app tokens. - `'deploy-hook'` — project deploy-hook URL. The URL is the credential. - `'integration'` — third-party Marketplace actor: Marketplace integration token, user-delegated OAuth from a Marketplace app, or an unrecognized third-party Vercel App. First-party Vercel Apps are never `'integration'`. - `'v0'` — the v0 product surface (entitlement-gated). v0 deploys through the CLI under the hood, but classifies as its own source so a team can allow or deny v0 independently of `'cli'`. First-party Vercel apps (Toolbar, etc.) classify as `'first-party'` — see `ClassifiedSource` in `./checks`. They're not in this union because they aren't customer-configurable; they bypass `checkDeploymentSources` entirely. v0 is intentionally NOT among them: like the CLI, it's a real product surface and is policy-controllable.
*/
export type GetProjectProjectsSources = ClosedEnum<
typeof GetProjectProjectsSources
>;
export type GetProjectEnvironmentsProjects2 = {
type: "custom";
environmentId: string;
};
export const GetProjectEnvironmentsProjectsTarget = {
Preview: "preview",
Production: "production",
} as const;
export type GetProjectEnvironmentsProjectsTarget = ClosedEnum<
typeof GetProjectEnvironmentsProjectsTarget
>;
export type GetProjectEnvironmentsProjects1 = {
type: "system";
target: GetProjectEnvironmentsProjectsTarget;
};
export type GetProjectProjectsEnvironments =
| GetProjectEnvironmentsProjects1
| GetProjectEnvironmentsProjects2;
/**
* `enabled: true` with empty `sources` is deny-all.
*/
export type GetProjectDeploymentSources = {
sources: Array<GetProjectProjectsSources>;
enabled: boolean;
environments: Array<
GetProjectEnvironmentsProjects1 | GetProjectEnvironmentsProjects2
>;
};
/**
* Project shape. `null` on a rule list clears the project's override for that rule type (fall back to team for every env); omitting is equivalent. Setting `deploymentPolicy` itself to `null` clears every override at once. Kept structurally distinct from {@link TeamDeploymentPolicy} so the two storage locations don't share a type by accident.
*/
export type GetProjectDeploymentPolicy = {
gitSources?: Array<GetProjectGitSources> | null | undefined;
deploymentSources?: Array<GetProjectDeploymentSources> | null | undefined;
};
export const GetProjectTier = {
Advanced: "advanced",
Critical: "critical",
Priority: "priority",
} as const;
export type GetProjectTier = ClosedEnum<typeof GetProjectTier>;
/**
* Billing mode. Always 'flat' for flat-rate projects.
*/
export const GetProjectKind = {
Flat: "flat",
} as const;
/**
* Billing mode. Always 'flat' for flat-rate projects.
*/
export type GetProjectKind = ClosedEnum<typeof GetProjectKind>;
export type GetProjectUsageStatus = {
/**
* Billing mode. Always 'flat' for flat-rate projects.
*/
kind: GetProjectKind;
/**
* Timestamp until which the project has exceeded its CDN allowance.
*/
exceededAllowanceUntil?: number | undefined;
/**
* Timestamp until which throttling is bypassed (project pays list rates for overage).
*/
bypassThrottleUntil?: number | undefined;
/**
* Per-project throttle, set explicitly for this project (e.g. via the per-project Flat Rate CDN endpoint).
*/
throttled?: boolean | undefined;
/**
* Synced from `team.billing.usageStatus.throttled`. When `true`, the team has throttled all of its projects regardless of `throttled`. The effective throttle the CDN enforces is `throttled || teamThrottled`.
*/
teamThrottled?: boolean | undefined;
};
export type GetProjectFeatures = {
webAnalytics?: boolean | undefined;
};
export type GetProjectHistory = {
scanner: string;
reason: string;
by: string;
byId: string;
at: number;
};
export const GetProjectProjectsResponseAction = {
Blocked: "blocked",
} as const;
export type GetProjectProjectsResponseAction = ClosedEnum<
typeof GetProjectProjectsResponseAction
>;
export type GetProjectBlock = {
action: GetProjectProjectsResponseAction;
reason: string;
statusCode: number;
createdAt: number;
caseId?: string | undefined;
actor?: string | undefined;
comment?: string | undefined;
ineligibleForAppeal?: boolean | undefined;
isCascading?: boolean | undefined;
};
export type GetProjectHasProjectsResponse200Value = {
eq: string;
};
export type GetProjectHasProjects2 = {
type: "host";
value: GetProjectHasProjectsResponse200Value;
};
export const GetProjectHasProjectsKey = {
XVercelIpCountry: "x-vercel-ip-country",
} as const;
export type GetProjectHasProjectsKey = ClosedEnum<
typeof GetProjectHasProjectsKey
>;
export type GetProjectHasProjectsResponseValue = {
eq: string;
};
export type GetProjectHasProjects1 = {
type: "header";
key: GetProjectHasProjectsKey;
value: GetProjectHasProjectsResponseValue;
};
export type GetProjectRouteProjectsHas =
| GetProjectHasProjects1
| GetProjectHasProjects2;
export const GetProjectRouteProjectsAction = {
BlockLegalCwc: "block_legal_cwc",
} as const;
export type GetProjectRouteProjectsAction = ClosedEnum<
typeof GetProjectRouteProjectsAction
>;
export type GetProjectRouteProjectsMitigate = {
action: GetProjectRouteProjectsAction;
};
export type GetProjectRouteProjects2 = {
has: Array<GetProjectHasProjects1 | GetProjectHasProjects2>;
mitigate: GetProjectRouteProjectsMitigate;
src?: string | undefined;
};
export type GetProjectRouteProjects1 = {
src: string;
status: number;
expiry?: number | undefined;
};
export type GetProjectBlockHistoryProjectsRoute =
| GetProjectRouteProjects1
| GetProjectRouteProjects2;
export type GetProjectBlockHistory4 = {
action: "route-unblocked";
route: GetProjectRouteProjects1 | GetProjectRouteProjects2;
statusCode?: number | undefined;
createdAt: number;
caseId?: string | undefined;
actor?: string | undefined;
comment?: string | undefined;
ineligibleForAppeal?: boolean | undefined;
isCascading?: boolean | undefined;
};
export type GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue = {
eq: string;
};
export type GetProjectHasProjectsResponse2 = {
type: "host";
value: GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue;
};
export const GetProjectHasKey = {
XVercelIpCountry: "x-vercel-ip-country",
} as const;
export type GetProjectHasKey = ClosedEnum<typeof GetProjectHasKey>;
export type GetProjectHasProjectsResponse200ApplicationJSONValue = {
eq: string;
};
export type GetProjectHasProjectsResponse1 = {
type: "header";
key: GetProjectHasKey;
value: GetProjectHasProjectsResponse200ApplicationJSONValue;
};
export type GetProjectRouteHas =
| GetProjectHasProjectsResponse1
| GetProjectHasProjectsResponse2;
export const GetProjectRouteAction = {
BlockLegalCwc: "block_legal_cwc",
} as const;
export type GetProjectRouteAction = ClosedEnum<typeof GetProjectRouteAction>;
export type GetProjectRouteMitigate = {
action: GetProjectRouteAction;
};
export type GetProjectRoute2 = {
has: Array<GetProjectHasProjectsResponse1 | GetProjectHasProjectsResponse2>;
mitigate: GetProjectRouteMitigate;
src?: string | undefined;
};
export type GetProjectRoute1 = {
src: string;
status: number;
expiry?: number | undefined;
};
export type GetProjectBlockHistoryRoute = GetProjectRoute1 | GetProjectRoute2;
export type GetProjectBlockHistory3 = {
action: "route-blocked";
route: GetProjectRoute1 | GetProjectRoute2;
reason: string;
createdAt: number;
caseId?: string | undefined;
actor?: string | undefined;
comment?: string | undefined;
ineligibleForAppeal?: boolean | undefined;
isCascading?: boolean | undefined;
};
export type GetProjectBlockHistory2 = {
action: "unblocked";
createdAt: number;
caseId?: string | undefined;
actor?: string | undefined;
comment?: string | undefined;
ineligibleForAppeal?: boolean | undefined;
isCascading?: boolean | undefined;
};
export type GetProjectBlockHistory1 = {
action: "blocked";
reason: string;
statusCode: number;
createdAt: number;
caseId?: string | undefined;
actor?: string | undefined;
comment?: string | undefined;
ineligibleForAppeal?: boolean | undefined;
isCascading?: boolean | undefined;
};
export type GetProjectBlockHistory =
| GetProjectBlockHistory1
| GetProjectBlockHistory2
| GetProjectBlockHistory3
| GetProjectBlockHistory4;
export const GetProjectProjectsResponse200Action = {
AddDeploymentInterstitial: "add-deployment-interstitial",
AddProjectInterstitial: "add-project-interstitial",
RemoveDeploymentInterstitial: "remove-deployment-interstitial",
RemoveProjectInterstitial: "remove-project-interstitial",
} as const;
export type GetProjectProjectsResponse200Action = ClosedEnum<
typeof GetProjectProjectsResponse200Action
>;
export type GetProjectInterstitialHistory = {
action: GetProjectProjectsResponse200Action;
createdAt: number;
caseId?: string | undefined;
reason?: string | undefined;
actor?: string | undefined;
comment?: string | undefined;
};
export type GetProjectAbuse = {
scanner?: string | undefined;
history: Array<GetProjectHistory>;
updatedAt: number;
block?: GetProjectBlock | undefined;
blockHistory?:
| Array<
| GetProjectBlockHistory1
| GetProjectBlockHistory2
| GetProjectBlockHistory3
| GetProjectBlockHistory4
>
| undefined;
interstitial?: boolean | undefined;
interstitialHistory?: Array<GetProjectInterstitialHistory> | undefined;
};
export type GetProjectHasProjectsValue = {
eq: string;
};
export type GetProjectHas2 = {
type: "host";
value: GetProjectHasProjectsValue;
};
export const HasKey = {
XVercelIpCountry: "x-vercel-ip-country",
} as const;
export type HasKey = ClosedEnum<typeof HasKey>;
export type GetProjectHasValue = {
eq: string;
};
export type GetProjectHas1 = {
type: "header";
key: HasKey;
value: GetProjectHasValue;
};
export type GetProjectInternalRoutesHas = GetProjectHas1 | GetProjectHas2;
export const GetProjectInternalRoutesAction = {
BlockLegalCwc: "block_legal_cwc",
} as const;
export type GetProjectInternalRoutesAction = ClosedEnum<
typeof GetProjectInternalRoutesAction
>;
export type GetProjectInternalRoutesMitigate = {
action: GetProjectInternalRoutesAction;
};
/** @internal */
export const GetProjectProjectsFunctionDefaultMemoryType$inboundSchema:
z.ZodNativeEnum<typeof GetProjectProjectsFunctionDefaultMemoryType> = z
.nativeEnum(GetProjectProjectsFunctionDefaultMemoryType);
/** @internal */
export const GetProjectProjectsBuildMachineType$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsBuildMachineType
> = z.nativeEnum(GetProjectProjectsBuildMachineType);
/** @internal */
export const GetProjectProjectsBuildMachineSelection$inboundSchema:
z.ZodNativeEnum<typeof GetProjectProjectsBuildMachineSelection> = z
.nativeEnum(GetProjectProjectsBuildMachineSelection);
/** @internal */
export const GetProjectProjectsBuildMachineElasticReason$inboundSchema:
z.ZodNativeEnum<typeof GetProjectProjectsBuildMachineElasticReason> = z
.nativeEnum(GetProjectProjectsBuildMachineElasticReason);
/** @internal */
export const GetProjectProjectsConfiguration$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsConfiguration
> = z.nativeEnum(GetProjectProjectsConfiguration);
/** @internal */
export const GetProjectProjectsBuildQueue$inboundSchema: z.ZodType<
GetProjectProjectsBuildQueue,
z.ZodTypeDef,
unknown
> = z.object({
configuration: types.optional(GetProjectProjectsConfiguration$inboundSchema),
});
export function getProjectProjectsBuildQueueFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsBuildQueue, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsBuildQueue$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsBuildQueue' from JSON`,
);
}
/** @internal */
export const GetProjectDefaultResourceConfig$inboundSchema: z.ZodType<
GetProjectDefaultResourceConfig,
z.ZodTypeDef,
unknown
> = z.object({
elasticConcurrencyEnabled: types.optional(types.boolean()),
fluid: types.optional(types.boolean()),
functionDefaultRegions: z.array(types.string()),
functionDefaultTimeout: types.optional(types.number()),
functionDefaultMemoryType: types.optional(
GetProjectProjectsFunctionDefaultMemoryType$inboundSchema,
),
functionZeroConfigFailover: types.optional(types.boolean()),
buildMachineType: types.optional(
GetProjectProjectsBuildMachineType$inboundSchema,
),
buildMachineSelection: types.optional(
GetProjectProjectsBuildMachineSelection$inboundSchema,
),
buildMachineElasticLastUpdated: types.optional(types.number()),
buildMachineElasticReason: types.optional(
GetProjectProjectsBuildMachineElasticReason$inboundSchema,
),
isNSNBDisabled: types.optional(types.boolean()),
buildQueue: types.optional(
z.lazy(() => GetProjectProjectsBuildQueue$inboundSchema),
),
enableFunctionsBeta: types.optional(types.boolean()),
});
export function getProjectDefaultResourceConfigFromJSON(
jsonString: string,
): SafeParseResult<GetProjectDefaultResourceConfig, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectDefaultResourceConfig$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectDefaultResourceConfig' from JSON`,
);
}
/** @internal */
export const GetProjectStaticIps$inboundSchema: z.ZodType<
GetProjectStaticIps,
z.ZodTypeDef,
unknown
> = z.object({
builds: types.boolean(),
enabled: types.boolean(),
regions: z.array(types.string()),
});
export function getProjectStaticIpsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectStaticIps, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectStaticIps$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectStaticIps' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsDeploymentType$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsDeploymentType
> = z.nativeEnum(GetProjectProjectsDeploymentType);
/** @internal */
export const GetProjectCve55182MigrationAppliedFrom$inboundSchema:
z.ZodNativeEnum<typeof GetProjectCve55182MigrationAppliedFrom> = z.nativeEnum(
GetProjectCve55182MigrationAppliedFrom,
);
/** @internal */
export const GetProjectApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema:
z.ZodNativeEnum<
typeof GetProjectApril2026SecurityIncidentMigrationAppliedFrom
> = z.nativeEnum(GetProjectApril2026SecurityIncidentMigrationAppliedFrom);
/** @internal */
export const GetProjectSsoProtection$inboundSchema: z.ZodType<
GetProjectSsoProtection,
z.ZodTypeDef,
unknown
> = z.object({
deploymentType: GetProjectProjectsDeploymentType$inboundSchema,
cve55182MigrationAppliedFrom: z.nullable(
GetProjectCve55182MigrationAppliedFrom$inboundSchema,
).optional(),
april2026SecurityIncidentMigrationAppliedFrom: z.nullable(
GetProjectApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema,
).optional(),
});
export function getProjectSsoProtectionFromJSON(
jsonString: string,
): SafeParseResult<GetProjectSsoProtection, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectSsoProtection$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectSsoProtection' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsAliasAssigned$inboundSchema: z.ZodType<
GetProjectProjectsAliasAssigned,
z.ZodTypeDef,
unknown
> = smartUnion([types.number(), types.boolean()]);
export function getProjectProjectsAliasAssignedFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsAliasAssigned, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsAliasAssigned$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsAliasAssigned' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsAliasError$inboundSchema: z.ZodType<
GetProjectProjectsAliasError,
z.ZodTypeDef,
unknown
> = z.object({
code: types.string(),
message: types.string(),
});
export function getProjectProjectsAliasErrorFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsAliasError, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsAliasError$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsAliasError' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema:
z.ZodNativeEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType
> = z.nativeEnum(
GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType,
);
/** @internal */
export const GetProjectProjectsResponseBranchMatcher$inboundSchema: z.ZodType<
GetProjectProjectsResponseBranchMatcher,
z.ZodTypeDef,
unknown
> = z.object({
type:
GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema,
pattern: types.string(),
});
export function getProjectProjectsResponseBranchMatcherFromJSON(
jsonString: string,
): SafeParseResult<
GetProjectProjectsResponseBranchMatcher,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetProjectProjectsResponseBranchMatcher$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetProjectProjectsResponseBranchMatcher' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsBuilds$inboundSchema: z.ZodType<
GetProjectProjectsBuilds,
z.ZodTypeDef,
unknown
> = z.object({
use: types.string(),
src: types.optional(types.string()),
dest: types.optional(types.string()),
});
export function getProjectProjectsBuildsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsBuilds, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsBuilds$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsBuilds' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsChecksConclusion$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsChecksConclusion
> = z.nativeEnum(GetProjectProjectsChecksConclusion);
/** @internal */
export const GetProjectProjectsChecksState$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsChecksState
> = z.nativeEnum(GetProjectProjectsChecksState);
/** @internal */
export const GetProjectProjectsResponseCreator$inboundSchema: z.ZodType<
GetProjectProjectsResponseCreator,
z.ZodTypeDef,
unknown
> = z.object({
email: types.string(),
githubLogin: types.optional(types.string()),
gitlabLogin: types.optional(types.string()),
uid: types.string(),
username: types.string(),
});
export function getProjectProjectsResponseCreatorFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsResponseCreator, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsResponseCreator$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsResponseCreator' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsOidcTokenClaims$inboundSchema: z.ZodType<
GetProjectProjectsOidcTokenClaims,
z.ZodTypeDef,
unknown
> = z.object({
iss: types.string(),
sub: types.string(),
scope: types.string(),
aud: types.string(),
owner: types.string(),
owner_id: types.string(),
project: types.string(),
project_id: types.string(),
environment: types.string(),
custom_environment_id: types.optional(types.string()),
mfe_group_ids: types.optional(z.array(types.string())),
plan: types.optional(types.string()),
}).transform((v) => {
return remap$(v, {
"owner_id": "ownerId",
"project_id": "projectId",
"custom_environment_id": "customEnvironmentId",
"mfe_group_ids": "mfeGroupIds",
});
});
export function getProjectProjectsOidcTokenClaimsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsOidcTokenClaims, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsOidcTokenClaims$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsOidcTokenClaims' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsPlan$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsPlan
> = z.nativeEnum(GetProjectProjectsPlan);
/** @internal */
export const GetProjectProjectsReadyState$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsReadyState
> = z.nativeEnum(GetProjectProjectsReadyState);
/** @internal */
export const GetProjectProjectsReadySubstate$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsReadySubstate
> = z.nativeEnum(GetProjectProjectsReadySubstate);
/** @internal */
export const GetProjectProjectsResponse200Type$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsResponse200Type
> = z.nativeEnum(GetProjectProjectsResponse200Type);
/** @internal */
export const GetProjectTargets$inboundSchema: z.ZodType<
GetProjectTargets,
z.ZodTypeDef,
unknown
> = z.object({
id: types.string(),
alias: types.optional(z.array(types.string())),
aliasAssigned: z.nullable(smartUnion([types.number(), types.boolean()]))
.optional(),
aliasError: z.nullable(
z.lazy(() => GetProjectProjectsAliasError$inboundSchema),
).optional(),
aliasFinal: z.nullable(types.string()).optional(),
automaticAliases: types.optional(z.array(types.string())),
branchMatcher: types.optional(
z.lazy(() => GetProjectProjectsResponseBranchMatcher$inboundSchema),
),
buildingAt: types.optional(types.number()),
builds: types.optional(
z.array(z.lazy(() => GetProjectProjectsBuilds$inboundSchema)),
),
checksConclusion: types.optional(
GetProjectProjectsChecksConclusion$inboundSchema,
),
checksState: types.optional(GetProjectProjectsChecksState$inboundSchema),
connectBuildsEnabled: types.optional(types.boolean()),
connectConfigurationId: types.optional(types.string()),
createdAt: types.number(),
createdIn: types.string(),
creator: types.nullable(
z.lazy(() => GetProjectProjectsResponseCreator$inboundSchema),
),
deletedAt: types.optional(types.number()),
deploymentHostname: types.string(),
forced: types.optional(types.boolean()),
name: types.string(),
meta: types.optional(z.record(types.string())),
monorepoManager: z.nullable(types.string()).optional(),
oidcTokenClaims: types.optional(
z.lazy(() => GetProjectProjectsOidcTokenClaims$inboundSchema),
),
plan: GetProjectProjectsPlan$inboundSchema,
previewCommentsEnabled: types.optional(types.boolean()),
private: types.boolean(),
readyAt: types.optional(types.number()),
readyState: GetProjectProjectsReadyState$inboundSchema,
readySubstate: types.optional(GetProjectProjectsReadySubstate$inboundSchema),
requestedAt: types.optional(types.number()),
target: z.nullable(types.string()).optional(),
teamId: z.nullable(types.string()).optional(),
type: GetProjectProjectsResponse200Type$inboundSchema,
url: types.string(),
userId: types.optional(types.string()),
withCache: types.optional(types.boolean()),
});
export function getProjectTargetsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectTargets, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTargets$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTargets' from JSON`,
);
}
/** @internal */
export const GetProjectPermissions$inboundSchema: z.ZodType<
GetProjectPermissions,
z.ZodTypeDef,
unknown
> = z.object({
oauth2Connection: types.optional(z.array(ACLAction$inboundSchema)),
user: types.optional(z.array(ACLAction$inboundSchema)),
userConnection: types.optional(z.array(ACLAction$inboundSchema)),
userMfaConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
userPreference: types.optional(z.array(ACLAction$inboundSchema)),
userSudo: types.optional(z.array(ACLAction$inboundSchema)),
webAuthn: types.optional(z.array(ACLAction$inboundSchema)),
accessGroup: types.optional(z.array(ACLAction$inboundSchema)),
agent: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayApiKey: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayApiKeyBypassAll: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayApiKeyOwnedBySelf: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayApiKeySpendAttribution: types.optional(
z.array(ACLAction$inboundSchema),
),
aiGatewayApiKeyZdrExemption: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayBudget: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayCredits: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayPrivateModels: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayGuardrails: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayRules: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewaySettings: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayTranscripts: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayTranscriptsSettings: types.optional(
z.array(ACLAction$inboundSchema),
),
aiGatewayUsage: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayVirtualModelConfigs: types.optional(
z.array(ACLAction$inboundSchema),
),
alerts: types.optional(z.array(ACLAction$inboundSchema)),
alertRules: types.optional(z.array(ACLAction$inboundSchema)),
aliasGlobal: types.optional(z.array(ACLAction$inboundSchema)),
analyticsSampling: types.optional(z.array(ACLAction$inboundSchema)),
analyticsUsage: types.optional(z.array(ACLAction$inboundSchema)),
apiKey: types.optional(z.array(ACLAction$inboundSchema)),
apiKeyAiGateway: types.optional(z.array(ACLAction$inboundSchema)),
apiKeyOwnedBySelf: types.optional(z.array(ACLAction$inboundSchema)),
oauth2Application: types.optional(z.array(ACLAction$inboundSchema)),
vercelAppInstallation: types.optional(z.array(ACLAction$inboundSchema)),
vercelAppInstallationRequest: types.optional(
z.array(ACLAction$inboundSchema),
),
auditLog: types.optional(z.array(ACLAction$inboundSchema)),
automation: types.optional(z.array(ACLAction$inboundSchema)),
billingAddress: types.optional(z.array(ACLAction$inboundSchema)),
billingInformation: types.optional(z.array(ACLAction$inboundSchema)),
billingInvoice: types.optional(z.array(ACLAction$inboundSchema)),
billingInvoiceEmailRecipient: types.optional(
z.array(ACLAction$inboundSchema),
),
billingInvoiceLanguage: types.optional(z.array(ACLAction$inboundSchema)),
billingPlan: types.optional(z.array(ACLAction$inboundSchema)),
billingPurchaseOrder: types.optional(z.array(ACLAction$inboundSchema)),
billingRefund: types.optional(z.array(ACLAction$inboundSchema)),
billingTaxId: types.optional(z.array(ACLAction$inboundSchema)),
blob: types.optional(z.array(ACLAction$inboundSchema)),
blobStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
budget: types.optional(z.array(ACLAction$inboundSchema)),
cacheArtifact: types.optional(z.array(ACLAction$inboundSchema)),
cacheArtifactUsageEvent: types.optional(z.array(ACLAction$inboundSchema)),
codeChecks: types.optional(z.array(ACLAction$inboundSchema)),
codeOwners: types.optional(z.array(ACLAction$inboundSchema)),
ciInvocations: types.optional(z.array(ACLAction$inboundSchema)),
ciLogs: types.optional(z.array(ACLAction$inboundSchema)),
concurrentBuilds: types.optional(z.array(ACLAction$inboundSchema)),
connect: types.optional(z.array(ACLAction$inboundSchema)),
connectConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
connectLogs: types.optional(z.array(ACLAction$inboundSchema)),
connexClient: types.optional(z.array(ACLAction$inboundSchema)),
connexClientProject: types.optional(z.array(ACLAction$inboundSchema)),
connexContact: types.optional(z.array(ACLAction$inboundSchema)),
connexInstallation: types.optional(z.array(ACLAction$inboundSchema)),
connexToken: types.optional(z.array(ACLAction$inboundSchema)),
buildMachineDefault: types.optional(z.array(ACLAction$inboundSchema)),
cursorOriginInstallation: types.optional(z.array(ACLAction$inboundSchema)),
dataCacheBillingSettings: types.optional(z.array(ACLAction$inboundSchema)),
defaultDeploymentProtection: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPolicy: types.optional(z.array(ACLAction$inboundSchema)),
domain: types.optional(z.array(ACLAction$inboundSchema)),
domainAcceptDelegation: types.optional(z.array(ACLAction$inboundSchema)),
domainAuthCodes: types.optional(z.array(ACLAction$inboundSchema)),
domainCertificate: types.optional(z.array(ACLAction$inboundSchema)),
domainCheckConfig: types.optional(z.array(ACLAction$inboundSchema)),
domainMove: types.optional(z.array(ACLAction$inboundSchema)),
domainPurchase: types.optional(z.array(ACLAction$inboundSchema)),
domainRecord: types.optional(z.array(ACLAction$inboundSchema)),
domainTransferIn: types.optional(z.array(ACLAction$inboundSchema)),
drain: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfig: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigItem: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigSchema: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigToken: types.optional(z.array(ACLAction$inboundSchema)),
endpointVerification: types.optional(z.array(ACLAction$inboundSchema)),
event: types.optional(z.array(ACLAction$inboundSchema)),
fileUpload: types.optional(z.array(ACLAction$inboundSchema)),
flagsExplorerSubscription: types.optional(z.array(ACLAction$inboundSchema)),
gitRepository: types.optional(z.array(ACLAction$inboundSchema)),
imageOptimizationNewPrice: types.optional(z.array(ACLAction$inboundSchema)),
integration: types.optional(z.array(ACLAction$inboundSchema)),
integrationAccount: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfigurationProjects: types.optional(
z.array(ACLAction$inboundSchema),
),
integrationConfigurationRole: types.optional(
z.array(ACLAction$inboundSchema),
),
integrationConfigurationTransfer: types.optional(
z.array(ACLAction$inboundSchema),
),
integrationDeploymentAction: types.optional(z.array(ACLAction$inboundSchema)),
integrationEvent: types.optional(z.array(ACLAction$inboundSchema)),
integrationLog: types.optional(z.array(ACLAction$inboundSchema)),
integrationResource: types.optional(z.array(ACLAction$inboundSchema)),
integrationResourceData: types.optional(z.array(ACLAction$inboundSchema)),
integrationResourceReplCommand: types.optional(
z.array(ACLAction$inboundSchema),
),
integrationResourceSecrets: types.optional(z.array(ACLAction$inboundSchema)),
integrationSSOSession: types.optional(z.array(ACLAction$inboundSchema)),
integrationStrict: types.optional(z.array(ACLAction$inboundSchema)),
integrationStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
integrationVercelConfigurationOverride: types.optional(
z.array(ACLAction$inboundSchema),
),
integrationPullRequest: types.optional(z.array(ACLAction$inboundSchema)),
ipBlocking: types.optional(z.array(ACLAction$inboundSchema)),
jobGlobal: types.optional(z.array(ACLAction$inboundSchema)),
kmsIssuer: types.optional(z.array(ACLAction$inboundSchema)),
kmsProjectGrant: types.optional(z.array(ACLAction$inboundSchema)),
logDrain: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceBillingData: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceExperimentationEdgeConfigData: types.optional(
z.array(ACLAction$inboundSchema),
),
marketplaceExperimentationItem: types.optional(
z.array(ACLAction$inboundSchema),
),
marketplaceFlexCommit: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceInstallationMember: types.optional(
z.array(ACLAction$inboundSchema),
),
marketplaceInvoice: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceSettings: types.optional(z.array(ACLAction$inboundSchema)),
Monitoring: types.optional(z.array(ACLAction$inboundSchema)),
monitoringAlert: types.optional(z.array(ACLAction$inboundSchema)),
monitoringChart: types.optional(z.array(ACLAction$inboundSchema)),
monitoringQuery: types.optional(z.array(ACLAction$inboundSchema)),
monitoringSettings: types.optional(z.array(ACLAction$inboundSchema)),
notificationCustomerBudget: types.optional(z.array(ACLAction$inboundSchema)),
notificationDeploymentFailed: types.optional(
z.array(ACLAction$inboundSchema),
),
notificationDomainConfiguration: types.optional(
z.array(ACLAction$inboundSchema),
),
notificationDomainExpire: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainMoved: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainPurchase: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainRenewal: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainTransfer: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainUnverified: types.optional(
z.array(ACLAction$inboundSchema),
),
NotificationMonitoringAlert: types.optional(z.array(ACLAction$inboundSchema)),
notificationPaymentFailed: types.optional(z.array(ACLAction$inboundSchema)),
notificationPreferences: types.optional(z.array(ACLAction$inboundSchema)),
notificationStatementOfReasons: types.optional(
z.array(ACLAction$inboundSchema),
),
notificationUsageAlert: types.optional(z.array(ACLAction$inboundSchema)),
oidcFederationPolicy: types.optional(z.array(ACLAction$inboundSchema)),
observabilityConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
observabilityFunnel: types.optional(z.array(ACLAction$inboundSchema)),
observabilityNotebook: types.optional(z.array(ACLAction$inboundSchema)),
openTelemetryEndpoint: types.optional(z.array(ACLAction$inboundSchema)),
ownEvent: types.optional(z.array(ACLAction$inboundSchema)),
organization: types.optional(z.array(ACLAction$inboundSchema)),
organizationDomain: types.optional(z.array(ACLAction$inboundSchema)),
organizationTeam: types.optional(z.array(ACLAction$inboundSchema)),
passwordProtectionInvoiceItem: types.optional(
z.array(ACLAction$inboundSchema),
),
paymentMethod: types.optional(z.array(ACLAction$inboundSchema)),
permissions: types.optional(z.array(ACLAction$inboundSchema)),
postgres: types.optional(z.array(ACLAction$inboundSchema)),
postgresStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
previewDeploymentSuffix: types.optional(z.array(ACLAction$inboundSchema)),
privateCloudAccount: types.optional(z.array(ACLAction$inboundSchema)),
projectTransferIn: types.optional(z.array(ACLAction$inboundSchema)),
projectTransferRequest: types.optional(z.array(ACLAction$inboundSchema)),
proTrialOnboarding: types.optional(z.array(ACLAction$inboundSchema)),
rateLimit: types.optional(z.array(ACLAction$inboundSchema)),
redis: types.optional(z.array(ACLAction$inboundSchema)),
redisStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
remoteCaching: types.optional(z.array(ACLAction$inboundSchema)),
repository: types.optional(z.array(ACLAction$inboundSchema)),
samlConfig: types.optional(z.array(ACLAction$inboundSchema)),
secret: types.optional(z.array(ACLAction$inboundSchema)),
securityConfig: types.optional(z.array(ACLAction$inboundSchema)),
sensitiveEnvironmentVariablePolicy: types.optional(
z.array(ACLAction$inboundSchema),
),
sharedEnvVars: types.optional(z.array(ACLAction$inboundSchema)),
sharedEnvVarsProduction: types.optional(z.array(ACLAction$inboundSchema)),
space: types.optional(z.array(ACLAction$inboundSchema)),
spaceRun: types.optional(z.array(ACLAction$inboundSchema)),
storeIsLocked: types.optional(z.array(ACLAction$inboundSchema)),
storeTokenSetSensitive: types.optional(z.array(ACLAction$inboundSchema)),
storeTransfer: types.optional(z.array(ACLAction$inboundSchema)),
supportCase: types.optional(z.array(ACLAction$inboundSchema)),
supportCaseComment: types.optional(z.array(ACLAction$inboundSchema)),
team: types.optional(z.array(ACLAction$inboundSchema)),
teamAccessRequest: types.optional(z.array(ACLAction$inboundSchema)),
teamFellowMembership: types.optional(z.array(ACLAction$inboundSchema)),
teamGitExclusivity: types.optional(z.array(ACLAction$inboundSchema)),
teamInvite: types.optional(z.array(ACLAction$inboundSchema)),
teamInviteCode: types.optional(z.array(ACLAction$inboundSchema)),
teamInviteLink: types.optional(z.array(ACLAction$inboundSchema)),
teamJoin: types.optional(z.array(ACLAction$inboundSchema)),
teamMemberMfaStatus: types.optional(z.array(ACLAction$inboundSchema)),
teamMicrofrontends: types.optional(z.array(ACLAction$inboundSchema)),
teamOwnMembership: types.optional(z.array(ACLAction$inboundSchema)),
teamOwnMembershipDisconnectSAML: types.optional(
z.array(ACLAction$inboundSchema),
),
teamSudo: types.optional(z.array(ACLAction$inboundSchema)),
teamTokenInvalidation: types.optional(z.array(ACLAction$inboundSchema)),
token: types.optional(z.array(ACLAction$inboundSchema)),
toolbarComment: types.optional(z.array(ACLAction$inboundSchema)),
usage: types.optional(z.array(ACLAction$inboundSchema)),
usageCycle: types.optional(z.array(ACLAction$inboundSchema)),
vcrRepository: types.optional(z.array(ACLAction$inboundSchema)),
vpcPeeringConnection: types.optional(z.array(ACLAction$inboundSchema)),
webAnalyticsPlan: types.optional(z.array(ACLAction$inboundSchema)),
webhook: types.optional(z.array(ACLAction$inboundSchema)),
"webhook-event": types.optional(z.array(ACLAction$inboundSchema)),
aliasProject: types.optional(z.array(ACLAction$inboundSchema)),
aliasProtectionBypass: types.optional(z.array(ACLAction$inboundSchema)),
bulkRedirects: types.optional(z.array(ACLAction$inboundSchema)),
buildMachine: types.optional(z.array(ACLAction$inboundSchema)),
connectConfigurationLink: types.optional(z.array(ACLAction$inboundSchema)),
dataCacheNamespace: types.optional(z.array(ACLAction$inboundSchema)),
deployment: types.optional(z.array(ACLAction$inboundSchema)),
deploymentBuildLogs: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheck: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheckPreview: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheckReRunFromProductionBranch: types.optional(
z.array(ACLAction$inboundSchema),
),
deploymentProductionGit: types.optional(z.array(ACLAction$inboundSchema)),
deploymentV0: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPreview: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPrivate: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPromote: types.optional(z.array(ACLAction$inboundSchema)),
deploymentRollback: types.optional(z.array(ACLAction$inboundSchema)),
edgeCacheNamespace: types.optional(z.array(ACLAction$inboundSchema)),
environments: types.optional(z.array(ACLAction$inboundSchema)),
job: types.optional(z.array(ACLAction$inboundSchema)),
logs: types.optional(z.array(ACLAction$inboundSchema)),
logsPreset: types.optional(z.array(ACLAction$inboundSchema)),
observabilityData: types.optional(z.array(ACLAction$inboundSchema)),
onDemandBuild: types.optional(z.array(ACLAction$inboundSchema)),
onDemandConcurrency: types.optional(z.array(ACLAction$inboundSchema)),
optionsAllowlist: types.optional(z.array(ACLAction$inboundSchema)),
passwordProtection: types.optional(z.array(ACLAction$inboundSchema)),
privateLinkEndpoint: types.optional(z.array(ACLAction$inboundSchema)),
productionAliasProtectionBypass: types.optional(
z.array(ACLAction$inboundSchema),
),
productionShareableLink: types.optional(z.array(ACLAction$inboundSchema)),
project: types.optional(z.array(ACLAction$inboundSchema)),
projectAccessGroup: types.optional(z.array(ACLAction$inboundSchema)),
projectAnalyticsSampling: types.optional(z.array(ACLAction$inboundSchema)),
projectAnalyticsUsage: types.optional(z.array(ACLAction$inboundSchema)),
projectCheck: types.optional(z.array(ACLAction$inboundSchema)),
projectCheckRun: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentExpiration: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentHook: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentProtectionStrict: types.optional(
z.array(ACLAction$inboundSchema),
),
projectDomain: types.optional(z.array(ACLAction$inboundSchema)),
projectDomainCheckConfig: types.optional(z.array(ACLAction$inboundSchema)),
projectDomainMove: types.optional(z.array(ACLAction$inboundSchema)),
projectDomainVerify: types.optional(z.array(ACLAction$inboundSchema)),
projectEvent: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVars: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVarsProduction: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVarsUnownedByIntegration: types.optional(
z.array(ACLAction$inboundSchema),
),
projectFlags: types.optional(z.array(ACLAction$inboundSchema)),
projectFlagsProduction: types.optional(z.array(ACLAction$inboundSchema)),
projectFlagsSdkKey: types.optional(z.array(ACLAction$inboundSchema)),
projectFromV0: types.optional(z.array(ACLAction$inboundSchema)),
projectId: types.optional(z.array(ACLAction$inboundSchema)),
projectIntegrationConfiguration: types.optional(
z.array(ACLAction$inboundSchema),
),
projectLink: types.optional(z.array(ACLAction$inboundSchema)),
projectMember: types.optional(z.array(ACLAction$inboundSchema)),
projectMonitoring: types.optional(z.array(ACLAction$inboundSchema)),
projectOIDCToken: types.optional(z.array(ACLAction$inboundSchema)),
projectPermissions: types.optional(z.array(ACLAction$inboundSchema)),
projectProductionBranch: types.optional(z.array(ACLAction$inboundSchema)),
projectProtectionBypass: types.optional(z.array(ACLAction$inboundSchema)),
projectRollingRelease: types.optional(z.array(ACLAction$inboundSchema)),
projectRoutes: types.optional(z.array(ACLAction$inboundSchema)),
projectSupportCase: types.optional(z.array(ACLAction$inboundSchema)),
projectSupportCaseComment: types.optional(z.array(ACLAction$inboundSchema)),
projectTier: types.optional(z.array(ACLAction$inboundSchema)),
projectTransfer: types.optional(z.array(ACLAction$inboundSchema)),
projectTransferOut: types.optional(z.array(ACLAction$inboundSchema)),
projectUsage: types.optional(z.array(ACLAction$inboundSchema)),
pageIntegrity: types.optional(z.array(ACLAction$inboundSchema)),
seawallConfig: types.optional(z.array(ACLAction$inboundSchema)),
securityPlusConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
shareableLink: types.optional(z.array(ACLAction$inboundSchema)),
shareableLinkStrict: types.optional(z.array(ACLAction$inboundSchema)),
sharedEnvVarConnection: types.optional(z.array(ACLAction$inboundSchema)),
skewProtection: types.optional(z.array(ACLAction$inboundSchema)),
analytics: types.optional(z.array(ACLAction$inboundSchema)),
trustedIps: types.optional(z.array(ACLAction$inboundSchema)),
trustedSources: types.optional(z.array(ACLAction$inboundSchema)),
v0Chat: types.optional(z.array(ACLAction$inboundSchema)),
vercelAuth: types.optional(z.array(ACLAction$inboundSchema)),
vercelRun: types.optional(z.array(ACLAction$inboundSchema)),
webAnalytics: types.optional(z.array(ACLAction$inboundSchema)),
workflowRunData: types.optional(z.array(ACLAction$inboundSchema)),
}).transform((v) => {
return remap$(v, {
"Monitoring": "monitoring",
"NotificationMonitoringAlert": "notificationMonitoringAlert",
"webhook-event": "webhookEvent",
"projectFlagsSdkKey": "projectFlagsSDKKey",
});
});
export function getProjectPermissionsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectPermissions, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectPermissions$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectPermissions' from JSON`,
);
}
/** @internal */
export const GetProjectLastRollbackTarget$inboundSchema: z.ZodType<
GetProjectLastRollbackTarget,
z.ZodTypeDef,
unknown
> = z.object({});
export function getProjectLastRollbackTargetFromJSON(
jsonString: string,
): SafeParseResult<GetProjectLastRollbackTarget, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectLastRollbackTarget$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectLastRollbackTarget' from JSON`,
);
}
/** @internal */
export const GetProjectJobStatus$inboundSchema: z.ZodNativeEnum<
typeof GetProjectJobStatus
> = z.nativeEnum(GetProjectJobStatus);
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONType$inboundSchema:
z.ZodNativeEnum<typeof GetProjectProjectsResponse200ApplicationJSONType> = z
.nativeEnum(GetProjectProjectsResponse200ApplicationJSONType);
/** @internal */
export const GetProjectLastAliasRequest$inboundSchema: z.ZodType<
GetProjectLastAliasRequest,
z.ZodTypeDef,
unknown
> = z.object({
fromDeploymentId: types.nullable(types.string()),
toDeploymentId: types.string(),
fromRollingReleaseId: types.optional(types.string()),
jobStatus: GetProjectJobStatus$inboundSchema,
requestedAt: types.number(),
type: GetProjectProjectsResponse200ApplicationJSONType$inboundSchema,
});
export function getProjectLastAliasRequestFromJSON(
jsonString: string,
): SafeParseResult<GetProjectLastAliasRequest, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectLastAliasRequest$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectLastAliasRequest' from JSON`,
);
}
/** @internal */
export const GetProjectProtectionBypass2$inboundSchema: z.ZodType<
GetProjectProtectionBypass2,
z.ZodTypeDef,
unknown
> = z.object({
createdAt: types.number(),
createdBy: types.string(),
scope: types.literal("automation-bypass"),
isEnvVar: types.optional(types.boolean()),
note: types.optional(types.string()),
});
export function getProjectProtectionBypass2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectProtectionBypass2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProtectionBypass2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProtectionBypass2' from JSON`,
);
}
/** @internal */
export const GetProjectProtectionBypass1$inboundSchema: z.ZodType<
GetProjectProtectionBypass1,
z.ZodTypeDef,
unknown
> = z.object({
createdAt: types.number(),
createdBy: types.string(),
scope: types.literal("integration-automation-bypass"),
integrationId: types.string(),
configurationId: types.string(),
});
export function getProjectProtectionBypass1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectProtectionBypass1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProtectionBypass1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProtectionBypass1' from JSON`,
);
}
/** @internal */
export const GetProjectProtectionBypass$inboundSchema: z.ZodType<
GetProjectProtectionBypass,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetProjectProtectionBypass1$inboundSchema),
z.lazy(() => GetProjectProtectionBypass2$inboundSchema),
]);
export function getProjectProtectionBypassFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProtectionBypass, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProtectionBypass$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProtectionBypass' from JSON`,
);
}
/** @internal */
export const GetProjectTrustedIpsProjectsDeploymentType$inboundSchema:
z.ZodNativeEnum<typeof GetProjectTrustedIpsProjectsDeploymentType> = z
.nativeEnum(GetProjectTrustedIpsProjectsDeploymentType);
/** @internal */
export const GetProjectTrustedIps2$inboundSchema: z.ZodType<
GetProjectTrustedIps2,
z.ZodTypeDef,
unknown
> = z.object({
deploymentType: GetProjectTrustedIpsProjectsDeploymentType$inboundSchema,
});
export function getProjectTrustedIps2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectTrustedIps2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTrustedIps2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTrustedIps2' from JSON`,
);
}
/** @internal */
export const GetProjectTrustedIpsDeploymentType$inboundSchema: z.ZodNativeEnum<
typeof GetProjectTrustedIpsDeploymentType
> = z.nativeEnum(GetProjectTrustedIpsDeploymentType);
/** @internal */
export const TrustedIpsAddresses$inboundSchema: z.ZodType<
TrustedIpsAddresses,
z.ZodTypeDef,
unknown
> = z.object({
value: types.string(),
note: types.optional(types.string()),
});
export function trustedIpsAddressesFromJSON(
jsonString: string,
): SafeParseResult<TrustedIpsAddresses, SDKValidationError> {
return safeParse(
jsonString,
(x) => TrustedIpsAddresses$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'TrustedIpsAddresses' from JSON`,
);
}
/** @internal */
export const TrustedIpsProtectionMode$inboundSchema: z.ZodNativeEnum<
typeof TrustedIpsProtectionMode
> = z.nativeEnum(TrustedIpsProtectionMode);
/** @internal */
export const GetProjectTrustedIps1$inboundSchema: z.ZodType<
GetProjectTrustedIps1,
z.ZodTypeDef,
unknown
> = z.object({
deploymentType: GetProjectTrustedIpsDeploymentType$inboundSchema,
addresses: z.array(z.lazy(() => TrustedIpsAddresses$inboundSchema)),
protectionMode: TrustedIpsProtectionMode$inboundSchema,
});
export function getProjectTrustedIps1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectTrustedIps1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTrustedIps1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTrustedIps1' from JSON`,
);
}
/** @internal */
export const GetProjectTrustedIps$inboundSchema: z.ZodType<
GetProjectTrustedIps,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetProjectTrustedIps1$inboundSchema),
z.lazy(() => GetProjectTrustedIps2$inboundSchema),
]);
export function getProjectTrustedIpsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectTrustedIps, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTrustedIps$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTrustedIps' from JSON`,
);
}
/** @internal */
export const GetProjectFromProjectsPreset$inboundSchema: z.ZodNativeEnum<
typeof GetProjectFromProjectsPreset
> = z.nativeEnum(GetProjectFromProjectsPreset);
/** @internal */
export const GetProjectFrom2$inboundSchema: z.ZodType<
GetProjectFrom2,
z.ZodTypeDef,
unknown
> = z.object({
slugs: types.optional(z.array(types.string())),
preset: GetProjectFromProjectsPreset$inboundSchema,
});
export function getProjectFrom2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectFrom2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectFrom2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectFrom2' from JSON`,
);
}
/** @internal */
export const GetProjectFromPreset$inboundSchema: z.ZodNativeEnum<
typeof GetProjectFromPreset
> = z.nativeEnum(GetProjectFromPreset);
/** @internal */
export const GetProjectFrom1$inboundSchema: z.ZodType<
GetProjectFrom1,
z.ZodTypeDef,
unknown
> = z.object({
slugs: z.array(types.string()),
preset: types.optional(GetProjectFromPreset$inboundSchema),
});
export function getProjectFrom1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectFrom1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectFrom1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectFrom1' from JSON`,
);
}
/** @internal */
export const GetProjectFrom$inboundSchema: z.ZodType<
GetProjectFrom,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetProjectFrom1$inboundSchema),
z.lazy(() => GetProjectFrom2$inboundSchema),
]);
export function getProjectFromFromJSON(
jsonString: string,
): SafeParseResult<GetProjectFrom, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectFrom$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectFrom' from JSON`,
);
}
/** @internal */
export const GetProjectToProjectsResponse200Preset$inboundSchema:
z.ZodNativeEnum<typeof GetProjectToProjectsResponse200Preset> = z.nativeEnum(
GetProjectToProjectsResponse200Preset,
);
/** @internal */
export const GetProjectToProjects2$inboundSchema: z.ZodType<
GetProjectToProjects2,
z.ZodTypeDef,
unknown
> = z.object({
slugs: types.optional(z.array(types.string())),
preset: GetProjectToProjectsResponse200Preset$inboundSchema,
});
export function getProjectToProjects2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectToProjects2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectToProjects2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectToProjects2' from JSON`,
);
}
/** @internal */
export const GetProjectToProjectsResponsePreset$inboundSchema: z.ZodNativeEnum<
typeof GetProjectToProjectsResponsePreset
> = z.nativeEnum(GetProjectToProjectsResponsePreset);
/** @internal */
export const GetProjectToProjects1$inboundSchema: z.ZodType<
GetProjectToProjects1,
z.ZodTypeDef,
unknown
> = z.object({
slugs: z.array(types.string()),
preset: types.optional(GetProjectToProjectsResponsePreset$inboundSchema),
});
export function getProjectToProjects1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectToProjects1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectToProjects1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectToProjects1' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsTo$inboundSchema: z.ZodType<
GetProjectProjectsTo,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetProjectToProjects1$inboundSchema),
z.lazy(() => GetProjectToProjects2$inboundSchema),
]);
export function getProjectProjectsToFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsTo, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsTo$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsTo' from JSON`,
);
}
/** @internal */
export const GetProjectCustomAllow$inboundSchema: z.ZodType<
GetProjectCustomAllow,
z.ZodTypeDef,
unknown
> = z.object({
from: smartUnion([
z.lazy(() => GetProjectFrom1$inboundSchema),
z.lazy(() => GetProjectFrom2$inboundSchema),
]),
to: smartUnion([
z.lazy(() => GetProjectToProjects1$inboundSchema),
z.lazy(() => GetProjectToProjects2$inboundSchema),
]),
});
export function getProjectCustomAllowFromJSON(
jsonString: string,
): SafeParseResult<GetProjectCustomAllow, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectCustomAllow$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectCustomAllow' from JSON`,
);
}
/** @internal */
export const GetProjectProjects$inboundSchema: z.ZodType<
GetProjectProjects,
z.ZodTypeDef,
unknown
> = z.object({
label: types.optional(types.string()),
customAllow: types.optional(
z.array(z.lazy(() => GetProjectCustomAllow$inboundSchema)),
),
});
export function getProjectProjectsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjects, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjects$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjects' from JSON`,
);
}
/** @internal */
export const GetProjectToProjectsPreset$inboundSchema: z.ZodNativeEnum<
typeof GetProjectToProjectsPreset
> = z.nativeEnum(GetProjectToProjectsPreset);
/** @internal */
export const GetProjectTo2$inboundSchema: z.ZodType<
GetProjectTo2,
z.ZodTypeDef,
unknown
> = z.object({
slugs: types.optional(z.array(types.string())),
preset: GetProjectToProjectsPreset$inboundSchema,
});
export function getProjectTo2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectTo2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTo2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTo2' from JSON`,
);
}
/** @internal */
export const GetProjectToPreset$inboundSchema: z.ZodNativeEnum<
typeof GetProjectToPreset
> = z.nativeEnum(GetProjectToPreset);
/** @internal */
export const GetProjectTo1$inboundSchema: z.ZodType<
GetProjectTo1,
z.ZodTypeDef,
unknown
> = z.object({
slugs: z.array(types.string()),
preset: types.optional(GetProjectToPreset$inboundSchema),
});
export function getProjectTo1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectTo1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTo1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTo1' from JSON`,
);
}
/** @internal */
export const GetProjectTo$inboundSchema: z.ZodType<
GetProjectTo,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetProjectTo1$inboundSchema),
z.lazy(() => GetProjectTo2$inboundSchema),
]);
export function getProjectToFromJSON(
jsonString: string,
): SafeParseResult<GetProjectTo, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTo$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTo' from JSON`,
);
}
/** @internal */
export const GetProjectOidcProviders$inboundSchema: z.ZodType<
GetProjectOidcProviders,
z.ZodTypeDef,
unknown
> = z.object({
to: smartUnion([
z.lazy(() => GetProjectTo1$inboundSchema),
z.lazy(() => GetProjectTo2$inboundSchema),
]),
label: types.optional(types.string()),
claims: z.record(z.array(types.string())),
});
export function getProjectOidcProvidersFromJSON(
jsonString: string,
): SafeParseResult<GetProjectOidcProviders, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectOidcProviders$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectOidcProviders' from JSON`,
);
}
/** @internal */
export const GetProjectTrustedSources$inboundSchema: z.ZodType<
GetProjectTrustedSources,
z.ZodTypeDef,
unknown
> = z.object({
enableVercelCiSameRepository: types.optional(types.boolean()),
projects: types.optional(
z.record(z.lazy(() => GetProjectProjects$inboundSchema)),
),
oidcProviders: types.optional(
z.record(z.array(z.lazy(() => GetProjectOidcProviders$inboundSchema))),
),
});
export function getProjectTrustedSourcesFromJSON(
jsonString: string,
): SafeParseResult<GetProjectTrustedSources, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTrustedSources$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTrustedSources' from JSON`,
);
}
/** @internal */
export const GetProjectGitComments$inboundSchema: z.ZodType<
GetProjectGitComments,
z.ZodTypeDef,
unknown
> = z.object({
onPullRequest: types.boolean(),
onCommit: types.boolean(),
});
export function getProjectGitCommentsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectGitComments, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectGitComments$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectGitComments' from JSON`,
);
}
/** @internal */
export const GetProjectCreateDeployments$inboundSchema: z.ZodNativeEnum<
typeof GetProjectCreateDeployments
> = z.nativeEnum(GetProjectCreateDeployments);
/** @internal */
export const GetProjectConsolidatedGitCommitStatus$inboundSchema: z.ZodType<
GetProjectConsolidatedGitCommitStatus,
z.ZodTypeDef,
unknown
> = z.object({
enabled: types.boolean(),
propagateFailures: types.boolean(),
});
export function getProjectConsolidatedGitCommitStatusFromJSON(
jsonString: string,
): SafeParseResult<GetProjectConsolidatedGitCommitStatus, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetProjectConsolidatedGitCommitStatus$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectConsolidatedGitCommitStatus' from JSON`,
);
}
/** @internal */
export const GetProjectGitProviderOptions$inboundSchema: z.ZodType<
GetProjectGitProviderOptions,
z.ZodTypeDef,
unknown
> = z.object({
createDeployments: GetProjectCreateDeployments$inboundSchema,
disableRepositoryDispatchEvents: types.optional(types.boolean()),
requireVerifiedCommits: types.optional(types.boolean()),
gitCommitStatus: types.optional(types.boolean()),
consolidatedGitCommitStatus: types.optional(
z.lazy(() => GetProjectConsolidatedGitCommitStatus$inboundSchema),
),
});
export function getProjectGitProviderOptionsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectGitProviderOptions, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectGitProviderOptions$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectGitProviderOptions' from JSON`,
);
}
/** @internal */
export const GetProjectWebAnalytics$inboundSchema: z.ZodType<
GetProjectWebAnalytics,
z.ZodTypeDef,
unknown
> = z.object({
id: types.string(),
disabledAt: types.optional(types.number()),
canceledAt: types.optional(types.number()),
enabledAt: types.optional(types.number()),
hasData: types.optional(types.literal(true)),
});
export function getProjectWebAnalyticsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectWebAnalytics, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectWebAnalytics$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectWebAnalytics' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsAction$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsAction
> = z.nativeEnum(GetProjectProjectsAction);
/** @internal */
export const GetProjectAlgo$inboundSchema: z.ZodNativeEnum<
typeof GetProjectAlgo
> = z.nativeEnum(GetProjectAlgo);
/** @internal */
export const GetProjectRateLimit$inboundSchema: z.ZodType<
GetProjectRateLimit,
z.ZodTypeDef,
unknown
> = z.object({
algo: GetProjectAlgo$inboundSchema,
window: types.number(),
limit: types.number(),
keys: z.array(types.string()),
});
export function getProjectRateLimitFromJSON(
jsonString: string,
): SafeParseResult<GetProjectRateLimit, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRateLimit$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRateLimit' from JSON`,
);
}
/** @internal */
export const GetProjectRedirect$inboundSchema: z.ZodType<
GetProjectRedirect,
z.ZodTypeDef,
unknown
> = z.object({
location: types.string(),
permanent: types.boolean(),
});
export function getProjectRedirectFromJSON(
jsonString: string,
): SafeParseResult<GetProjectRedirect, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRedirect$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRedirect' from JSON`,
);
}
/** @internal */
export const GetProjectLogHeadersProjects2$inboundSchema: z.ZodNativeEnum<
typeof GetProjectLogHeadersProjects2
> = z.nativeEnum(GetProjectLogHeadersProjects2);
/** @internal */
export const GetProjectProjectsLogHeaders$inboundSchema: z.ZodType<
GetProjectProjectsLogHeaders,
z.ZodTypeDef,
unknown
> = smartUnion([
z.array(types.string()),
GetProjectLogHeadersProjects2$inboundSchema,
]);
export function getProjectProjectsLogHeadersFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsLogHeaders, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsLogHeaders$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsLogHeaders' from JSON`,
);
}
/** @internal */
export const GetProjectRulesets$inboundSchema: z.ZodType<
GetProjectRulesets,
z.ZodTypeDef,
unknown
> = z.object({
action: GetProjectProjectsAction$inboundSchema,
rateLimit: z.nullable(z.lazy(() => GetProjectRateLimit$inboundSchema))
.optional(),
redirect: z.nullable(z.lazy(() => GetProjectRedirect$inboundSchema))
.optional(),
actionDuration: z.nullable(types.string()).optional(),
bypassSystem: z.nullable(types.boolean()).optional(),
logHeaders: types.optional(
smartUnion([
z.array(types.string()),
GetProjectLogHeadersProjects2$inboundSchema,
]),
),
});
export function getProjectRulesetsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectRulesets, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRulesets$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRulesets' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema:
z.ZodNativeEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction
> = z.nativeEnum(
GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction,
);
/** @internal */
export const GetProjectVercelRuleset$inboundSchema: z.ZodType<
GetProjectVercelRuleset,
z.ZodTypeDef,
unknown
> = z.object({
active: types.boolean(),
action: types.optional(
GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema,
),
});
export function getProjectVercelRulesetFromJSON(
jsonString: string,
): SafeParseResult<GetProjectVercelRuleset, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectVercelRuleset$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectVercelRuleset' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction$inboundSchema:
z.ZodNativeEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction
> = z.nativeEnum(
GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction,
);
/** @internal */
export const GetProjectTrafficSources$inboundSchema: z.ZodType<
GetProjectTrafficSources,
z.ZodTypeDef,
unknown
> = z.object({
active: types.boolean(),
action: types.optional(
GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction$inboundSchema,
),
});
export function getProjectTrafficSourcesFromJSON(
jsonString: string,
): SafeParseResult<GetProjectTrafficSources, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectTrafficSources$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectTrafficSources' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema:
z.ZodNativeEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction
> = z.nativeEnum(
GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction,
);
/** @internal */
export const GetProjectBotFilter$inboundSchema: z.ZodType<
GetProjectBotFilter,
z.ZodTypeDef,
unknown
> = z.object({
active: types.boolean(),
action: types.optional(
GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema,
),
});
export function getProjectBotFilterFromJSON(
jsonString: string,
): SafeParseResult<GetProjectBotFilter, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectBotFilter$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBotFilter' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema:
z.ZodNativeEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodyAction
> = z.nativeEnum(
GetProjectProjectsResponse200ApplicationJSONResponseBodyAction,
);
/** @internal */
export const GetProjectAiBots$inboundSchema: z.ZodType<
GetProjectAiBots,
z.ZodTypeDef,
unknown
> = z.object({
active: types.boolean(),
action: types.optional(
GetProjectProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema,
),
});
export function getProjectAiBotsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectAiBots, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectAiBots$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectAiBots' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema:
z.ZodNativeEnum<
typeof GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction
> = z.nativeEnum(
GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction,
);
/** @internal */
export const GetProjectOwasp$inboundSchema: z.ZodType<
GetProjectOwasp,
z.ZodTypeDef,
unknown
> = z.object({
active: types.boolean(),
action: types.optional(
GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema,
),
});
export function getProjectOwaspFromJSON(
jsonString: string,
): SafeParseResult<GetProjectOwasp, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectOwasp$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectOwasp' from JSON`,
);
}
/** @internal */
export const GetProjectManagedRules$inboundSchema: z.ZodType<
GetProjectManagedRules,
z.ZodTypeDef,
unknown
> = z.object({
vercel_ruleset: z.lazy(() => GetProjectVercelRuleset$inboundSchema),
traffic_sources: z.lazy(() => GetProjectTrafficSources$inboundSchema),
bot_filter: z.lazy(() => GetProjectBotFilter$inboundSchema),
ai_bots: z.lazy(() => GetProjectAiBots$inboundSchema),
owasp: z.lazy(() => GetProjectOwasp$inboundSchema),
}).transform((v) => {
return remap$(v, {
"vercel_ruleset": "vercelRuleset",
"traffic_sources": "trafficSources",
"bot_filter": "botFilter",
"ai_bots": "aiBots",
});
});
export function getProjectManagedRulesFromJSON(
jsonString: string,
): SafeParseResult<GetProjectManagedRules, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectManagedRules$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectManagedRules' from JSON`,
);
}
/** @internal */
export const GetProjectLogHeaders2$inboundSchema: z.ZodNativeEnum<
typeof GetProjectLogHeaders2
> = z.nativeEnum(GetProjectLogHeaders2);
/** @internal */
export const GetProjectLogHeaders$inboundSchema: z.ZodType<
GetProjectLogHeaders,
z.ZodTypeDef,
unknown
> = smartUnion([z.array(types.string()), GetProjectLogHeaders2$inboundSchema]);
export function getProjectLogHeadersFromJSON(
jsonString: string,
): SafeParseResult<GetProjectLogHeaders, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectLogHeaders$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectLogHeaders' from JSON`,
);
}
/** @internal */
export const GetProjectSecurityPlusMetadata$inboundSchema: z.ZodType<
GetProjectSecurityPlusMetadata,
z.ZodTypeDef,
unknown
> = z.object({
updatedAt: types.number(),
firstEnabledAt: types.optional(types.number()),
});
export function getProjectSecurityPlusMetadataFromJSON(
jsonString: string,
): SafeParseResult<GetProjectSecurityPlusMetadata, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectSecurityPlusMetadata$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectSecurityPlusMetadata' from JSON`,
);
}
/** @internal */
export const GetProjectSecurity$inboundSchema: z.ZodType<
GetProjectSecurity,
z.ZodTypeDef,
unknown
> = z.object({
attackModeEnabled: types.optional(types.boolean()),
attackModeUpdatedAt: types.optional(types.number()),
firewallEnabled: types.optional(types.boolean()),
firewallUpdatedAt: types.optional(types.number()),
attackModeActiveUntil: z.nullable(types.number()).optional(),
firewallConfigVersion: types.optional(types.number()),
rulesets: types.optional(
z.record(z.lazy(() => GetProjectRulesets$inboundSchema)),
),
firewallSeawallEnabled: types.optional(types.boolean()),
ja3Enabled: types.optional(types.boolean()),
ja4Enabled: types.optional(types.boolean()),
firewallBypassIps: types.optional(z.array(types.string())),
managedRules: z.nullable(z.lazy(() => GetProjectManagedRules$inboundSchema))
.optional(),
botIdEnabled: types.optional(types.boolean()),
log_headers: types.optional(
smartUnion([z.array(types.string()), GetProjectLogHeaders2$inboundSchema]),
),
securityPlus: types.optional(types.boolean()),
securityPlusMetadata: types.optional(
z.lazy(() => GetProjectSecurityPlusMetadata$inboundSchema),
),
pageIntegrityEnabled: types.optional(types.boolean()),
}).transform((v) => {
return remap$(v, {
"log_headers": "logHeaders",
});
});
export function getProjectSecurityFromJSON(
jsonString: string,
): SafeParseResult<GetProjectSecurity, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectSecurity$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectSecurity' from JSON`,
);
}
/** @internal */
export const GetProjectIssuerMode$inboundSchema: z.ZodNativeEnum<
typeof GetProjectIssuerMode
> = z.nativeEnum(GetProjectIssuerMode);
/** @internal */
export const GetProjectOidcTokenConfig$inboundSchema: z.ZodType<
GetProjectOidcTokenConfig,
z.ZodTypeDef,
unknown
> = z.object({
enabled: types.optional(types.boolean()),
issuerMode: types.optional(GetProjectIssuerMode$inboundSchema),
});
export function getProjectOidcTokenConfigFromJSON(
jsonString: string,
): SafeParseResult<GetProjectOidcTokenConfig, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectOidcTokenConfig$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectOidcTokenConfig' from JSON`,
);
}
/** @internal */
export const GetProjectSources2$inboundSchema: z.ZodType<
GetProjectSources2,
z.ZodTypeDef,
unknown
> = z.object({
provider: types.literal("gitlab"),
namespace: types.string(),
project: types.optional(types.string()),
});
export function getProjectSources2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectSources2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectSources2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectSources2' from JSON`,
);
}
/** @internal */
export const GetProjectSourcesProvider$inboundSchema: z.ZodNativeEnum<
typeof GetProjectSourcesProvider
> = z.nativeEnum(GetProjectSourcesProvider);
/** @internal */
export const GetProjectSources1$inboundSchema: z.ZodType<
GetProjectSources1,
z.ZodTypeDef,
unknown
> = z.object({
provider: GetProjectSourcesProvider$inboundSchema,
org: types.string(),
repo: types.optional(types.string()),
});
export function getProjectSources1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectSources1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectSources1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectSources1' from JSON`,
);
}
/** @internal */
export const GetProjectSources$inboundSchema: z.ZodType<
GetProjectSources,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetProjectSources1$inboundSchema).and(
z.object({ provider: z.literal("bitbucket") }),
),
z.lazy(() => GetProjectSources1$inboundSchema).and(
z.object({ provider: z.literal("github") }),
),
z.lazy(() => GetProjectSources2$inboundSchema),
]);
export function getProjectSourcesFromJSON(
jsonString: string,
): SafeParseResult<GetProjectSources, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectSources$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectSources' from JSON`,
);
}
/** @internal */
export const GetProjectEnvironments2$inboundSchema: z.ZodType<
GetProjectEnvironments2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("custom"),
environmentId: types.string(),
});
export function getProjectEnvironments2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectEnvironments2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectEnvironments2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectEnvironments2' from JSON`,
);
}
/** @internal */
export const GetProjectEnvironmentsTarget$inboundSchema: z.ZodNativeEnum<
typeof GetProjectEnvironmentsTarget
> = z.nativeEnum(GetProjectEnvironmentsTarget);
/** @internal */
export const GetProjectEnvironments1$inboundSchema: z.ZodType<
GetProjectEnvironments1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("system"),
target: GetProjectEnvironmentsTarget$inboundSchema,
});
export function getProjectEnvironments1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectEnvironments1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectEnvironments1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectEnvironments1' from JSON`,
);
}
/** @internal */
export const GetProjectEnvironments$inboundSchema: z.ZodType<
GetProjectEnvironments,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetProjectEnvironments1$inboundSchema),
z.lazy(() => GetProjectEnvironments2$inboundSchema),
]);
export function getProjectEnvironmentsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectEnvironments, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectEnvironments$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectEnvironments' from JSON`,
);
}
/** @internal */
export const GetProjectGitSources$inboundSchema: z.ZodType<
GetProjectGitSources,
z.ZodTypeDef,
unknown
> = z.object({
sources: z.array(
z.union([
z.lazy(() => GetProjectSources1$inboundSchema).and(
z.object({ provider: z.literal("bitbucket") }),
),
z.lazy(() => GetProjectSources1$inboundSchema).and(
z.object({ provider: z.literal("github") }),
),
z.lazy(() => GetProjectSources2$inboundSchema),
]),
),
enabled: types.boolean(),
environments: z.array(
z.union([
z.lazy(() => GetProjectEnvironments1$inboundSchema),
z.lazy(() => GetProjectEnvironments2$inboundSchema),
]),
),
});
export function getProjectGitSourcesFromJSON(
jsonString: string,
): SafeParseResult<GetProjectGitSources, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectGitSources$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectGitSources' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsSources$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsSources
> = z.nativeEnum(GetProjectProjectsSources);
/** @internal */
export const GetProjectEnvironmentsProjects2$inboundSchema: z.ZodType<
GetProjectEnvironmentsProjects2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("custom"),
environmentId: types.string(),
});
export function getProjectEnvironmentsProjects2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectEnvironmentsProjects2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectEnvironmentsProjects2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectEnvironmentsProjects2' from JSON`,
);
}
/** @internal */
export const GetProjectEnvironmentsProjectsTarget$inboundSchema:
z.ZodNativeEnum<typeof GetProjectEnvironmentsProjectsTarget> = z.nativeEnum(
GetProjectEnvironmentsProjectsTarget,
);
/** @internal */
export const GetProjectEnvironmentsProjects1$inboundSchema: z.ZodType<
GetProjectEnvironmentsProjects1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("system"),
target: GetProjectEnvironmentsProjectsTarget$inboundSchema,
});
export function getProjectEnvironmentsProjects1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectEnvironmentsProjects1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectEnvironmentsProjects1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectEnvironmentsProjects1' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsEnvironments$inboundSchema: z.ZodType<
GetProjectProjectsEnvironments,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetProjectEnvironmentsProjects1$inboundSchema),
z.lazy(() => GetProjectEnvironmentsProjects2$inboundSchema),
]);
export function getProjectProjectsEnvironmentsFromJSON(
jsonString: string,
): SafeParseResult<GetProjectProjectsEnvironments, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectProjectsEnvironments$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectProjectsEnvironments' from JSON`,
);
}
/** @internal */
export const GetProjectDeploymentSources$inboundSchema: z.ZodType<
GetProjectDeploymentSources,
z.ZodTypeDef,
unknown
> = z.object({
sources: z.array(GetProjectProjectsSources$inboundSchema),
enabled: types.boolean(),
environments: z.array(
z.union([
z.lazy(() => GetProjectEnvironmentsProjects1$inboundSchema),
z.lazy(() => GetProjectEnvironmentsProjects2$inboundSchema),
]),
),
});
export function getProjectDeploymentSourcesFromJSON(
jsonString: string,
): SafeParseResult<GetProjectDeploymentSources, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectDeploymentSources$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectDeploymentSources' from JSON`,
);
}
/** @internal */
export const GetProjectDeploymentPolicy$inboundSchema: z.ZodType<
GetProjectDeploymentPolicy,
z.ZodTypeDef,
unknown
> = z.object({
gitSources: z.nullable(
z.array(z.lazy(() => GetProjectGitSources$inboundSchema)),
).optional(),
deploymentSources: z.nullable(
z.array(z.lazy(() => GetProjectDeploymentSources$inboundSchema)),
).optional(),
});
export function getProjectDeploymentPolicyFromJSON(
jsonString: string,
): SafeParseResult<GetProjectDeploymentPolicy, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectDeploymentPolicy$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectDeploymentPolicy' from JSON`,
);
}
/** @internal */
export const GetProjectTier$inboundSchema: z.ZodNativeEnum<
typeof GetProjectTier
> = z.nativeEnum(GetProjectTier);
/** @internal */
export const GetProjectKind$inboundSchema: z.ZodNativeEnum<
typeof GetProjectKind
> = z.nativeEnum(GetProjectKind);
/** @internal */
export const GetProjectUsageStatus$inboundSchema: z.ZodType<
GetProjectUsageStatus,
z.ZodTypeDef,
unknown
> = z.object({
kind: GetProjectKind$inboundSchema,
exceededAllowanceUntil: types.optional(types.number()),
bypassThrottleUntil: types.optional(types.number()),
throttled: types.optional(types.boolean()),
teamThrottled: types.optional(types.boolean()),
});
export function getProjectUsageStatusFromJSON(
jsonString: string,
): SafeParseResult<GetProjectUsageStatus, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectUsageStatus$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectUsageStatus' from JSON`,
);
}
/** @internal */
export const GetProjectFeatures$inboundSchema: z.ZodType<
GetProjectFeatures,
z.ZodTypeDef,
unknown
> = z.object({
webAnalytics: types.optional(types.boolean()),
});
export function getProjectFeaturesFromJSON(
jsonString: string,
): SafeParseResult<GetProjectFeatures, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectFeatures$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectFeatures' from JSON`,
);
}
/** @internal */
export const GetProjectHistory$inboundSchema: z.ZodType<
GetProjectHistory,
z.ZodTypeDef,
unknown
> = z.object({
scanner: types.string(),
reason: types.string(),
by: types.string(),
byId: types.string(),
at: types.number(),
});
export function getProjectHistoryFromJSON(
jsonString: string,
): SafeParseResult<GetProjectHistory, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHistory$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHistory' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsResponseAction$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsResponseAction
> = z.nativeEnum(GetProjectProjectsResponseAction);
/** @internal */
export const GetProjectBlock$inboundSchema: z.ZodType<
GetProjectBlock,
z.ZodTypeDef,
unknown
> = z.object({
action: GetProjectProjectsResponseAction$inboundSchema,
reason: types.string(),
statusCode: types.number(),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function getProjectBlockFromJSON(
jsonString: string,
): SafeParseResult<GetProjectBlock, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectBlock$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBlock' from JSON`,
);
}
/** @internal */
export const GetProjectHasProjectsResponse200Value$inboundSchema: z.ZodType<
GetProjectHasProjectsResponse200Value,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.string(),
});
export function getProjectHasProjectsResponse200ValueFromJSON(
jsonString: string,
): SafeParseResult<GetProjectHasProjectsResponse200Value, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetProjectHasProjectsResponse200Value$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasProjectsResponse200Value' from JSON`,
);
}
/** @internal */
export const GetProjectHasProjects2$inboundSchema: z.ZodType<
GetProjectHasProjects2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("host"),
value: z.lazy(() => GetProjectHasProjectsResponse200Value$inboundSchema),
});
export function getProjectHasProjects2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectHasProjects2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHasProjects2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasProjects2' from JSON`,
);
}
/** @internal */
export const GetProjectHasProjectsKey$inboundSchema: z.ZodNativeEnum<
typeof GetProjectHasProjectsKey
> = z.nativeEnum(GetProjectHasProjectsKey);
/** @internal */
export const GetProjectHasProjectsResponseValue$inboundSchema: z.ZodType<
GetProjectHasProjectsResponseValue,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.string(),
});
export function getProjectHasProjectsResponseValueFromJSON(
jsonString: string,
): SafeParseResult<GetProjectHasProjectsResponseValue, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetProjectHasProjectsResponseValue$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasProjectsResponseValue' from JSON`,
);
}
/** @internal */
export const GetProjectHasProjects1$inboundSchema: z.ZodType<
GetProjectHasProjects1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("header"),
key: GetProjectHasProjectsKey$inboundSchema,
value: z.lazy(() => GetProjectHasProjectsResponseValue$inboundSchema),
});
export function getProjectHasProjects1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectHasProjects1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHasProjects1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasProjects1' from JSON`,
);
}
/** @internal */
export const GetProjectRouteProjectsHas$inboundSchema: z.ZodType<
GetProjectRouteProjectsHas,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetProjectHasProjects1$inboundSchema),
z.lazy(() => GetProjectHasProjects2$inboundSchema),
]);
export function getProjectRouteProjectsHasFromJSON(
jsonString: string,
): SafeParseResult<GetProjectRouteProjectsHas, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRouteProjectsHas$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRouteProjectsHas' from JSON`,
);
}
/** @internal */
export const GetProjectRouteProjectsAction$inboundSchema: z.ZodNativeEnum<
typeof GetProjectRouteProjectsAction
> = z.nativeEnum(GetProjectRouteProjectsAction);
/** @internal */
export const GetProjectRouteProjectsMitigate$inboundSchema: z.ZodType<
GetProjectRouteProjectsMitigate,
z.ZodTypeDef,
unknown
> = z.object({
action: GetProjectRouteProjectsAction$inboundSchema,
});
export function getProjectRouteProjectsMitigateFromJSON(
jsonString: string,
): SafeParseResult<GetProjectRouteProjectsMitigate, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRouteProjectsMitigate$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRouteProjectsMitigate' from JSON`,
);
}
/** @internal */
export const GetProjectRouteProjects2$inboundSchema: z.ZodType<
GetProjectRouteProjects2,
z.ZodTypeDef,
unknown
> = z.object({
has: z.array(
z.union([
z.lazy(() => GetProjectHasProjects1$inboundSchema),
z.lazy(() => GetProjectHasProjects2$inboundSchema),
]),
),
mitigate: z.lazy(() => GetProjectRouteProjectsMitigate$inboundSchema),
src: types.optional(types.string()),
});
export function getProjectRouteProjects2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectRouteProjects2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRouteProjects2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRouteProjects2' from JSON`,
);
}
/** @internal */
export const GetProjectRouteProjects1$inboundSchema: z.ZodType<
GetProjectRouteProjects1,
z.ZodTypeDef,
unknown
> = z.object({
src: types.string(),
status: types.number(),
expiry: types.optional(types.number()),
});
export function getProjectRouteProjects1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectRouteProjects1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRouteProjects1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRouteProjects1' from JSON`,
);
}
/** @internal */
export const GetProjectBlockHistoryProjectsRoute$inboundSchema: z.ZodType<
GetProjectBlockHistoryProjectsRoute,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetProjectRouteProjects1$inboundSchema),
z.lazy(() => GetProjectRouteProjects2$inboundSchema),
]);
export function getProjectBlockHistoryProjectsRouteFromJSON(
jsonString: string,
): SafeParseResult<GetProjectBlockHistoryProjectsRoute, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetProjectBlockHistoryProjectsRoute$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBlockHistoryProjectsRoute' from JSON`,
);
}
/** @internal */
export const GetProjectBlockHistory4$inboundSchema: z.ZodType<
GetProjectBlockHistory4,
z.ZodTypeDef,
unknown
> = z.object({
action: types.literal("route-unblocked"),
route: smartUnion([
z.lazy(() => GetProjectRouteProjects1$inboundSchema),
z.lazy(() => GetProjectRouteProjects2$inboundSchema),
]),
statusCode: types.optional(types.number()),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function getProjectBlockHistory4FromJSON(
jsonString: string,
): SafeParseResult<GetProjectBlockHistory4, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectBlockHistory4$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBlockHistory4' from JSON`,
);
}
/** @internal */
export const GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema:
z.ZodType<
GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.string(),
});
export function getProjectHasProjectsResponse200ApplicationJSONResponseBodyValueFromJSON(
jsonString: string,
): SafeParseResult<
GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue' from JSON`,
);
}
/** @internal */
export const GetProjectHasProjectsResponse2$inboundSchema: z.ZodType<
GetProjectHasProjectsResponse2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("host"),
value: z.lazy(() =>
GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema
),
});
export function getProjectHasProjectsResponse2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectHasProjectsResponse2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHasProjectsResponse2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasProjectsResponse2' from JSON`,
);
}
/** @internal */
export const GetProjectHasKey$inboundSchema: z.ZodNativeEnum<
typeof GetProjectHasKey
> = z.nativeEnum(GetProjectHasKey);
/** @internal */
export const GetProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema:
z.ZodType<
GetProjectHasProjectsResponse200ApplicationJSONValue,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.string(),
});
export function getProjectHasProjectsResponse200ApplicationJSONValueFromJSON(
jsonString: string,
): SafeParseResult<
GetProjectHasProjectsResponse200ApplicationJSONValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetProjectHasProjectsResponse200ApplicationJSONValue' from JSON`,
);
}
/** @internal */
export const GetProjectHasProjectsResponse1$inboundSchema: z.ZodType<
GetProjectHasProjectsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("header"),
key: GetProjectHasKey$inboundSchema,
value: z.lazy(() =>
GetProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema
),
});
export function getProjectHasProjectsResponse1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectHasProjectsResponse1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHasProjectsResponse1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasProjectsResponse1' from JSON`,
);
}
/** @internal */
export const GetProjectRouteHas$inboundSchema: z.ZodType<
GetProjectRouteHas,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetProjectHasProjectsResponse1$inboundSchema),
z.lazy(() => GetProjectHasProjectsResponse2$inboundSchema),
]);
export function getProjectRouteHasFromJSON(
jsonString: string,
): SafeParseResult<GetProjectRouteHas, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRouteHas$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRouteHas' from JSON`,
);
}
/** @internal */
export const GetProjectRouteAction$inboundSchema: z.ZodNativeEnum<
typeof GetProjectRouteAction
> = z.nativeEnum(GetProjectRouteAction);
/** @internal */
export const GetProjectRouteMitigate$inboundSchema: z.ZodType<
GetProjectRouteMitigate,
z.ZodTypeDef,
unknown
> = z.object({
action: GetProjectRouteAction$inboundSchema,
});
export function getProjectRouteMitigateFromJSON(
jsonString: string,
): SafeParseResult<GetProjectRouteMitigate, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRouteMitigate$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRouteMitigate' from JSON`,
);
}
/** @internal */
export const GetProjectRoute2$inboundSchema: z.ZodType<
GetProjectRoute2,
z.ZodTypeDef,
unknown
> = z.object({
has: z.array(
z.union([
z.lazy(() => GetProjectHasProjectsResponse1$inboundSchema),
z.lazy(() => GetProjectHasProjectsResponse2$inboundSchema),
]),
),
mitigate: z.lazy(() => GetProjectRouteMitigate$inboundSchema),
src: types.optional(types.string()),
});
export function getProjectRoute2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectRoute2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRoute2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRoute2' from JSON`,
);
}
/** @internal */
export const GetProjectRoute1$inboundSchema: z.ZodType<
GetProjectRoute1,
z.ZodTypeDef,
unknown
> = z.object({
src: types.string(),
status: types.number(),
expiry: types.optional(types.number()),
});
export function getProjectRoute1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectRoute1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectRoute1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectRoute1' from JSON`,
);
}
/** @internal */
export const GetProjectBlockHistoryRoute$inboundSchema: z.ZodType<
GetProjectBlockHistoryRoute,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetProjectRoute1$inboundSchema),
z.lazy(() => GetProjectRoute2$inboundSchema),
]);
export function getProjectBlockHistoryRouteFromJSON(
jsonString: string,
): SafeParseResult<GetProjectBlockHistoryRoute, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectBlockHistoryRoute$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBlockHistoryRoute' from JSON`,
);
}
/** @internal */
export const GetProjectBlockHistory3$inboundSchema: z.ZodType<
GetProjectBlockHistory3,
z.ZodTypeDef,
unknown
> = z.object({
action: types.literal("route-blocked"),
route: smartUnion([
z.lazy(() => GetProjectRoute1$inboundSchema),
z.lazy(() => GetProjectRoute2$inboundSchema),
]),
reason: types.string(),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function getProjectBlockHistory3FromJSON(
jsonString: string,
): SafeParseResult<GetProjectBlockHistory3, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectBlockHistory3$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBlockHistory3' from JSON`,
);
}
/** @internal */
export const GetProjectBlockHistory2$inboundSchema: z.ZodType<
GetProjectBlockHistory2,
z.ZodTypeDef,
unknown
> = z.object({
action: types.literal("unblocked"),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function getProjectBlockHistory2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectBlockHistory2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectBlockHistory2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBlockHistory2' from JSON`,
);
}
/** @internal */
export const GetProjectBlockHistory1$inboundSchema: z.ZodType<
GetProjectBlockHistory1,
z.ZodTypeDef,
unknown
> = z.object({
action: types.literal("blocked"),
reason: types.string(),
statusCode: types.number(),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function getProjectBlockHistory1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectBlockHistory1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectBlockHistory1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBlockHistory1' from JSON`,
);
}
/** @internal */
export const GetProjectBlockHistory$inboundSchema: z.ZodType<
GetProjectBlockHistory,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetProjectBlockHistory1$inboundSchema),
z.lazy(() => GetProjectBlockHistory2$inboundSchema),
z.lazy(() => GetProjectBlockHistory3$inboundSchema),
z.lazy(() => GetProjectBlockHistory4$inboundSchema),
]);
export function getProjectBlockHistoryFromJSON(
jsonString: string,
): SafeParseResult<GetProjectBlockHistory, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectBlockHistory$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectBlockHistory' from JSON`,
);
}
/** @internal */
export const GetProjectProjectsResponse200Action$inboundSchema: z.ZodNativeEnum<
typeof GetProjectProjectsResponse200Action
> = z.nativeEnum(GetProjectProjectsResponse200Action);
/** @internal */
export const GetProjectInterstitialHistory$inboundSchema: z.ZodType<
GetProjectInterstitialHistory,
z.ZodTypeDef,
unknown
> = z.object({
action: GetProjectProjectsResponse200Action$inboundSchema,
createdAt: types.number(),
caseId: types.optional(types.string()),
reason: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
});
export function getProjectInterstitialHistoryFromJSON(
jsonString: string,
): SafeParseResult<GetProjectInterstitialHistory, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectInterstitialHistory$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectInterstitialHistory' from JSON`,
);
}
/** @internal */
export const GetProjectAbuse$inboundSchema: z.ZodType<
GetProjectAbuse,
z.ZodTypeDef,
unknown
> = z.object({
scanner: types.optional(types.string()),
history: z.array(z.lazy(() => GetProjectHistory$inboundSchema)),
updatedAt: types.number(),
block: types.optional(z.lazy(() => GetProjectBlock$inboundSchema)),
blockHistory: types.optional(
z.array(z.union([
z.lazy(() => GetProjectBlockHistory1$inboundSchema),
z.lazy(() =>
GetProjectBlockHistory2$inboundSchema
),
z.lazy(() => GetProjectBlockHistory3$inboundSchema),
z.lazy(() => GetProjectBlockHistory4$inboundSchema),
])),
),
interstitial: types.optional(types.boolean()),
interstitialHistory: types.optional(
z.array(z.lazy(() => GetProjectInterstitialHistory$inboundSchema)),
),
});
export function getProjectAbuseFromJSON(
jsonString: string,
): SafeParseResult<GetProjectAbuse, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectAbuse$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectAbuse' from JSON`,
);
}
/** @internal */
export const GetProjectHasProjectsValue$inboundSchema: z.ZodType<
GetProjectHasProjectsValue,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.string(),
});
export function getProjectHasProjectsValueFromJSON(
jsonString: string,
): SafeParseResult<GetProjectHasProjectsValue, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHasProjectsValue$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasProjectsValue' from JSON`,
);
}
/** @internal */
export const GetProjectHas2$inboundSchema: z.ZodType<
GetProjectHas2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("host"),
value: z.lazy(() => GetProjectHasProjectsValue$inboundSchema),
});
export function getProjectHas2FromJSON(
jsonString: string,
): SafeParseResult<GetProjectHas2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHas2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHas2' from JSON`,
);
}
/** @internal */
export const HasKey$inboundSchema: z.ZodNativeEnum<typeof HasKey> = z
.nativeEnum(HasKey);
/** @internal */
export const GetProjectHasValue$inboundSchema: z.ZodType<
GetProjectHasValue,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.string(),
});
export function getProjectHasValueFromJSON(
jsonString: string,
): SafeParseResult<GetProjectHasValue, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHasValue$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHasValue' from JSON`,
);
}
/** @internal */
export const GetProjectHas1$inboundSchema: z.ZodType<
GetProjectHas1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("header"),
key: HasKey$inboundSchema,
value: z.lazy(() => GetProjectHasValue$inboundSchema),
});
export function getProjectHas1FromJSON(
jsonString: string,
): SafeParseResult<GetProjectHas1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectHas1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectHas1' from JSON`,
);
}
/** @internal */
export const GetProjectInternalRoutesHas$inboundSchema: z.ZodType<
GetProjectInternalRoutesHas,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetProjectHas1$inboundSchema),
z.lazy(() => GetProjectHas2$inboundSchema),
]);
export function getProjectInternalRoutesHasFromJSON(
jsonString: string,
): SafeParseResult<GetProjectInternalRoutesHas, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectInternalRoutesHas$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectInternalRoutesHas' from JSON`,
);
}
/** @internal */
export const GetProjectInternalRoutesAction$inboundSchema: z.ZodNativeEnum<
typeof GetProjectInternalRoutesAction
> = z.nativeEnum(GetProjectInternalRoutesAction);
/** @internal */
export const GetProjectInternalRoutesMitigate$inboundSchema: z.ZodType<
GetProjectInternalRoutesMitigate,
z.ZodTypeDef,
unknown
> = z.object({
action: GetProjectInternalRoutesAction$inboundSchema,
});
export function getProjectInternalRoutesMitigateFromJSON(
jsonString: string,
): SafeParseResult<GetProjectInternalRoutesMitigate, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetProjectInternalRoutesMitigate$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetProjectInternalRoutesMitigate' from JSON`,
);
}