UNPKG

@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>

1,695 lines 88.8 kB
/*
 * 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 * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
import { ACLAction$inboundSchema } from "./aclaction.js";
export const CreateProjectProjectsDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const CreateProjectRegion = {
    Arn1: "arn1",
    Bom1: "bom1",
    Cdg1: "cdg1",
    Cle1: "cle1",
    Cpt1: "cpt1",
    Dub1: "dub1",
    Fra1: "fra1",
    Gru1: "gru1",
    Hkg1: "hkg1",
    Hnd1: "hnd1",
    Iad1: "iad1",
    Icn1: "icn1",
    Kix1: "kix1",
    Lhr1: "lhr1",
    Pdx1: "pdx1",
    Sfo1: "sfo1",
    Sin1: "sin1",
    Syd1: "syd1",
    Yul1: "yul1",
};
export const CreateProjectProjectsFailoverRegions = {
    Arn1: "arn1",
    Bom1: "bom1",
    Cdg1: "cdg1",
    Cle1: "cle1",
    Cpt1: "cpt1",
    Dub1: "dub1",
    Fra1: "fra1",
    Gru1: "gru1",
    Hkg1: "hkg1",
    Hnd1: "hnd1",
    Iad1: "iad1",
    Icn1: "icn1",
    Kix1: "kix1",
    Lhr1: "lhr1",
    Pdx1: "pdx1",
    Sfo1: "sfo1",
    Sin1: "sin1",
    Syd1: "syd1",
    Yul1: "yul1",
};
export const CreateProjectFunctionDefaultMemoryType = {
    Performance: "performance",
    PerformanceXl: "performance_xl",
    Standard: "standard",
    StandardLegacy: "standard_legacy",
};
export const CreateProjectBuildMachineType = {
    Basic: "basic",
    Enhanced: "enhanced",
    Standard: "standard",
    Turbo: "turbo",
};
export const CreateProjectBuildMachineSelection = {
    Elastic: "elastic",
    Fixed: "fixed",
};
export const CreateProjectBuildMachineElasticReason = {
    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",
};
export const CreateProjectProjectsConfiguration = {
    SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
    WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
};
/**
 * The metric this check evaluates.
 */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType = {
    ErrorRate5xx: "error-rate-5xx",
};
/**
 * What to do when the gate trips: pause the rollout, or roll it back.
 */
export const CreateProjectProjectsResponse200ApplicationJSONAction = {
    Pause: "pause",
    Rollback: "rollback",
};
export const CreateProjectProjectsFunctionDefaultMemoryType = {
    Performance: "performance",
    PerformanceXl: "performance_xl",
    Standard: "standard",
    StandardLegacy: "standard_legacy",
};
export const CreateProjectProjectsBuildMachineType = {
    Basic: "basic",
    Enhanced: "enhanced",
    Standard: "standard",
    Turbo: "turbo",
};
export const CreateProjectProjectsBuildMachineSelection = {
    Elastic: "elastic",
    Fixed: "fixed",
};
export const CreateProjectProjectsBuildMachineElasticReason = {
    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",
};
export const CreateProjectProjectsResponseConfiguration = {
    SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
    WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
};
export const CreateProjectProjectsResponseDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const CreateProjectCve55182MigrationAppliedFrom = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const CreateProjectApril2026SecurityIncidentMigrationAppliedFrom = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
/**
 * The type of matching to perform
 */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType = {
    EndsWith: "endsWith",
    Equals: "equals",
    StartsWith: "startsWith",
};
export const CreateProjectProjectsChecksConclusion = {
    Canceled: "canceled",
    Failed: "failed",
    Skipped: "skipped",
    Succeeded: "succeeded",
};
export const CreateProjectProjectsChecksState = {
    Completed: "completed",
    Registered: "registered",
    Running: "running",
};
export const CreateProjectProjectsPlan = {
    Enterprise: "enterprise",
    Hobby: "hobby",
    Pro: "pro",
};
export const CreateProjectProjectsReadyState = {
    Blocked: "BLOCKED",
    Building: "BUILDING",
    Canceled: "CANCELED",
    Error: "ERROR",
    Initializing: "INITIALIZING",
    Queued: "QUEUED",
    Ready: "READY",
};
export const CreateProjectProjectsReadySubstate = {
    Promoted: "PROMOTED",
    Rolling: "ROLLING",
    Staged: "STAGED",
};
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyType = {
    Lambdas: "LAMBDAS",
};
export const JobStatus = {
    Failed: "failed",
    InProgress: "in-progress",
    Pending: "pending",
    Skipped: "skipped",
    Succeeded: "succeeded",
};
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyLastAliasRequestType = {
    Promote: "promote",
    Rollback: "rollback",
};
export const CreateProjectTrustedIpsDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
    Production: "production",
};
export const TrustedIpsDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
    Production: "production",
};
export const CreateProjectTrustedIpsProtectionMode = {
    Additional: "additional",
    Exclusive: "exclusive",
};
export const CreateProjectFromPreset = {
    AllCustom: "all-custom",
};
export const CreateProjectFromProjectsPreset = {
    AllCustom: "all-custom",
};
export const CreateProjectToProjectsResponse200Preset = {
    AllCustom: "all-custom",
};
export const CreateProjectToProjectsResponsePreset = {
    AllCustom: "all-custom",
};
export const CreateProjectToProjectsPreset = {
    AllCustom: "all-custom",
};
export const CreateProjectToPreset = {
    AllCustom: "all-custom",
};
/**
 * 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 CreateProjectCreateDeployments = {
    Disabled: "disabled",
    Enabled: "enabled",
};
export const CreateProjectProjectsAction = {
    Allow: "allow",
    Bypass: "bypass",
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
    RateLimit: "rate_limit",
    Redirect: "redirect",
};
export const CreateProjectAlgo = {
    FixedWindow: "fixed_window",
    TokenBucket: "token_bucket",
};
export const CreateProjectLogHeadersProjects2 = {
    Wildcard: "*",
};
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const CreateProjectLogHeaders2 = {
    Wildcard: "*",
};
/**
 * - team: `https://oidc.vercel.com/[team_slug]` - global: `https://oidc.vercel.com`
 */
export const CreateProjectProjectsIssuerMode = {
    Global: "global",
    Team: "team",
};
export const CreateProjectSourcesProjectsProvider = {
    Bitbucket: "bitbucket",
    Github: "github",
};
export const CreateProjectEnvironmentsProjectsTarget = {
    Preview: "preview",
    Production: "production",
};
/**
 * 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 CreateProjectProjectsSources = {
    Cli: "cli",
    DeployHook: "deploy-hook",
    Git: "git",
    Integration: "integration",
    RestApi: "rest-api",
    V0: "v0",
};
export const CreateProjectEnvironmentsTarget = {
    Preview: "preview",
    Production: "production",
};
export const CreateProjectTier = {
    Advanced: "advanced",
    Critical: "critical",
    Priority: "priority",
};
/**
 * Billing mode. Always 'flat' for flat-rate projects.
 */
export const CreateProjectKind = {
    Flat: "flat",
};
export const CreateProjectProjectsResponseAction = {
    Blocked: "blocked",
};
export const CreateProjectHasProjectsKey = {
    XVercelIpCountry: "x-vercel-ip-country",
};
export const CreateProjectRouteAction = {
    BlockLegalCwc: "block_legal_cwc",
};
export const CreateProjectHasProjectsResponseKey = {
    XVercelIpCountry: "x-vercel-ip-country",
};
/** @internal */
export const CreateProjectProjectsDeploymentType$inboundSchema = z.nativeEnum(CreateProjectProjectsDeploymentType);
/** @internal */
export const CreateProjectPassport$inboundSchema = z.object({
    deploymentType: CreateProjectProjectsDeploymentType$inboundSchema,
    connectorId: types.string(),
});
export function createProjectPassportFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectPassport$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectPassport' from JSON`);
}
/** @internal */
export const SandboxUrls$inboundSchema = z.object({
    inheritDeploymentProtection: types.optional(types.boolean()),
});
export function sandboxUrlsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SandboxUrls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SandboxUrls' from JSON`);
}
/** @internal */
export const ProtectionConfig$inboundSchema = z.object({
    sandboxUrls: types.optional(z.lazy(() => SandboxUrls$inboundSchema)),
});
export function protectionConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ProtectionConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProtectionConfig' from JSON`);
}
/** @internal */
export const CreateProjectRegion$inboundSchema = z.nativeEnum(CreateProjectRegion);
/** @internal */
export const CreateProjectProjectsFailoverRegions$inboundSchema = z.nativeEnum(CreateProjectProjectsFailoverRegions);
/** @internal */
export const CreateProjectSandbox$inboundSchema = z.object({
    region: types.optional(CreateProjectRegion$inboundSchema),
    failoverRegions: types.optional(z.array(CreateProjectProjectsFailoverRegions$inboundSchema)),
});
export function createProjectSandboxFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectSandbox$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectSandbox' from JSON`);
}
/** @internal */
export const CreateProjectFunctionDefaultMemoryType$inboundSchema = z.nativeEnum(CreateProjectFunctionDefaultMemoryType);
/** @internal */
export const CreateProjectBuildMachineType$inboundSchema = z.nativeEnum(CreateProjectBuildMachineType);
/** @internal */
export const CreateProjectBuildMachineSelection$inboundSchema = z.nativeEnum(CreateProjectBuildMachineSelection);
/** @internal */
export const CreateProjectBuildMachineElasticReason$inboundSchema = z.nativeEnum(CreateProjectBuildMachineElasticReason);
/** @internal */
export const CreateProjectProjectsConfiguration$inboundSchema = z.nativeEnum(CreateProjectProjectsConfiguration);
/** @internal */
export const CreateProjectProjectsBuildQueue$inboundSchema = z.object({
    configuration: types.optional(CreateProjectProjectsConfiguration$inboundSchema),
});
export function createProjectProjectsBuildQueueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsBuildQueue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsBuildQueue' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResourceConfig$inboundSchema = 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(CreateProjectFunctionDefaultMemoryType$inboundSchema),
    functionZeroConfigFailover: types.optional(types.boolean()),
    buildMachineType: types.optional(CreateProjectBuildMachineType$inboundSchema),
    buildMachineSelection: types.optional(CreateProjectBuildMachineSelection$inboundSchema),
    buildMachineElasticLastUpdated: types.optional(types.number()),
    buildMachineElasticReason: types.optional(CreateProjectBuildMachineElasticReason$inboundSchema),
    isNSNBDisabled: types.optional(types.boolean()),
    buildQueue: types.optional(z.lazy(() => CreateProjectProjectsBuildQueue$inboundSchema)),
    enableFunctionsBeta: types.optional(types.boolean()),
});
export function createProjectProjectsResourceConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsResourceConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsResourceConfig' from JSON`);
}
/** @internal */
export const CreateProjectRollbackDescription$inboundSchema = z.object({
    userId: types.string(),
    username: types.string(),
    description: types.string(),
    createdAt: types.number(),
});
export function createProjectRollbackDescriptionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectRollbackDescription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectRollbackDescription' from JSON`);
}
/** @internal */
export const Stages$inboundSchema = z
    .object({
    targetPercentage: types.number(),
    requireApproval: types.optional(types.boolean()),
    duration: types.optional(types.number()),
    linearShift: types.optional(types.boolean()),
});
export function stagesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Stages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Stages' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType);
/** @internal */
export const CreateProjectChecks$inboundSchema = z.object({
    type: CreateProjectProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType$inboundSchema,
    minSampleSize: types.optional(types.number()),
    excludeStatusCodes: types.optional(z.array(types.number())),
    excludePaths: types.optional(z.array(types.string())),
    ingestWatermarkSeconds: types.optional(types.number()),
});
export function createProjectChecksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectChecks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectChecks' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONAction$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONAction);
/** @internal */
export const Gate$inboundSchema = z
    .object({
    enabled: types.boolean(),
    checks: z.array(z.lazy(() => CreateProjectChecks$inboundSchema)),
    failureThreshold: types.optional(types.number()),
    windowSize: types.optional(types.number()),
    action: CreateProjectProjectsResponse200ApplicationJSONAction$inboundSchema,
    dryRun: types.boolean(),
});
export function gateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Gate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Gate' from JSON`);
}
/** @internal */
export const RollingRelease$inboundSchema = z.object({
    target: types.string(),
    stages: z.nullable(z.array(z.lazy(() => Stages$inboundSchema))).optional(),
    canaryResponseHeader: types.optional(types.boolean()),
    gate: types.optional(z.lazy(() => Gate$inboundSchema)),
});
export function rollingReleaseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => RollingRelease$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RollingRelease' from JSON`);
}
/** @internal */
export const CreateProjectProjectsFunctionDefaultMemoryType$inboundSchema = z
    .nativeEnum(CreateProjectProjectsFunctionDefaultMemoryType);
/** @internal */
export const CreateProjectProjectsBuildMachineType$inboundSchema = z.nativeEnum(CreateProjectProjectsBuildMachineType);
/** @internal */
export const CreateProjectProjectsBuildMachineSelection$inboundSchema = z
    .nativeEnum(CreateProjectProjectsBuildMachineSelection);
/** @internal */
export const CreateProjectProjectsBuildMachineElasticReason$inboundSchema = z
    .nativeEnum(CreateProjectProjectsBuildMachineElasticReason);
/** @internal */
export const CreateProjectProjectsResponseConfiguration$inboundSchema = z
    .nativeEnum(CreateProjectProjectsResponseConfiguration);
/** @internal */
export const CreateProjectProjectsResponseBuildQueue$inboundSchema = z.object({
    configuration: types.optional(CreateProjectProjectsResponseConfiguration$inboundSchema),
});
export function createProjectProjectsResponseBuildQueueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsResponseBuildQueue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsResponseBuildQueue' from JSON`);
}
/** @internal */
export const DefaultResourceConfig$inboundSchema = 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(CreateProjectProjectsFunctionDefaultMemoryType$inboundSchema),
    functionZeroConfigFailover: types.optional(types.boolean()),
    buildMachineType: types.optional(CreateProjectProjectsBuildMachineType$inboundSchema),
    buildMachineSelection: types.optional(CreateProjectProjectsBuildMachineSelection$inboundSchema),
    buildMachineElasticLastUpdated: types.optional(types.number()),
    buildMachineElasticReason: types.optional(CreateProjectProjectsBuildMachineElasticReason$inboundSchema),
    isNSNBDisabled: types.optional(types.boolean()),
    buildQueue: types.optional(z.lazy(() => CreateProjectProjectsResponseBuildQueue$inboundSchema)),
    enableFunctionsBeta: types.optional(types.boolean()),
});
export function defaultResourceConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DefaultResourceConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DefaultResourceConfig' from JSON`);
}
/** @internal */
export const CreateProjectStaticIps$inboundSchema = z.object({
    builds: types.boolean(),
    enabled: types.boolean(),
    regions: z.array(types.string()),
});
export function createProjectStaticIpsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectStaticIps$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectStaticIps' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponseDeploymentType$inboundSchema = z
    .nativeEnum(CreateProjectProjectsResponseDeploymentType);
/** @internal */
export const CreateProjectCve55182MigrationAppliedFrom$inboundSchema = z
    .nativeEnum(CreateProjectCve55182MigrationAppliedFrom);
/** @internal */
export const CreateProjectApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema = z.nativeEnum(CreateProjectApril2026SecurityIncidentMigrationAppliedFrom);
/** @internal */
export const CreateProjectProjectsSsoProtection$inboundSchema = z.object({
    deploymentType: CreateProjectProjectsResponseDeploymentType$inboundSchema,
    cve55182MigrationAppliedFrom: z.nullable(CreateProjectCve55182MigrationAppliedFrom$inboundSchema).optional(),
    april2026SecurityIncidentMigrationAppliedFrom: z.nullable(CreateProjectApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema).optional(),
});
export function createProjectProjectsSsoProtectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsSsoProtection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsSsoProtection' from JSON`);
}
/** @internal */
export const CreateProjectAliasAssigned$inboundSchema = smartUnion([types.number(), types.boolean()]);
export function createProjectAliasAssignedFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectAliasAssigned$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectAliasAssigned' from JSON`);
}
/** @internal */
export const CreateProjectProjectsAliasError$inboundSchema = z.object({
    code: types.string(),
    message: types.string(),
});
export function createProjectProjectsAliasErrorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsAliasError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsAliasError' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType);
/** @internal */
export const CreateProjectProjectsResponseBranchMatcher$inboundSchema = z.object({
    type: CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema,
    pattern: types.string(),
});
export function createProjectProjectsResponseBranchMatcherFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsResponseBranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsResponseBranchMatcher' from JSON`);
}
/** @internal */
export const CreateProjectProjectsBuilds$inboundSchema = z.object({
    use: types.string(),
    src: types.optional(types.string()),
    dest: types.optional(types.string()),
});
export function createProjectProjectsBuildsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsBuilds$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsBuilds' from JSON`);
}
/** @internal */
export const CreateProjectProjectsChecksConclusion$inboundSchema = z.nativeEnum(CreateProjectProjectsChecksConclusion);
/** @internal */
export const CreateProjectProjectsChecksState$inboundSchema = z.nativeEnum(CreateProjectProjectsChecksState);
/** @internal */
export const CreateProjectProjectsResponseCreator$inboundSchema = z.object({
    email: types.string(),
    githubLogin: types.optional(types.string()),
    gitlabLogin: types.optional(types.string()),
    uid: types.string(),
    username: types.string(),
});
export function createProjectProjectsResponseCreatorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsResponseCreator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsResponseCreator' from JSON`);
}
/** @internal */
export const CreateProjectProjectsOidcTokenClaims$inboundSchema = 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 createProjectProjectsOidcTokenClaimsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsOidcTokenClaims$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsOidcTokenClaims' from JSON`);
}
/** @internal */
export const CreateProjectProjectsPlan$inboundSchema = z.nativeEnum(CreateProjectProjectsPlan);
/** @internal */
export const CreateProjectProjectsReadyState$inboundSchema = z.nativeEnum(CreateProjectProjectsReadyState);
/** @internal */
export const CreateProjectProjectsReadySubstate$inboundSchema = z.nativeEnum(CreateProjectProjectsReadySubstate);
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodyType);
/** @internal */
export const CreateProjectTargets$inboundSchema = 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(() => CreateProjectProjectsAliasError$inboundSchema)).optional(),
    aliasFinal: z.nullable(types.string()).optional(),
    automaticAliases: types.optional(z.array(types.string())),
    branchMatcher: types.optional(z.lazy(() => CreateProjectProjectsResponseBranchMatcher$inboundSchema)),
    buildingAt: types.optional(types.number()),
    builds: types.optional(z.array(z.lazy(() => CreateProjectProjectsBuilds$inboundSchema))),
    checksConclusion: types.optional(CreateProjectProjectsChecksConclusion$inboundSchema),
    checksState: types.optional(CreateProjectProjectsChecksState$inboundSchema),
    connectBuildsEnabled: types.optional(types.boolean()),
    connectConfigurationId: types.optional(types.string()),
    createdAt: types.number(),
    createdIn: types.string(),
    creator: types.nullable(z.lazy(() => CreateProjectProjectsResponseCreator$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(() => CreateProjectProjectsOidcTokenClaims$inboundSchema)),
    plan: CreateProjectProjectsPlan$inboundSchema,
    previewCommentsEnabled: types.optional(types.boolean()),
    private: types.boolean(),
    readyAt: types.optional(types.number()),
    readyState: CreateProjectProjectsReadyState$inboundSchema,
    readySubstate: types.optional(CreateProjectProjectsReadySubstate$inboundSchema),
    requestedAt: types.optional(types.number()),
    target: z.nullable(types.string()).optional(),
    teamId: z.nullable(types.string()).optional(),
    type: CreateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    url: types.string(),
    userId: types.optional(types.string()),
    withCache: types.optional(types.boolean()),
});
export function createProjectTargetsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectTargets$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTargets' from JSON`);
}
/** @internal */
export const CreateProjectPermissions$inboundSchema = 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 createProjectPermissionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectPermissions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectPermissions' from JSON`);
}
/** @internal */
export const LastRollbackTarget$inboundSchema = z.object({});
export function lastRollbackTargetFromJSON(jsonString) {
    return safeParse(jsonString, (x) => LastRollbackTarget$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LastRollbackTarget' from JSON`);
}
/** @internal */
export const JobStatus$inboundSchema = z
    .nativeEnum(JobStatus);
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyLastAliasRequestType$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodyLastAliasRequestType);
/** @internal */
export const LastAliasRequest$inboundSchema = z.object({
    fromDeploymentId: types.nullable(types.string()),
    toDeploymentId: types.string(),
    fromRollingReleaseId: types.optional(types.string()),
    jobStatus: JobStatus$inboundSchema,
    requestedAt: types.number(),
    type: CreateProjectProjectsResponse200ApplicationJSONResponseBodyLastAliasRequestType$inboundSchema,
});
export function lastAliasRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => LastAliasRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LastAliasRequest' from JSON`);
}
/** @internal */
export const ProtectionBypass2$inboundSchema = 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 protectionBypass2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => ProtectionBypass2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProtectionBypass2' from JSON`);
}
/** @internal */
export const ProtectionBypass1$inboundSchema = z.object({
    createdAt: types.number(),
    createdBy: types.string(),
    scope: types.literal("integration-automation-bypass"),
    integrationId: types.string(),
    configurationId: types.string(),
});
export function protectionBypass1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => ProtectionBypass1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProtectionBypass1' from JSON`);
}
/** @internal */
export const ProtectionBypass$inboundSchema = z.union([
    z.lazy(() => ProtectionBypass1$inboundSchema),
    z.lazy(() => ProtectionBypass2$inboundSchema),
]);
export function protectionBypassFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ProtectionBypass$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProtectionBypass' from JSON`);
}
/** @internal */
export const CreateProjectTrustedIpsDeploymentType$inboundSchema = z.nativeEnum(CreateProjectTrustedIpsDeploymentType);
/** @internal */
export const TrustedIps2$inboundSchema = z.object({
    deploymentType: CreateProjectTrustedIpsDeploymentType$inboundSchema,
});
export function trustedIps2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => TrustedIps2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TrustedIps2' from JSON`);
}
/** @internal */
export const TrustedIpsDeploymentType$inboundSchema = z.nativeEnum(TrustedIpsDeploymentType);
/** @internal */
export const CreateProjectTrustedIpsAddresses$inboundSchema = z.object({
    value: types.string(),
    note: types.optional(types.string()),
});
export function createProjectTrustedIpsAddressesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectTrustedIpsAddresses$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTrustedIpsAddresses' from JSON`);
}
/** @internal */
export const CreateProjectTrustedIpsProtectionMode$inboundSchema = z.nativeEnum(CreateProjectTrustedIpsProtectionMode);
/** @internal */
export const TrustedIps1$inboundSchema = z.object({
    deploymentType: TrustedIpsDeploymentType$inboundSchema,
    addresses: z.array(z.lazy(() => CreateProjectTrustedIpsAddresses$inboundSchema)),
    protectionMode: CreateProjectTrustedIpsProtectionMode$inboundSchema,
});
export function trustedIps1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => TrustedIps1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TrustedIps1' from JSON`);
}
/** @internal */
export const CreateProjectTrustedIps$inboundSchema = smartUnion([
    z.lazy(() => TrustedIps1$inboundSchema),
    z.lazy(() => TrustedIps2$inboundSchema),
]);
export function createProjectTrustedIpsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectTrustedIps$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTrustedIps' from JSON`);
}
/** @internal */
export const CreateProjectFromPreset$inboundSchema = z.nativeEnum(CreateProjectFromPreset);
/** @internal */
export const CreateProjectFrom2$inboundSchema = z.object({
    slugs: types.optional(z.array(types.string())),
    preset: CreateProjectFromPreset$inboundSchema,
});
export function createProjectFrom2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectFrom2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectFrom2' from JSON`);
}
/** @internal */
export const CreateProjectFromProjectsPreset$inboundSchema = z.nativeEnum(CreateProjectFromProjectsPreset);
/** @internal */
export const CreateProjectFrom1$inboundSchema = z.object({
    slugs: z.array(types.string()),
    preset: types.optional(CreateProjectFromProjectsPreset$inboundSchema),
});
export function createProjectFrom1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectFrom1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectFrom1' from JSON`);
}
/** @internal */
export const CreateProjectFrom$inboundSchema = smartUnion([
    z.lazy(() => CreateProjectFrom1$inboundSchema),
    z.lazy(() => CreateProjectFrom2$inboundSchema),
]);
export function createProjectFromFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectFrom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectFrom' from JSON`);
}
/** @internal */
export const CreateProjectToProjectsResponse200Preset$inboundSchema = z
    .nativeEnum(CreateProjectToProjectsResponse200Preset);
/** @internal */
export const CreateProjectToProjects2$inboundSchema = z.object({
    slugs: types.optional(z.array(types.string())),
    preset: CreateProjectToProjectsResponse200Preset$inboundSchema,
});
export function createProjectToProjects2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectToProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectToProjects2' from JSON`);
}
/** @internal */
export const CreateProjectToProjectsResponsePreset$inboundSchema = z.nativeEnum(CreateProjectToProjectsResponsePreset);
/** @internal */
export const CreateProjectToProjects1$inboundSchema = z.object({
    slugs: z.array(types.string()),
    preset: types.optional(CreateProjectToProjectsResponsePreset$inboundSchema),
});
export function createProjectToProjects1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectToProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectToProjects1' from JSON`);
}
/** @internal */
export const CreateProjectProjectsTo$inboundSchema = smartUnion([
    z.lazy(() => CreateProjectToProjects1$inboundSchema),
    z.lazy(() => CreateProjectToProjects2$inboundSchema),
]);
export function createProjectProjectsToFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsTo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsTo' from JSON`);
}
/** @internal */
export const CreateProjectCustomAllow$inboundSchema = z.object({
    from: smartUnion([
        z.lazy(() => CreateProjectFrom1$inboundSchema),
        z.lazy(() => CreateProjectFrom2$inboundSchema),
    ]),
    to: smartUnion([
        z.lazy(() => CreateProjectToProjects1$inboundSchema),
        z.lazy(() => CreateProjectToProjects2$inboundSchema),
    ]),
});
export function createProjectCustomAllowFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectCustomAllow$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectCustomAllow' from JSON`);
}
/** @internal */
export const CreateProjectProjects$inboundSchema = z.object({
    label: types.optional(types.string()),
    customAllow: types.optional(z.array(z.lazy(() => CreateProjectCustomAllow$inboundSchema))),
});
export function createProjectProjectsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjects$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjects' from JSON`);
}
/** @internal */
export const CreateProjectToProjectsPreset$inboundSchema = z.nativeEnum(CreateProjectToProjectsPreset);
/** @internal */
export const CreateProjectTo2$inboundSchema = z.object({
    slugs: types.optional(z.array(types.string())),
    preset: CreateProjectToProjectsPreset$inboundSchema,
});
export function createProjectTo2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectTo2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTo2' from JSON`);
}
/** @internal */
export const CreateProjectToPreset$inboundSchema = z.nativeEnum(CreateProjectToPreset);
/** @internal */
export const CreateProjectTo1$inboundSchema = z.object({
    slugs: z.array(types.string()),
    preset: types.optional(CreateProjectToPreset$inboundSchema),
});
export function createProjectTo1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectTo1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTo1' from JSON`);
}
/** @internal */
export const CreateProjectTo$inboundSchema = smartUnion([
    z.lazy(() => CreateProjectTo1$inboundSchema),
    z.lazy(() => CreateProjectTo2$inboundSchema),
]);
export function createProjectToFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectTo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTo' from JSON`);
}
/** @internal */
export const CreateProjectOidcProviders$inboundSchema = z.object({
    to: smartUnion([
        z.lazy(() => CreateProjectTo1$inboundSchema),
        z.lazy(() => CreateProjectTo2$inboundSchema),
    ]),
    label: types.optional(types.string()),
    claims: z.record(z.array(types.string())),
});
export function createProjectOidcProvidersFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectOidcProviders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectOidcProviders' from JSON`);
}
/** @internal */
export const CreateProjectTrustedSources$inboundSchema = z.object({
    enableVercelCiSameRepository: types.optional(types.boolean()),
    projects: types.optional(z.record(z.lazy(() => CreateProjectProjects$inboundSchema))),
    oidcProviders: types.optional(z.record(z.array(z.lazy(() => CreateProjectOidcProviders$inboundSchema)))),
});
export function createProjectTrustedSourcesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectTrustedSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTrustedSources' from JSON`);
}
/** @internal */
export const CreateProjectGitComments$inboundSchema = z.object({
    onPullRequest: types.boolean(),
    onCommit: types.boolean(),
});
export function createProjectGitCommentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectGitComments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectGitComments' from JSON`);
}
/** @internal */
export const CreateProjectCreateDeployments$inboundSchema = z.nativeEnum(CreateProjectCreateDeployments);
/** @internal */
export const CreateProjectConsolidatedGitCommitStatus$inboundSchema = z.object({
    enabled: types.boolean(),
    propagateFailures: types.boolean(),
});
export function createProjectConsolidatedGitCommitStatusFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectConsolidatedGitCommitStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectConsolidatedGitCommitStatus' from JSON`);
}
/** @internal */
export const GitProviderOptions$inboundSchema = z.object({
    createDeployments: CreateProjectCreateDeployments$inboundSchema,
    disableRepositoryDispatchEvents: types.optional(types.boolean()),
    requireVerifiedCommits: types.optional(types.boolean()),
    gitCommitStatus: types.optional(types.boolean()),
    consolidatedGitCommitStatus: types.optional(z.lazy(() => CreateProjectConsolidatedGitCommitStatus$inboundSchema)),
});
export function gitProviderOptionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GitProviderOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GitProviderOptions' from JSON`);
}
/** @internal */
export const CreateProjectWebAnalytics$inboundSchema = 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 createProjectWebAnalyticsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectWebAnalytics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectWebAnalytics' from JSON`);
}
/** @internal */
export const CreateProjectProjectsAction$inboundSchema = z.nativeEnum(CreateProjectProjectsAction);
/** @internal */
export const CreateProjectAlgo$inboundSchema = z.nativeEnum(CreateProjectAlgo);
/** @internal */
export const CreateProjectRateLimit$inboundSchema = z.object({
    algo: CreateProjectAlgo$inboundSchema,
    window: types.number(),
    limit: types.number(),
    keys: z.array(types.string()),
});
export function createProjectRateLimitFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectRateLimit' from JSON`);
}
/** @internal */
export const CreateProjectRedirect$inboundSchema = z.object({
    location: types.string(),
    permanent: types.boolean(),
});
export function createProjectRedirectFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectRedirect' from JSON`);
}
/** @internal */
export const CreateProjectLogHeadersProjects2$inboundSchema = z.nativeEnum(CreateProjectLogHeadersProjects2);
/** @internal */
export const CreateProjectProjectsLogHeaders$inboundSchema = smartUnion([
    z.array(types.string()),
    CreateProjectLogHeadersProjects2$inboundSchema,
]);
export function createProjectProjectsLogHeadersFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsLogHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsLogHeaders' from JSON`);
}
/** @internal */
export const CreateProjectRulesets$inboundSchema = z.object({
    action: CreateProjectProjectsAction$inboundSchema,
    rateLimit: z.nullable(z.lazy(() => CreateProjectRateLimit$inboundSchema))
        .optional(),
    redirect: z.nullable(z.lazy(() => CreateProjectRedirect$inboundSchema))
        .optional(),
    actionDuration: z.nullable(types.string()).optional(),
    bypassSystem: z.nullable(types.boolean()).optional(),
    logHeaders: types.optional(smartUnion([
        z.array(types.string()),
        CreateProjectLogHeadersProjects2$inboundSchema,
    ])),
});
export function createProjectRulesetsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectRulesets$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectRulesets' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction);
/** @internal */
export const CreateProjectVercelRuleset$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema),
});
export function createProjectVercelRulesetFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectVercelRuleset$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectVercelRuleset' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction);
/** @internal */
export const CreateProjectTrafficSources$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction$inboundSchema),
});
export function createProjectTrafficSourcesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectTrafficSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTrafficSources' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction);
/** @internal */
export const BotFilter$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema),
});
export function botFilterFromJSON(jsonString) {
    return safeParse(jsonString, (x) => BotFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BotFilter' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodyAction);
/** @internal */
export const CreateProjectAiBots$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(CreateProjectProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema),
});
export function createProjectAiBotsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectAiBots$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectAiBots' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema = z.nativeEnum(CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction);
/** @internal */
export const CreateProjectOwasp$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(CreateProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema),
});
export function createProjectOwaspFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectOwasp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectOwasp' from JSON`);
}
/** @internal */
export const CreateProjectManagedRules$inboundSchema = z.object({
    vercel_ruleset: z.lazy(() => CreateProjectVercelRuleset$inboundSchema),
    traffic_sources: z.lazy(() => CreateProjectTrafficSources$inboundSchema),
    bot_filter: z.lazy(() => BotFilter$inboundSchema),
    ai_bots: z.lazy(() => CreateProjectAiBots$inboundSchema),
    owasp: z.lazy(() => CreateProjectOwasp$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "vercel_ruleset": "vercelRuleset",
        "traffic_sources": "trafficSources",
        "bot_filter": "botFilter",
        "ai_bots": "aiBots",
    });
});
export function createProjectManagedRulesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectManagedRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectManagedRules' from JSON`);
}
/** @internal */
export const CreateProjectLogHeaders2$inboundSchema = z.nativeEnum(CreateProjectLogHeaders2);
/** @internal */
export const CreateProjectLogHeaders$inboundSchema = smartUnion([
    z.array(types.string()),
    CreateProjectLogHeaders2$inboundSchema,
]);
export function createProjectLogHeadersFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectLogHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectLogHeaders' from JSON`);
}
/** @internal */
export const SecurityPlusMetadata$inboundSchema = z.object({
    updatedAt: types.number(),
    firstEnabledAt: types.optional(types.number()),
});
export function securityPlusMetadataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SecurityPlusMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SecurityPlusMetadata' from JSON`);
}
/** @internal */
export const CreateProjectSecurity$inboundSchema = 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(() => CreateProjectRulesets$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(() => CreateProjectManagedRules$inboundSchema)).optional(),
    botIdEnabled: types.optional(types.boolean()),
    log_headers: types.optional(smartUnion([
        z.array(types.string()),
        CreateProjectLogHeaders2$inboundSchema,
    ])),
    securityPlus: types.optional(types.boolean()),
    securityPlusMetadata: types.optional(z.lazy(() => SecurityPlusMetadata$inboundSchema)),
    pageIntegrityEnabled: types.optional(types.boolean()),
}).transform((v) => {
    return remap$(v, {
        "log_headers": "logHeaders",
    });
});
export function createProjectSecurityFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectSecurity' from JSON`);
}
/** @internal */
export const CreateProjectProjectsIssuerMode$inboundSchema = z.nativeEnum(CreateProjectProjectsIssuerMode);
/** @internal */
export const CreateProjectOidcTokenConfig$inboundSchema = z.object({
    enabled: types.optional(types.boolean()),
    issuerMode: types.optional(CreateProjectProjectsIssuerMode$inboundSchema),
});
export function createProjectOidcTokenConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectOidcTokenConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectOidcTokenConfig' from JSON`);
}
/** @internal */
export const CreateProjectSources2$inboundSchema = z.object({
    provider: types.literal("gitlab"),
    namespace: types.string(),
    project: types.optional(types.string()),
});
export function createProjectSources2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectSources2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectSources2' from JSON`);
}
/** @internal */
export const CreateProjectSourcesProjectsProvider$inboundSchema = z.nativeEnum(CreateProjectSourcesProjectsProvider);
/** @internal */
export const CreateProjectSources1$inboundSchema = z.object({
    provider: CreateProjectSourcesProjectsProvider$inboundSchema,
    org: types.string(),
    repo: types.optional(types.string()),
});
export function createProjectSources1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectSources1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectSources1' from JSON`);
}
/** @internal */
export const CreateProjectSources$inboundSchema = z.union([
    z.lazy(() => CreateProjectSources1$inboundSchema).and(z.object({ provider: z.literal("bitbucket") })),
    z.lazy(() => CreateProjectSources1$inboundSchema).and(z.object({ provider: z.literal("github") })),
    z.lazy(() => CreateProjectSources2$inboundSchema),
]);
export function createProjectSourcesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectSources' from JSON`);
}
/** @internal */
export const CreateProjectEnvironmentsProjects2$inboundSchema = z.object({
    type: types.literal("custom"),
    environmentId: types.string(),
});
export function createProjectEnvironmentsProjects2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectEnvironmentsProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectEnvironmentsProjects2' from JSON`);
}
/** @internal */
export const CreateProjectEnvironmentsProjectsTarget$inboundSchema = z
    .nativeEnum(CreateProjectEnvironmentsProjectsTarget);
/** @internal */
export const CreateProjectEnvironments1$inboundSchema = z.object({
    type: types.literal("system"),
    target: CreateProjectEnvironmentsProjectsTarget$inboundSchema,
});
export function createProjectEnvironments1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectEnvironments1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectEnvironments1' from JSON`);
}
/** @internal */
export const CreateProjectEnvironments$inboundSchema = z.union([
    z.lazy(() => CreateProjectEnvironments1$inboundSchema),
    z.lazy(() => CreateProjectEnvironmentsProjects2$inboundSchema),
]);
export function createProjectEnvironmentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectEnvironments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectEnvironments' from JSON`);
}
/** @internal */
export const CreateProjectGitSources$inboundSchema = z.object({
    sources: z.array(z.union([
        z.lazy(() => CreateProjectSources1$inboundSchema).and(z.object({ provider: z.literal("bitbucket") })),
        z.lazy(() => CreateProjectSources1$inboundSchema).and(z.object({ provider: z.literal("github") })),
        z.lazy(() => CreateProjectSources2$inboundSchema),
    ])),
    enabled: types.boolean(),
    environments: z.array(z.union([
        z.lazy(() => CreateProjectEnvironments1$inboundSchema),
        z.lazy(() => CreateProjectEnvironmentsProjects2$inboundSchema),
    ])),
});
export function createProjectGitSourcesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectGitSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectGitSources' from JSON`);
}
/** @internal */
export const CreateProjectProjectsSources$inboundSchema = z.nativeEnum(CreateProjectProjectsSources);
/** @internal */
export const CreateProjectEnvironments2$inboundSchema = z.object({
    type: types.literal("custom"),
    environmentId: types.string(),
});
export function createProjectEnvironments2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectEnvironments2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectEnvironments2' from JSON`);
}
/** @internal */
export const CreateProjectEnvironmentsTarget$inboundSchema = z.nativeEnum(CreateProjectEnvironmentsTarget);
/** @internal */
export const CreateProjectEnvironmentsProjects1$inboundSchema = z.object({
    type: types.literal("system"),
    target: CreateProjectEnvironmentsTarget$inboundSchema,
});
export function createProjectEnvironmentsProjects1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectEnvironmentsProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectEnvironmentsProjects1' from JSON`);
}
/** @internal */
export const CreateProjectProjectsEnvironments$inboundSchema = z.union([
    z.lazy(() => CreateProjectEnvironmentsProjects1$inboundSchema),
    z.lazy(() => CreateProjectEnvironments2$inboundSchema),
]);
export function createProjectProjectsEnvironmentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectProjectsEnvironments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectProjectsEnvironments' from JSON`);
}
/** @internal */
export const CreateProjectDeploymentSources$inboundSchema = z.object({
    sources: z.array(CreateProjectProjectsSources$inboundSchema),
    enabled: types.boolean(),
    environments: z.array(z.union([
        z.lazy(() => CreateProjectEnvironmentsProjects1$inboundSchema),
        z.lazy(() => CreateProjectEnvironments2$inboundSchema),
    ])),
});
export function createProjectDeploymentSourcesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectDeploymentSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectDeploymentSources' from JSON`);
}
/** @internal */
export const CreateProjectDeploymentPolicy$inboundSchema = z.object({
    gitSources: z.nullable(z.array(z.lazy(() => CreateProjectGitSources$inboundSchema))).optional(),
    deploymentSources: z.nullable(z.array(z.lazy(() => CreateProjectDeploymentSources$inboundSchema))).optional(),
});
export function createProjectDeploymentPolicyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectDeploymentPolicy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectDeploymentPolicy' from JSON`);
}
/** @internal */
export const CreateProjectTier$inboundSchema = z.nativeEnum(CreateProjectTier);
/** @internal */
export const CreateProjectKind$inboundSchema = z.nativeEnum(CreateProjectKind);
/** @internal */
export const UsageStatus$inboundSchema = z.object({
    kind: CreateProjectKind$inboundSchema,
    exceededAllowanceUntil: types.optional(types.number()),
    bypassThrottleUntil: types.optional(types.number()),
    throttled: types.optional(types.boolean()),
    teamThrottled: types.optional(types.boolean()),
});
export function usageStatusFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UsageStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UsageStatus' from JSON`);
}
/** @internal */
export const Features$inboundSchema = z.object({
    webAnalytics: types.optional(types.boolean()),
});
export function featuresFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Features$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Features' from JSON`);
}
/** @internal */
export const CreateProjectHistory$inboundSchema = z.object({
    scanner: types.string(),
    reason: types.string(),
    by: types.string(),
    byId: types.string(),
    at: types.number(),
});
export function createProjectHistoryFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectHistory' from JSON`);
}
/** @internal */
export const CreateProjectProjectsResponseAction$inboundSchema = z.nativeEnum(CreateProjectProjectsResponseAction);
/** @internal */
export const Block$inboundSchema = z
    .object({
    action: CreateProjectProjectsResponseAction$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 blockFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Block$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Block' from JSON`);
}
/** @internal */
export const CreateProjectHasProjectsResponse200Value$inboundSchema = z.object({
    eq: types.string(),
});
export function createProjectHasProjectsResponse200ValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHasProjectsResponse200Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectHasProjectsResponse200Value' from JSON`);
}
/** @internal */
export const CreateProjectHasProjects2$inboundSchema = z.object({
    type: types.literal("host"),
    value: z.lazy(() => CreateProjectHasProjectsResponse200Value$inboundSchema),
});
export function createProjectHasProjects2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHasProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectHasProjects2' from JSON`);
}
/** @internal */
export const CreateProjectHasProjectsKey$inboundSchema = z.nativeEnum(CreateProjectHasProjectsKey);
/** @internal */
export const CreateProjectHasProjectsResponseValue$inboundSchema = z.object({
    eq: types.string(),
});
export function createProjectHasProjectsResponseValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHasProjectsResponseValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectHasProjectsResponseValue' from JSON`);
}
/** @internal */
export const CreateProjectHasProjects1$inboundSchema = z.object({
    type: types.literal("header"),
    key: CreateProjectHasProjectsKey$inboundSchema,
    value: z.lazy(() => CreateProjectHasProjectsResponseValue$inboundSchema),
});
export function createProjectHasProjects1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHasProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectHasProjects1' from JSON`);
}
/** @internal */
export const CreateProjectRouteHas$inboundSchema = z.union([
    z.lazy(() => CreateProjectHasProjects1$inboundSchema),
    z.lazy(() => CreateProjectHasProjects2$inboundSchema),
]);
export function createProjectRouteHasFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectRouteHas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectRouteHas' from JSON`);
}
/** @internal */
export const CreateProjectRouteAction$inboundSchema = z.nativeEnum(CreateProjectRouteAction);
/** @internal */
export const CreateProjectRouteMitigate$inboundSchema = z.object({
    action: CreateProjectRouteAction$inboundSchema,
});
export function createProjectRouteMitigateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectRouteMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectRouteMitigate' from JSON`);
}
/** @internal */
export const CreateProjectRoute2$inboundSchema = z.object({
    has: z.array(z.union([
        z.lazy(() => CreateProjectHasProjects1$inboundSchema),
        z.lazy(() => CreateProjectHasProjects2$inboundSchema),
    ])),
    mitigate: z.lazy(() => CreateProjectRouteMitigate$inboundSchema),
    src: types.optional(types.string()),
});
export function createProjectRoute2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectRoute2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectRoute2' from JSON`);
}
/** @internal */
export const CreateProjectRoute1$inboundSchema = z.object({
    src: types.string(),
    status: types.number(),
    expiry: types.optional(types.number()),
});
export function createProjectRoute1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectRoute1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectRoute1' from JSON`);
}
/** @internal */
export const CreateProjectBlockHistoryRoute$inboundSchema = smartUnion([
    z.lazy(() => CreateProjectRoute1$inboundSchema),
    z.lazy(() => CreateProjectRoute2$inboundSchema),
]);
export function createProjectBlockHistoryRouteFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectBlockHistoryRoute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectBlockHistoryRoute' from JSON`);
}
/** @internal */
export const BlockHistory4$inboundSchema = z.object({
    action: types.literal("route-unblocked"),
    route: smartUnion([
        z.lazy(() => CreateProjectRoute1$inboundSchema),
        z.lazy(() => CreateProjectRoute2$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 blockHistory4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => BlockHistory4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BlockHistory4' from JSON`);
}
/** @internal */
export const CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema = z.object({
    eq: types.string(),
});
export function createProjectHasProjectsResponse200ApplicationJSONResponseBodyValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue' from JSON`);
}
/** @internal */
export const CreateProjectHasProjectsResponse2$inboundSchema = z.object({
    type: types.literal("host"),
    value: z.lazy(() => CreateProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema),
});
export function createProjectHasProjectsResponse2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHasProjectsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectHasProjectsResponse2' from JSON`);
}
/** @internal */
export const CreateProjectHasProjectsResponseKey$inboundSchema = z.nativeEnum(CreateProjectHasProjectsResponseKey);
/** @internal */
export const CreateProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema = z.object({
    eq: types.string(),
});
export function createProjectHasProjectsResponse200ApplicationJSONValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateProjectHasProjectsResponse200ApplicationJSONValue' from JSON`);
}
/** @internal */
export const CreateProjectHasProjectsResponse1$inboundSchema = z.object({
    type: types.literal("header"),
    key: CreateProjectHasProjectsResponseKey$inboundSchema,
    value: z.lazy(() => CreateProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema),
});
export function createProjectHasProjectsResponse1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateProjectHasProjectsResponse1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectHasProjectsResponse1' from JSON`);
}
//# sourceMappingURL=createprojecthasprojectsresponse1.js.map