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,660 lines 87.5 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 GetProjectProjectsFunctionDefaultMemoryType = {
    Performance: "performance",
    PerformanceXl: "performance_xl",
    Standard: "standard",
    StandardLegacy: "standard_legacy",
};
export const GetProjectProjectsBuildMachineType = {
    Basic: "basic",
    Enhanced: "enhanced",
    Standard: "standard",
    Turbo: "turbo",
};
export const GetProjectProjectsBuildMachineSelection = {
    Elastic: "elastic",
    Fixed: "fixed",
};
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",
};
export const GetProjectProjectsConfiguration = {
    SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
    WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
};
export const GetProjectProjectsDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const GetProjectCve55182MigrationAppliedFrom = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const GetProjectApril2026SecurityIncidentMigrationAppliedFrom = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
/**
 * The type of matching to perform
 */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType = {
    EndsWith: "endsWith",
    Equals: "equals",
    StartsWith: "startsWith",
};
export const GetProjectProjectsChecksConclusion = {
    Canceled: "canceled",
    Failed: "failed",
    Skipped: "skipped",
    Succeeded: "succeeded",
};
export const GetProjectProjectsChecksState = {
    Completed: "completed",
    Registered: "registered",
    Running: "running",
};
export const GetProjectProjectsPlan = {
    Enterprise: "enterprise",
    Hobby: "hobby",
    Pro: "pro",
};
export const GetProjectProjectsReadyState = {
    Blocked: "BLOCKED",
    Building: "BUILDING",
    Canceled: "CANCELED",
    Error: "ERROR",
    Initializing: "INITIALIZING",
    Queued: "QUEUED",
    Ready: "READY",
};
export const GetProjectProjectsReadySubstate = {
    Promoted: "PROMOTED",
    Rolling: "ROLLING",
    Staged: "STAGED",
};
export const GetProjectProjectsResponse200Type = {
    Lambdas: "LAMBDAS",
};
export const GetProjectJobStatus = {
    Failed: "failed",
    InProgress: "in-progress",
    Pending: "pending",
    Skipped: "skipped",
    Succeeded: "succeeded",
};
export const GetProjectProjectsResponse200ApplicationJSONType = {
    Promote: "promote",
    Rollback: "rollback",
};
export const GetProjectTrustedIpsProjectsDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
    Production: "production",
};
export const GetProjectTrustedIpsDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
    Production: "production",
};
export const TrustedIpsProtectionMode = {
    Additional: "additional",
    Exclusive: "exclusive",
};
export const GetProjectFromProjectsPreset = {
    AllCustom: "all-custom",
};
export const GetProjectFromPreset = {
    AllCustom: "all-custom",
};
export const GetProjectToProjectsResponse200Preset = {
    AllCustom: "all-custom",
};
export const GetProjectToProjectsResponsePreset = {
    AllCustom: "all-custom",
};
export const GetProjectToProjectsPreset = {
    AllCustom: "all-custom",
};
export const GetProjectToPreset = {
    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 GetProjectCreateDeployments = {
    Disabled: "disabled",
    Enabled: "enabled",
};
export const GetProjectProjectsAction = {
    Allow: "allow",
    Bypass: "bypass",
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
    RateLimit: "rate_limit",
    Redirect: "redirect",
};
export const GetProjectAlgo = {
    FixedWindow: "fixed_window",
    TokenBucket: "token_bucket",
};
export const GetProjectLogHeadersProjects2 = {
    Wildcard: "*",
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction = {
    Challenge: "challenge",
    Deny: "deny",
    Log: "log",
};
export const GetProjectLogHeaders2 = {
    Wildcard: "*",
};
/**
 * - team: `https://oidc.vercel.com/[team_slug]` - global: `https://oidc.vercel.com`
 */
export const GetProjectIssuerMode = {
    Global: "global",
    Team: "team",
};
export const GetProjectSourcesProvider = {
    Bitbucket: "bitbucket",
    Github: "github",
};
export const GetProjectEnvironmentsTarget = {
    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 GetProjectProjectsSources = {
    Cli: "cli",
    DeployHook: "deploy-hook",
    Git: "git",
    Integration: "integration",
    RestApi: "rest-api",
    V0: "v0",
};
export const GetProjectEnvironmentsProjectsTarget = {
    Preview: "preview",
    Production: "production",
};
export const GetProjectTier = {
    Advanced: "advanced",
    Critical: "critical",
    Priority: "priority",
};
/**
 * Billing mode. Always 'flat' for flat-rate projects.
 */
export const GetProjectKind = {
    Flat: "flat",
};
export const GetProjectProjectsResponseAction = {
    Blocked: "blocked",
};
export const GetProjectHasProjectsKey = {
    XVercelIpCountry: "x-vercel-ip-country",
};
export const GetProjectRouteProjectsAction = {
    BlockLegalCwc: "block_legal_cwc",
};
export const GetProjectHasKey = {
    XVercelIpCountry: "x-vercel-ip-country",
};
export const GetProjectRouteAction = {
    BlockLegalCwc: "block_legal_cwc",
};
export const GetProjectProjectsResponse200Action = {
    AddDeploymentInterstitial: "add-deployment-interstitial",
    AddProjectInterstitial: "add-project-interstitial",
    RemoveDeploymentInterstitial: "remove-deployment-interstitial",
    RemoveProjectInterstitial: "remove-project-interstitial",
};
export const HasKey = {
    XVercelIpCountry: "x-vercel-ip-country",
};
export const GetProjectInternalRoutesAction = {
    BlockLegalCwc: "block_legal_cwc",
};
/** @internal */
export const GetProjectProjectsFunctionDefaultMemoryType$inboundSchema = z
    .nativeEnum(GetProjectProjectsFunctionDefaultMemoryType);
/** @internal */
export const GetProjectProjectsBuildMachineType$inboundSchema = z.nativeEnum(GetProjectProjectsBuildMachineType);
/** @internal */
export const GetProjectProjectsBuildMachineSelection$inboundSchema = z
    .nativeEnum(GetProjectProjectsBuildMachineSelection);
/** @internal */
export const GetProjectProjectsBuildMachineElasticReason$inboundSchema = z
    .nativeEnum(GetProjectProjectsBuildMachineElasticReason);
/** @internal */
export const GetProjectProjectsConfiguration$inboundSchema = z.nativeEnum(GetProjectProjectsConfiguration);
/** @internal */
export const GetProjectProjectsBuildQueue$inboundSchema = z.object({
    configuration: types.optional(GetProjectProjectsConfiguration$inboundSchema),
});
export function getProjectProjectsBuildQueueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsBuildQueue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsBuildQueue' from JSON`);
}
/** @internal */
export const GetProjectDefaultResourceConfig$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(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) {
    return safeParse(jsonString, (x) => GetProjectDefaultResourceConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDefaultResourceConfig' from JSON`);
}
/** @internal */
export const GetProjectStaticIps$inboundSchema = z.object({
    builds: types.boolean(),
    enabled: types.boolean(),
    regions: z.array(types.string()),
});
export function getProjectStaticIpsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectStaticIps$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectStaticIps' from JSON`);
}
/** @internal */
export const GetProjectProjectsDeploymentType$inboundSchema = z.nativeEnum(GetProjectProjectsDeploymentType);
/** @internal */
export const GetProjectCve55182MigrationAppliedFrom$inboundSchema = z.nativeEnum(GetProjectCve55182MigrationAppliedFrom);
/** @internal */
export const GetProjectApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema = z.nativeEnum(GetProjectApril2026SecurityIncidentMigrationAppliedFrom);
/** @internal */
export const GetProjectSsoProtection$inboundSchema = z.object({
    deploymentType: GetProjectProjectsDeploymentType$inboundSchema,
    cve55182MigrationAppliedFrom: z.nullable(GetProjectCve55182MigrationAppliedFrom$inboundSchema).optional(),
    april2026SecurityIncidentMigrationAppliedFrom: z.nullable(GetProjectApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema).optional(),
});
export function getProjectSsoProtectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectSsoProtection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSsoProtection' from JSON`);
}
/** @internal */
export const GetProjectProjectsAliasAssigned$inboundSchema = smartUnion([types.number(), types.boolean()]);
export function getProjectProjectsAliasAssignedFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsAliasAssigned$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsAliasAssigned' from JSON`);
}
/** @internal */
export const GetProjectProjectsAliasError$inboundSchema = z.object({
    code: types.string(),
    message: types.string(),
});
export function getProjectProjectsAliasErrorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsAliasError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsAliasError' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType);
/** @internal */
export const GetProjectProjectsResponseBranchMatcher$inboundSchema = z.object({
    type: GetProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema,
    pattern: types.string(),
});
export function getProjectProjectsResponseBranchMatcherFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsResponseBranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsResponseBranchMatcher' from JSON`);
}
/** @internal */
export const GetProjectProjectsBuilds$inboundSchema = z.object({
    use: types.string(),
    src: types.optional(types.string()),
    dest: types.optional(types.string()),
});
export function getProjectProjectsBuildsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsBuilds$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsBuilds' from JSON`);
}
/** @internal */
export const GetProjectProjectsChecksConclusion$inboundSchema = z.nativeEnum(GetProjectProjectsChecksConclusion);
/** @internal */
export const GetProjectProjectsChecksState$inboundSchema = z.nativeEnum(GetProjectProjectsChecksState);
/** @internal */
export const GetProjectProjectsResponseCreator$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectProjectsResponseCreator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsResponseCreator' from JSON`);
}
/** @internal */
export const GetProjectProjectsOidcTokenClaims$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 getProjectProjectsOidcTokenClaimsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsOidcTokenClaims$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsOidcTokenClaims' from JSON`);
}
/** @internal */
export const GetProjectProjectsPlan$inboundSchema = z.nativeEnum(GetProjectProjectsPlan);
/** @internal */
export const GetProjectProjectsReadyState$inboundSchema = z.nativeEnum(GetProjectProjectsReadyState);
/** @internal */
export const GetProjectProjectsReadySubstate$inboundSchema = z.nativeEnum(GetProjectProjectsReadySubstate);
/** @internal */
export const GetProjectProjectsResponse200Type$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200Type);
/** @internal */
export const GetProjectTargets$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(() => 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) {
    return safeParse(jsonString, (x) => GetProjectTargets$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTargets' from JSON`);
}
/** @internal */
export const GetProjectPermissions$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 getProjectPermissionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectPermissions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectPermissions' from JSON`);
}
/** @internal */
export const GetProjectLastRollbackTarget$inboundSchema = z.object({});
export function getProjectLastRollbackTargetFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLastRollbackTarget$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLastRollbackTarget' from JSON`);
}
/** @internal */
export const GetProjectJobStatus$inboundSchema = z.nativeEnum(GetProjectJobStatus);
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONType$inboundSchema = z
    .nativeEnum(GetProjectProjectsResponse200ApplicationJSONType);
/** @internal */
export const GetProjectLastAliasRequest$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectLastAliasRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLastAliasRequest' from JSON`);
}
/** @internal */
export const GetProjectProtectionBypass2$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 getProjectProtectionBypass2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProtectionBypass2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProtectionBypass2' from JSON`);
}
/** @internal */
export const GetProjectProtectionBypass1$inboundSchema = z.object({
    createdAt: types.number(),
    createdBy: types.string(),
    scope: types.literal("integration-automation-bypass"),
    integrationId: types.string(),
    configurationId: types.string(),
});
export function getProjectProtectionBypass1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProtectionBypass1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProtectionBypass1' from JSON`);
}
/** @internal */
export const GetProjectProtectionBypass$inboundSchema = z.union([
    z.lazy(() => GetProjectProtectionBypass1$inboundSchema),
    z.lazy(() => GetProjectProtectionBypass2$inboundSchema),
]);
export function getProjectProtectionBypassFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProtectionBypass$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProtectionBypass' from JSON`);
}
/** @internal */
export const GetProjectTrustedIpsProjectsDeploymentType$inboundSchema = z
    .nativeEnum(GetProjectTrustedIpsProjectsDeploymentType);
/** @internal */
export const GetProjectTrustedIps2$inboundSchema = z.object({
    deploymentType: GetProjectTrustedIpsProjectsDeploymentType$inboundSchema,
});
export function getProjectTrustedIps2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectTrustedIps2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTrustedIps2' from JSON`);
}
/** @internal */
export const GetProjectTrustedIpsDeploymentType$inboundSchema = z.nativeEnum(GetProjectTrustedIpsDeploymentType);
/** @internal */
export const TrustedIpsAddresses$inboundSchema = z.object({
    value: types.string(),
    note: types.optional(types.string()),
});
export function trustedIpsAddressesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => TrustedIpsAddresses$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TrustedIpsAddresses' from JSON`);
}
/** @internal */
export const TrustedIpsProtectionMode$inboundSchema = z.nativeEnum(TrustedIpsProtectionMode);
/** @internal */
export const GetProjectTrustedIps1$inboundSchema = z.object({
    deploymentType: GetProjectTrustedIpsDeploymentType$inboundSchema,
    addresses: z.array(z.lazy(() => TrustedIpsAddresses$inboundSchema)),
    protectionMode: TrustedIpsProtectionMode$inboundSchema,
});
export function getProjectTrustedIps1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectTrustedIps1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTrustedIps1' from JSON`);
}
/** @internal */
export const GetProjectTrustedIps$inboundSchema = smartUnion([
    z.lazy(() => GetProjectTrustedIps1$inboundSchema),
    z.lazy(() => GetProjectTrustedIps2$inboundSchema),
]);
export function getProjectTrustedIpsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectTrustedIps$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTrustedIps' from JSON`);
}
/** @internal */
export const GetProjectFromProjectsPreset$inboundSchema = z.nativeEnum(GetProjectFromProjectsPreset);
/** @internal */
export const GetProjectFrom2$inboundSchema = z.object({
    slugs: types.optional(z.array(types.string())),
    preset: GetProjectFromProjectsPreset$inboundSchema,
});
export function getProjectFrom2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectFrom2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectFrom2' from JSON`);
}
/** @internal */
export const GetProjectFromPreset$inboundSchema = z.nativeEnum(GetProjectFromPreset);
/** @internal */
export const GetProjectFrom1$inboundSchema = z.object({
    slugs: z.array(types.string()),
    preset: types.optional(GetProjectFromPreset$inboundSchema),
});
export function getProjectFrom1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectFrom1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectFrom1' from JSON`);
}
/** @internal */
export const GetProjectFrom$inboundSchema = smartUnion([
    z.lazy(() => GetProjectFrom1$inboundSchema),
    z.lazy(() => GetProjectFrom2$inboundSchema),
]);
export function getProjectFromFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectFrom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectFrom' from JSON`);
}
/** @internal */
export const GetProjectToProjectsResponse200Preset$inboundSchema = z.nativeEnum(GetProjectToProjectsResponse200Preset);
/** @internal */
export const GetProjectToProjects2$inboundSchema = z.object({
    slugs: types.optional(z.array(types.string())),
    preset: GetProjectToProjectsResponse200Preset$inboundSchema,
});
export function getProjectToProjects2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectToProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectToProjects2' from JSON`);
}
/** @internal */
export const GetProjectToProjectsResponsePreset$inboundSchema = z.nativeEnum(GetProjectToProjectsResponsePreset);
/** @internal */
export const GetProjectToProjects1$inboundSchema = z.object({
    slugs: z.array(types.string()),
    preset: types.optional(GetProjectToProjectsResponsePreset$inboundSchema),
});
export function getProjectToProjects1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectToProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectToProjects1' from JSON`);
}
/** @internal */
export const GetProjectProjectsTo$inboundSchema = smartUnion([
    z.lazy(() => GetProjectToProjects1$inboundSchema),
    z.lazy(() => GetProjectToProjects2$inboundSchema),
]);
export function getProjectProjectsToFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsTo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsTo' from JSON`);
}
/** @internal */
export const GetProjectCustomAllow$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectCustomAllow$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCustomAllow' from JSON`);
}
/** @internal */
export const GetProjectProjects$inboundSchema = z.object({
    label: types.optional(types.string()),
    customAllow: types.optional(z.array(z.lazy(() => GetProjectCustomAllow$inboundSchema))),
});
export function getProjectProjectsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjects$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjects' from JSON`);
}
/** @internal */
export const GetProjectToProjectsPreset$inboundSchema = z.nativeEnum(GetProjectToProjectsPreset);
/** @internal */
export const GetProjectTo2$inboundSchema = z.object({
    slugs: types.optional(z.array(types.string())),
    preset: GetProjectToProjectsPreset$inboundSchema,
});
export function getProjectTo2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectTo2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTo2' from JSON`);
}
/** @internal */
export const GetProjectToPreset$inboundSchema = z.nativeEnum(GetProjectToPreset);
/** @internal */
export const GetProjectTo1$inboundSchema = z.object({
    slugs: z.array(types.string()),
    preset: types.optional(GetProjectToPreset$inboundSchema),
});
export function getProjectTo1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectTo1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTo1' from JSON`);
}
/** @internal */
export const GetProjectTo$inboundSchema = smartUnion([
    z.lazy(() => GetProjectTo1$inboundSchema),
    z.lazy(() => GetProjectTo2$inboundSchema),
]);
export function getProjectToFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectTo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTo' from JSON`);
}
/** @internal */
export const GetProjectOidcProviders$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectOidcProviders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectOidcProviders' from JSON`);
}
/** @internal */
export const GetProjectTrustedSources$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectTrustedSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTrustedSources' from JSON`);
}
/** @internal */
export const GetProjectGitComments$inboundSchema = z.object({
    onPullRequest: types.boolean(),
    onCommit: types.boolean(),
});
export function getProjectGitCommentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectGitComments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectGitComments' from JSON`);
}
/** @internal */
export const GetProjectCreateDeployments$inboundSchema = z.nativeEnum(GetProjectCreateDeployments);
/** @internal */
export const GetProjectConsolidatedGitCommitStatus$inboundSchema = z.object({
    enabled: types.boolean(),
    propagateFailures: types.boolean(),
});
export function getProjectConsolidatedGitCommitStatusFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectConsolidatedGitCommitStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectConsolidatedGitCommitStatus' from JSON`);
}
/** @internal */
export const GetProjectGitProviderOptions$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectGitProviderOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectGitProviderOptions' from JSON`);
}
/** @internal */
export const GetProjectWebAnalytics$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 getProjectWebAnalyticsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectWebAnalytics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectWebAnalytics' from JSON`);
}
/** @internal */
export const GetProjectProjectsAction$inboundSchema = z.nativeEnum(GetProjectProjectsAction);
/** @internal */
export const GetProjectAlgo$inboundSchema = z.nativeEnum(GetProjectAlgo);
/** @internal */
export const GetProjectRateLimit$inboundSchema = z.object({
    algo: GetProjectAlgo$inboundSchema,
    window: types.number(),
    limit: types.number(),
    keys: z.array(types.string()),
});
export function getProjectRateLimitFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRateLimit' from JSON`);
}
/** @internal */
export const GetProjectRedirect$inboundSchema = z.object({
    location: types.string(),
    permanent: types.boolean(),
});
export function getProjectRedirectFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRedirect' from JSON`);
}
/** @internal */
export const GetProjectLogHeadersProjects2$inboundSchema = z.nativeEnum(GetProjectLogHeadersProjects2);
/** @internal */
export const GetProjectProjectsLogHeaders$inboundSchema = smartUnion([
    z.array(types.string()),
    GetProjectLogHeadersProjects2$inboundSchema,
]);
export function getProjectProjectsLogHeadersFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsLogHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsLogHeaders' from JSON`);
}
/** @internal */
export const GetProjectRulesets$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectRulesets$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRulesets' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction);
/** @internal */
export const GetProjectVercelRuleset$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema),
});
export function getProjectVercelRulesetFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectVercelRuleset$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectVercelRuleset' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction);
/** @internal */
export const GetProjectTrafficSources$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction$inboundSchema),
});
export function getProjectTrafficSourcesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectTrafficSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTrafficSources' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction);
/** @internal */
export const GetProjectBotFilter$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema),
});
export function getProjectBotFilterFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectBotFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBotFilter' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodyAction);
/** @internal */
export const GetProjectAiBots$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(GetProjectProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema),
});
export function getProjectAiBotsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectAiBots$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectAiBots' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction);
/** @internal */
export const GetProjectOwasp$inboundSchema = z.object({
    active: types.boolean(),
    action: types.optional(GetProjectProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema),
});
export function getProjectOwaspFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectOwasp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectOwasp' from JSON`);
}
/** @internal */
export const GetProjectManagedRules$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectManagedRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectManagedRules' from JSON`);
}
/** @internal */
export const GetProjectLogHeaders2$inboundSchema = z.nativeEnum(GetProjectLogHeaders2);
/** @internal */
export const GetProjectLogHeaders$inboundSchema = smartUnion([z.array(types.string()), GetProjectLogHeaders2$inboundSchema]);
export function getProjectLogHeadersFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLogHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLogHeaders' from JSON`);
}
/** @internal */
export const GetProjectSecurityPlusMetadata$inboundSchema = z.object({
    updatedAt: types.number(),
    firstEnabledAt: types.optional(types.number()),
});
export function getProjectSecurityPlusMetadataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectSecurityPlusMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSecurityPlusMetadata' from JSON`);
}
/** @internal */
export const GetProjectSecurity$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(() => 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) {
    return safeParse(jsonString, (x) => GetProjectSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSecurity' from JSON`);
}
/** @internal */
export const GetProjectIssuerMode$inboundSchema = z.nativeEnum(GetProjectIssuerMode);
/** @internal */
export const GetProjectOidcTokenConfig$inboundSchema = z.object({
    enabled: types.optional(types.boolean()),
    issuerMode: types.optional(GetProjectIssuerMode$inboundSchema),
});
export function getProjectOidcTokenConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectOidcTokenConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectOidcTokenConfig' from JSON`);
}
/** @internal */
export const GetProjectSources2$inboundSchema = z.object({
    provider: types.literal("gitlab"),
    namespace: types.string(),
    project: types.optional(types.string()),
});
export function getProjectSources2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectSources2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSources2' from JSON`);
}
/** @internal */
export const GetProjectSourcesProvider$inboundSchema = z.nativeEnum(GetProjectSourcesProvider);
/** @internal */
export const GetProjectSources1$inboundSchema = z.object({
    provider: GetProjectSourcesProvider$inboundSchema,
    org: types.string(),
    repo: types.optional(types.string()),
});
export function getProjectSources1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectSources1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSources1' from JSON`);
}
/** @internal */
export const GetProjectSources$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSources' from JSON`);
}
/** @internal */
export const GetProjectEnvironments2$inboundSchema = z.object({
    type: types.literal("custom"),
    environmentId: types.string(),
});
export function getProjectEnvironments2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectEnvironments2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectEnvironments2' from JSON`);
}
/** @internal */
export const GetProjectEnvironmentsTarget$inboundSchema = z.nativeEnum(GetProjectEnvironmentsTarget);
/** @internal */
export const GetProjectEnvironments1$inboundSchema = z.object({
    type: types.literal("system"),
    target: GetProjectEnvironmentsTarget$inboundSchema,
});
export function getProjectEnvironments1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectEnvironments1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectEnvironments1' from JSON`);
}
/** @internal */
export const GetProjectEnvironments$inboundSchema = z.union([
    z.lazy(() => GetProjectEnvironments1$inboundSchema),
    z.lazy(() => GetProjectEnvironments2$inboundSchema),
]);
export function getProjectEnvironmentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectEnvironments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectEnvironments' from JSON`);
}
/** @internal */
export const GetProjectGitSources$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectGitSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectGitSources' from JSON`);
}
/** @internal */
export const GetProjectProjectsSources$inboundSchema = z.nativeEnum(GetProjectProjectsSources);
/** @internal */
export const GetProjectEnvironmentsProjects2$inboundSchema = z.object({
    type: types.literal("custom"),
    environmentId: types.string(),
});
export function getProjectEnvironmentsProjects2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectEnvironmentsProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectEnvironmentsProjects2' from JSON`);
}
/** @internal */
export const GetProjectEnvironmentsProjectsTarget$inboundSchema = z.nativeEnum(GetProjectEnvironmentsProjectsTarget);
/** @internal */
export const GetProjectEnvironmentsProjects1$inboundSchema = z.object({
    type: types.literal("system"),
    target: GetProjectEnvironmentsProjectsTarget$inboundSchema,
});
export function getProjectEnvironmentsProjects1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectEnvironmentsProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectEnvironmentsProjects1' from JSON`);
}
/** @internal */
export const GetProjectProjectsEnvironments$inboundSchema = z.union([
    z.lazy(() => GetProjectEnvironmentsProjects1$inboundSchema),
    z.lazy(() => GetProjectEnvironmentsProjects2$inboundSchema),
]);
export function getProjectProjectsEnvironmentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsEnvironments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsEnvironments' from JSON`);
}
/** @internal */
export const GetProjectDeploymentSources$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectDeploymentSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDeploymentSources' from JSON`);
}
/** @internal */
export const GetProjectDeploymentPolicy$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectDeploymentPolicy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDeploymentPolicy' from JSON`);
}
/** @internal */
export const GetProjectTier$inboundSchema = z.nativeEnum(GetProjectTier);
/** @internal */
export const GetProjectKind$inboundSchema = z.nativeEnum(GetProjectKind);
/** @internal */
export const GetProjectUsageStatus$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectUsageStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectUsageStatus' from JSON`);
}
/** @internal */
export const GetProjectFeatures$inboundSchema = z.object({
    webAnalytics: types.optional(types.boolean()),
});
export function getProjectFeaturesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectFeatures$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectFeatures' from JSON`);
}
/** @internal */
export const GetProjectHistory$inboundSchema = z.object({
    scanner: types.string(),
    reason: types.string(),
    by: types.string(),
    byId: types.string(),
    at: types.number(),
});
export function getProjectHistoryFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHistory' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponseAction$inboundSchema = z.nativeEnum(GetProjectProjectsResponseAction);
/** @internal */
export const GetProjectBlock$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectBlock$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlock' from JSON`);
}
/** @internal */
export const GetProjectHasProjectsResponse200Value$inboundSchema = z.object({
    eq: types.string(),
});
export function getProjectHasProjectsResponse200ValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjectsResponse200Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjectsResponse200Value' from JSON`);
}
/** @internal */
export const GetProjectHasProjects2$inboundSchema = z.object({
    type: types.literal("host"),
    value: z.lazy(() => GetProjectHasProjectsResponse200Value$inboundSchema),
});
export function getProjectHasProjects2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjects2' from JSON`);
}
/** @internal */
export const GetProjectHasProjectsKey$inboundSchema = z.nativeEnum(GetProjectHasProjectsKey);
/** @internal */
export const GetProjectHasProjectsResponseValue$inboundSchema = z.object({
    eq: types.string(),
});
export function getProjectHasProjectsResponseValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjectsResponseValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjectsResponseValue' from JSON`);
}
/** @internal */
export const GetProjectHasProjects1$inboundSchema = z.object({
    type: types.literal("header"),
    key: GetProjectHasProjectsKey$inboundSchema,
    value: z.lazy(() => GetProjectHasProjectsResponseValue$inboundSchema),
});
export function getProjectHasProjects1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjects1' from JSON`);
}
/** @internal */
export const GetProjectRouteProjectsHas$inboundSchema = z.union([
    z.lazy(() => GetProjectHasProjects1$inboundSchema),
    z.lazy(() => GetProjectHasProjects2$inboundSchema),
]);
export function getProjectRouteProjectsHasFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRouteProjectsHas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRouteProjectsHas' from JSON`);
}
/** @internal */
export const GetProjectRouteProjectsAction$inboundSchema = z.nativeEnum(GetProjectRouteProjectsAction);
/** @internal */
export const GetProjectRouteProjectsMitigate$inboundSchema = z.object({
    action: GetProjectRouteProjectsAction$inboundSchema,
});
export function getProjectRouteProjectsMitigateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRouteProjectsMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRouteProjectsMitigate' from JSON`);
}
/** @internal */
export const GetProjectRouteProjects2$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectRouteProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRouteProjects2' from JSON`);
}
/** @internal */
export const GetProjectRouteProjects1$inboundSchema = z.object({
    src: types.string(),
    status: types.number(),
    expiry: types.optional(types.number()),
});
export function getProjectRouteProjects1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRouteProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRouteProjects1' from JSON`);
}
/** @internal */
export const GetProjectBlockHistoryProjectsRoute$inboundSchema = smartUnion([
    z.lazy(() => GetProjectRouteProjects1$inboundSchema),
    z.lazy(() => GetProjectRouteProjects2$inboundSchema),
]);
export function getProjectBlockHistoryProjectsRouteFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectBlockHistoryProjectsRoute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlockHistoryProjectsRoute' from JSON`);
}
/** @internal */
export const GetProjectBlockHistory4$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectBlockHistory4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlockHistory4' from JSON`);
}
/** @internal */
export const GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema = z.object({
    eq: types.string(),
});
export function getProjectHasProjectsResponse200ApplicationJSONResponseBodyValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue' from JSON`);
}
/** @internal */
export const GetProjectHasProjectsResponse2$inboundSchema = z.object({
    type: types.literal("host"),
    value: z.lazy(() => GetProjectHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema),
});
export function getProjectHasProjectsResponse2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjectsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjectsResponse2' from JSON`);
}
/** @internal */
export const GetProjectHasKey$inboundSchema = z.nativeEnum(GetProjectHasKey);
/** @internal */
export const GetProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema = z.object({
    eq: types.string(),
});
export function getProjectHasProjectsResponse200ApplicationJSONValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjectsResponse200ApplicationJSONValue' from JSON`);
}
/** @internal */
export const GetProjectHasProjectsResponse1$inboundSchema = z.object({
    type: types.literal("header"),
    key: GetProjectHasKey$inboundSchema,
    value: z.lazy(() => GetProjectHasProjectsResponse200ApplicationJSONValue$inboundSchema),
});
export function getProjectHasProjectsResponse1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjectsResponse1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjectsResponse1' from JSON`);
}
/** @internal */
export const GetProjectRouteHas$inboundSchema = z.union([
    z.lazy(() => GetProjectHasProjectsResponse1$inboundSchema),
    z.lazy(() => GetProjectHasProjectsResponse2$inboundSchema),
]);
export function getProjectRouteHasFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRouteHas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRouteHas' from JSON`);
}
/** @internal */
export const GetProjectRouteAction$inboundSchema = z.nativeEnum(GetProjectRouteAction);
/** @internal */
export const GetProjectRouteMitigate$inboundSchema = z.object({
    action: GetProjectRouteAction$inboundSchema,
});
export function getProjectRouteMitigateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRouteMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRouteMitigate' from JSON`);
}
/** @internal */
export const GetProjectRoute2$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectRoute2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRoute2' from JSON`);
}
/** @internal */
export const GetProjectRoute1$inboundSchema = z.object({
    src: types.string(),
    status: types.number(),
    expiry: types.optional(types.number()),
});
export function getProjectRoute1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRoute1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRoute1' from JSON`);
}
/** @internal */
export const GetProjectBlockHistoryRoute$inboundSchema = smartUnion([
    z.lazy(() => GetProjectRoute1$inboundSchema),
    z.lazy(() => GetProjectRoute2$inboundSchema),
]);
export function getProjectBlockHistoryRouteFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectBlockHistoryRoute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlockHistoryRoute' from JSON`);
}
/** @internal */
export const GetProjectBlockHistory3$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectBlockHistory3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlockHistory3' from JSON`);
}
/** @internal */
export const GetProjectBlockHistory2$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectBlockHistory2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlockHistory2' from JSON`);
}
/** @internal */
export const GetProjectBlockHistory1$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectBlockHistory1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlockHistory1' from JSON`);
}
/** @internal */
export const GetProjectBlockHistory$inboundSchema = z.union([
    z.lazy(() => GetProjectBlockHistory1$inboundSchema),
    z.lazy(() => GetProjectBlockHistory2$inboundSchema),
    z.lazy(() => GetProjectBlockHistory3$inboundSchema),
    z.lazy(() => GetProjectBlockHistory4$inboundSchema),
]);
export function getProjectBlockHistoryFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectBlockHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlockHistory' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200Action$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200Action);
/** @internal */
export const GetProjectInterstitialHistory$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectInterstitialHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectInterstitialHistory' from JSON`);
}
/** @internal */
export const GetProjectAbuse$inboundSchema = 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) {
    return safeParse(jsonString, (x) => GetProjectAbuse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectAbuse' from JSON`);
}
/** @internal */
export const GetProjectHasProjectsValue$inboundSchema = z.object({
    eq: types.string(),
});
export function getProjectHasProjectsValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasProjectsValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasProjectsValue' from JSON`);
}
/** @internal */
export const GetProjectHas2$inboundSchema = z.object({
    type: types.literal("host"),
    value: z.lazy(() => GetProjectHasProjectsValue$inboundSchema),
});
export function getProjectHas2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHas2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHas2' from JSON`);
}
/** @internal */
export const HasKey$inboundSchema = z
    .nativeEnum(HasKey);
/** @internal */
export const GetProjectHasValue$inboundSchema = z.object({
    eq: types.string(),
});
export function getProjectHasValueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHasValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHasValue' from JSON`);
}
/** @internal */
export const GetProjectHas1$inboundSchema = z.object({
    type: types.literal("header"),
    key: HasKey$inboundSchema,
    value: z.lazy(() => GetProjectHasValue$inboundSchema),
});
export function getProjectHas1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectHas1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectHas1' from JSON`);
}
/** @internal */
export const GetProjectInternalRoutesHas$inboundSchema = z.union([
    z.lazy(() => GetProjectHas1$inboundSchema),
    z.lazy(() => GetProjectHas2$inboundSchema),
]);
export function getProjectInternalRoutesHasFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectInternalRoutesHas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectInternalRoutesHas' from JSON`);
}
/** @internal */
export const GetProjectInternalRoutesAction$inboundSchema = z.nativeEnum(GetProjectInternalRoutesAction);
/** @internal */
export const GetProjectInternalRoutesMitigate$inboundSchema = z.object({
    action: GetProjectInternalRoutesAction$inboundSchema,
});
export function getProjectInternalRoutesMitigateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectInternalRoutesMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectInternalRoutesMitigate' from JSON`);
}
//# sourceMappingURL=getprojectinternalroutesmitigate.js.map