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,751 lines 76.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";
export const GetProjectConfiguredBy = {
    A: "A",
    Cname: "CNAME",
    Dns01: "dns-01",
    Http: "http",
};
/**
 * The type of matching to perform
 */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyAliasDeploymentType = {
    EndsWith: "endsWith",
    Equals: "equals",
    StartsWith: "startsWith",
};
export const GetProjectProjectsResponseChecksConclusion = {
    Canceled: "canceled",
    Failed: "failed",
    Skipped: "skipped",
    Succeeded: "succeeded",
};
export const GetProjectProjectsResponseChecksState = {
    Completed: "completed",
    Registered: "registered",
    Running: "running",
};
export const GetProjectProjectsResponsePlan = {
    Enterprise: "enterprise",
    Hobby: "hobby",
    Pro: "pro",
};
export const GetProjectProjectsResponseReadyState = {
    Blocked: "BLOCKED",
    Building: "BUILDING",
    Canceled: "CANCELED",
    Error: "ERROR",
    Initializing: "INITIALIZING",
    Queued: "QUEUED",
    Ready: "READY",
};
export const GetProjectProjectsResponseReadySubstate = {
    Promoted: "PROMOTED",
    Rolling: "ROLLING",
    Staged: "STAGED",
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyAliasType = {
    Lambdas: "LAMBDAS",
};
export const GetProjectEnvironment = {
    Preview: "preview",
    Production: "production",
};
export const GetProjectTarget = {
    Preview: "PREVIEW",
    Production: "PRODUCTION",
    Staging: "STAGING",
};
export const GetProjectEnvId2 = {
    Preview: "preview",
    Production: "production",
};
/**
 * The origin of this definition. 'api' means created via the API. Undefined means it originated from a deployment (vercel.json).
 */
export const GetProjectSource = {
    Api: "api",
};
export const GetProjectTarget2 = {
    Production: "production",
    Preview: "preview",
    Development: "development",
};
export const GetProjectTarget1 = {
    Development: "development",
    Preview: "preview",
    Production: "production",
};
export const GetProjectType = {
    Encrypted: "encrypted",
    Plain: "plain",
    Secret: "secret",
    Sensitive: "sensitive",
    System: "system",
};
/**
 * User-facing config/secret model. When set, authoritative for new code paths. Legacy rows omit this field and callers fall back to existing `type` behavior.
 */
export const GetProjectVisibility = {
    Config: "config",
    Secret: "secret",
};
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyEnvType = {
    FlagsSecret: "flags-secret",
};
/**
 * The type of environment (production, preview, or development)
 */
export const GetProjectProjectsType = {
    Development: "development",
    Preview: "preview",
    Production: "production",
};
/**
 * The type of matching to perform
 */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType = {
    EndsWith: "endsWith",
    Equals: "equals",
    StartsWith: "startsWith",
};
export const GetProjectFramework = {
    ActixWeb: "actix-web",
    Angular: "angular",
    Ash: "ash",
    Astro: "astro",
    Axum: "axum",
    Blitzjs: "blitzjs",
    Brunch: "brunch",
    Bun: "bun",
    Container: "container",
    CreateReactApp: "create-react-app",
    Django: "django",
    Docusaurus: "docusaurus",
    Docusaurus2: "docusaurus-2",
    Dojo: "dojo",
    Eleventy: "eleventy",
    Elysia: "elysia",
    Ember: "ember",
    Eve: "eve",
    Express: "express",
    FactoryEve: "factory-eve",
    Fastapi: "fastapi",
    Fasthtml: "fasthtml",
    Fastify: "fastify",
    Flask: "flask",
    Gatsby: "gatsby",
    Go: "go",
    Gridsome: "gridsome",
    H3: "h3",
    Hexo: "hexo",
    Hono: "hono",
    Hugo: "hugo",
    Hydrogen: "hydrogen",
    IonicAngular: "ionic-angular",
    IonicReact: "ionic-react",
    Jekyll: "jekyll",
    Koa: "koa",
    Mastra: "mastra",
    Middleman: "middleman",
    Nestjs: "nestjs",
    Nextjs: "nextjs",
    Nitro: "nitro",
    Node: "node",
    Nuxtjs: "nuxtjs",
    Parcel: "parcel",
    Polymer: "polymer",
    Preact: "preact",
    Python: "python",
    ReactRouter: "react-router",
    Redwoodjs: "redwoodjs",
    Remix: "remix",
    Ruby: "ruby",
    Rust: "rust",
    Saber: "saber",
    Sanity: "sanity",
    SanityV2: "sanity-v2",
    Sapper: "sapper",
    Scully: "scully",
    Services: "services",
    Solidstart: "solidstart",
    Solidstart1: "solidstart-1",
    Stencil: "stencil",
    Storybook: "storybook",
    Svelte: "svelte",
    Sveltekit: "sveltekit",
    Sveltekit1: "sveltekit-1",
    TanstackStart: "tanstack-start",
    TanstackStartLovable: "tanstack-start-lovable",
    Umijs: "umijs",
    Vite: "vite",
    Vitepress: "vitepress",
    Vue: "vue",
    Vuepress: "vuepress",
    Xmcp: "xmcp",
    Zola: "zola",
};
/**
 * Service kind (Service.type). Omitted for schemas that do not define one.
 */
export const GetProjectServiceType = {
    Cron: "cron",
    Job: "job",
    Web: "web",
    Worker: "worker",
};
/**
 * Framework slug, when the service has one (omitted otherwise).
 */
export const GetProjectProjectsFramework = {
    ActixWeb: "actix-web",
    Angular: "angular",
    Ash: "ash",
    Astro: "astro",
    Axum: "axum",
    Blitzjs: "blitzjs",
    Brunch: "brunch",
    Bun: "bun",
    Container: "container",
    CreateReactApp: "create-react-app",
    Django: "django",
    Docusaurus: "docusaurus",
    Docusaurus2: "docusaurus-2",
    Dojo: "dojo",
    Eleventy: "eleventy",
    Elysia: "elysia",
    Ember: "ember",
    Eve: "eve",
    Express: "express",
    FactoryEve: "factory-eve",
    Fastapi: "fastapi",
    Fasthtml: "fasthtml",
    Fastify: "fastify",
    Flask: "flask",
    Gatsby: "gatsby",
    Go: "go",
    Gridsome: "gridsome",
    H3: "h3",
    Hexo: "hexo",
    Hono: "hono",
    Hugo: "hugo",
    Hydrogen: "hydrogen",
    IonicAngular: "ionic-angular",
    IonicReact: "ionic-react",
    Jekyll: "jekyll",
    Koa: "koa",
    Mastra: "mastra",
    Middleman: "middleman",
    Nestjs: "nestjs",
    Nextjs: "nextjs",
    Nitro: "nitro",
    Node: "node",
    Nuxtjs: "nuxtjs",
    Parcel: "parcel",
    Polymer: "polymer",
    Preact: "preact",
    Python: "python",
    ReactRouter: "react-router",
    Redwoodjs: "redwoodjs",
    Remix: "remix",
    Ruby: "ruby",
    Rust: "rust",
    Saber: "saber",
    Sanity: "sanity",
    SanityV2: "sanity-v2",
    Sapper: "sapper",
    Scully: "scully",
    Services: "services",
    Solidstart: "solidstart",
    Solidstart1: "solidstart-1",
    Stencil: "stencil",
    Storybook: "storybook",
    Svelte: "svelte",
    Sveltekit: "sveltekit",
    Sveltekit1: "sveltekit-1",
    TanstackStart: "tanstack-start",
    TanstackStartLovable: "tanstack-start-lovable",
    Umijs: "umijs",
    Vite: "vite",
    Vitepress: "vitepress",
    Vue: "vue",
    Vuepress: "vuepress",
    Xmcp: "xmcp",
    Zola: "zola",
};
/**
 * The type of matching to perform
 */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyType = {
    EndsWith: "endsWith",
    Equals: "equals",
    StartsWith: "startsWith",
};
export const GetProjectChecksConclusion = {
    Canceled: "canceled",
    Failed: "failed",
    Skipped: "skipped",
    Succeeded: "succeeded",
};
export const GetProjectChecksState = {
    Completed: "completed",
    Registered: "registered",
    Running: "running",
};
export const GetProjectPlan = {
    Enterprise: "enterprise",
    Hobby: "hobby",
    Pro: "pro",
};
export const GetProjectReadyState = {
    Blocked: "BLOCKED",
    Building: "BUILDING",
    Canceled: "CANCELED",
    Error: "ERROR",
    Initializing: "INITIALIZING",
    Queued: "QUEUED",
    Ready: "READY",
};
export const GetProjectReadySubstate = {
    Promoted: "PROMOTED",
    Rolling: "ROLLING",
    Staged: "STAGED",
};
export const GetProjectProjectsResponseType = {
    Lambdas: "LAMBDAS",
};
export const GetProjectNodeVersion = {
    TenDotX: "10.x",
    TwelveDotX: "12.x",
    FourteenDotX: "14.x",
    SixteenDotX: "16.x",
    EighteenDotX: "18.x",
    TwentyDotX: "20.x",
    TwentyTwoDotX: "22.x",
    TwentyFourDotX: "24.x",
    EightDot10DotX: "8.10.x",
};
export const GetProjectDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const GetProjectRegion = {
    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 GetProjectFailoverRegions = {
    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 GetProjectFunctionDefaultMemoryType = {
    Performance: "performance",
    PerformanceXl: "performance_xl",
    Standard: "standard",
    StandardLegacy: "standard_legacy",
};
export const GetProjectBuildMachineType = {
    Basic: "basic",
    Enhanced: "enhanced",
    Standard: "standard",
    Turbo: "turbo",
};
export const GetProjectBuildMachineSelection = {
    Elastic: "elastic",
    Fixed: "fixed",
};
export const GetProjectBuildMachineElasticReason = {
    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 GetProjectConfiguration = {
    SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
    WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
};
/**
 * The metric this check evaluates.
 */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType = {
    ErrorRate5xx: "error-rate-5xx",
};
/**
 * What to do when the gate trips: pause the rollout, or roll it back.
 */
export const GetProjectProjectsResponse200ApplicationJSONAction = {
    Pause: "pause",
    Rollback: "rollback",
};
/** @internal */
export const GetProjectRequest$outboundSchema = z.object({
    idOrName: z.string(),
    teamId: z.string().optional(),
    slug: z.string().optional(),
});
export function getProjectRequestToJSON(getProjectRequest) {
    return JSON.stringify(GetProjectRequest$outboundSchema.parse(getProjectRequest));
}
/** @internal */
export const GetProjectResources$inboundSchema = z.object({
    externalResourceId: types.string(),
});
export function getProjectResourcesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectResources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectResources' from JSON`);
}
/** @internal */
export const GetProjectIntegrations$inboundSchema = z.object({
    installationId: types.string(),
    resources: types.optional(z.array(z.lazy(() => GetProjectResources$inboundSchema))),
});
export function getProjectIntegrationsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectIntegrations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectIntegrations' from JSON`);
}
/** @internal */
export const GetProjectCreator4$inboundSchema = z.object({
    type: types.literal("system"),
});
export function getProjectCreator4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreator4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreator4' from JSON`);
}
/** @internal */
export const GetProjectCreatorIntegration$inboundSchema = z.object({
    integrationId: types.string(),
    configurationId: types.string(),
});
export function getProjectCreatorIntegrationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreatorIntegration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreatorIntegration' from JSON`);
}
/** @internal */
export const GetProjectCreator3$inboundSchema = z.object({
    type: types.literal("integration"),
    integration: z.lazy(() => GetProjectCreatorIntegration$inboundSchema),
});
export function getProjectCreator3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreator3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreator3' from JSON`);
}
/** @internal */
export const GetProjectCreatorApp$inboundSchema = z.object({
    id: types.string(),
    clientId: types.optional(types.string()),
});
export function getProjectCreatorAppFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreatorApp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreatorApp' from JSON`);
}
/** @internal */
export const GetProjectCreator2$inboundSchema = z.object({
    type: types.literal("app"),
    app: z.lazy(() => GetProjectCreatorApp$inboundSchema),
});
export function getProjectCreator2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreator2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreator2' from JSON`);
}
/** @internal */
export const GetProjectViaIntegration$inboundSchema = z.object({
    integrationId: types.string(),
    configurationId: types.string(),
});
export function getProjectViaIntegrationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectViaIntegration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectViaIntegration' from JSON`);
}
/** @internal */
export const GetProjectVia2$inboundSchema = z.object({
    type: types.literal("integration"),
    integration: z.lazy(() => GetProjectViaIntegration$inboundSchema),
});
export function getProjectVia2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectVia2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectVia2' from JSON`);
}
/** @internal */
export const GetProjectViaApp$inboundSchema = z.object({
    id: types.string(),
    clientId: types.optional(types.string()),
});
export function getProjectViaAppFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectViaApp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectViaApp' from JSON`);
}
/** @internal */
export const GetProjectVia1$inboundSchema = z.object({
    type: types.literal("app"),
    app: z.lazy(() => GetProjectViaApp$inboundSchema),
});
export function getProjectVia1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectVia1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectVia1' from JSON`);
}
/** @internal */
export const GetProjectCreatorVia$inboundSchema = z.union([
    z.lazy(() => GetProjectVia1$inboundSchema),
    z.lazy(() => GetProjectVia2$inboundSchema),
]);
export function getProjectCreatorViaFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreatorVia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreatorVia' from JSON`);
}
/** @internal */
export const GetProjectCreatorUser$inboundSchema = z.object({
    id: types.string(),
});
export function getProjectCreatorUserFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreatorUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreatorUser' from JSON`);
}
/** @internal */
export const GetProjectCreator1$inboundSchema = z.object({
    type: types.literal("user"),
    via: types.nullable(z.union([
        z.lazy(() => GetProjectVia1$inboundSchema),
        z.lazy(() => GetProjectVia2$inboundSchema),
    ])),
    user: z.lazy(() => GetProjectCreatorUser$inboundSchema),
});
export function getProjectCreator1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreator1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreator1' from JSON`);
}
/** @internal */
export const GetProjectCreator$inboundSchema = z.union([
    z.lazy(() => GetProjectCreator1$inboundSchema),
    z.lazy(() => GetProjectCreator2$inboundSchema),
    z.lazy(() => GetProjectCreator3$inboundSchema),
    z.lazy(() => GetProjectCreator4$inboundSchema),
]);
export function getProjectCreatorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCreator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCreator' from JSON`);
}
/** @internal */
export const GetProjectConfiguredBy$inboundSchema = z.nativeEnum(GetProjectConfiguredBy);
/** @internal */
export const GetProjectProjectsResponseAliasAssigned$inboundSchema = smartUnion([types.number(), types.boolean()]);
export function getProjectProjectsResponseAliasAssignedFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsResponseAliasAssigned$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsResponseAliasAssigned' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponseAliasError$inboundSchema = z.object({
    code: types.string(),
    message: types.string(),
});
export function getProjectProjectsResponseAliasErrorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsResponseAliasError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsResponseAliasError' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyAliasDeploymentType$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodyAliasDeploymentType);
/** @internal */
export const GetProjectProjectsResponse200BranchMatcher$inboundSchema = z.object({
    type: GetProjectProjectsResponse200ApplicationJSONResponseBodyAliasDeploymentType$inboundSchema,
    pattern: types.string(),
});
export function getProjectProjectsResponse200BranchMatcherFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsResponse200BranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsResponse200BranchMatcher' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponseBuilds$inboundSchema = z.object({
    use: types.string(),
    src: types.optional(types.string()),
    dest: types.optional(types.string()),
});
export function getProjectProjectsResponseBuildsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsResponseBuilds$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsResponseBuilds' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponseChecksConclusion$inboundSchema = z
    .nativeEnum(GetProjectProjectsResponseChecksConclusion);
/** @internal */
export const GetProjectProjectsResponseChecksState$inboundSchema = z.nativeEnum(GetProjectProjectsResponseChecksState);
/** @internal */
export const GetProjectProjectsResponse200Creator$inboundSchema = z.object({
    email: types.string(),
    githubLogin: types.optional(types.string()),
    gitlabLogin: types.optional(types.string()),
    uid: types.string(),
    username: types.string(),
});
export function getProjectProjectsResponse200CreatorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsResponse200Creator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsResponse200Creator' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponseOidcTokenClaims$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 getProjectProjectsResponseOidcTokenClaimsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsResponseOidcTokenClaims$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsResponseOidcTokenClaims' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponsePlan$inboundSchema = z.nativeEnum(GetProjectProjectsResponsePlan);
/** @internal */
export const GetProjectProjectsResponseReadyState$inboundSchema = z.nativeEnum(GetProjectProjectsResponseReadyState);
/** @internal */
export const GetProjectProjectsResponseReadySubstate$inboundSchema = z
    .nativeEnum(GetProjectProjectsResponseReadySubstate);
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyAliasType$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodyAliasType);
/** @internal */
export const GetProjectDeployment$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(() => GetProjectProjectsResponseAliasError$inboundSchema)).optional(),
    aliasFinal: z.nullable(types.string()).optional(),
    automaticAliases: types.optional(z.array(types.string())),
    branchMatcher: types.optional(z.lazy(() => GetProjectProjectsResponse200BranchMatcher$inboundSchema)),
    buildingAt: types.optional(types.number()),
    builds: types.optional(z.array(z.lazy(() => GetProjectProjectsResponseBuilds$inboundSchema))),
    checksConclusion: types.optional(GetProjectProjectsResponseChecksConclusion$inboundSchema),
    checksState: types.optional(GetProjectProjectsResponseChecksState$inboundSchema),
    connectBuildsEnabled: types.optional(types.boolean()),
    connectConfigurationId: types.optional(types.string()),
    createdAt: types.number(),
    createdIn: types.string(),
    creator: types.nullable(z.lazy(() => GetProjectProjectsResponse200Creator$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(() => GetProjectProjectsResponseOidcTokenClaims$inboundSchema)),
    plan: GetProjectProjectsResponsePlan$inboundSchema,
    previewCommentsEnabled: types.optional(types.boolean()),
    private: types.boolean(),
    readyAt: types.optional(types.number()),
    readyState: GetProjectProjectsResponseReadyState$inboundSchema,
    readySubstate: types.optional(GetProjectProjectsResponseReadySubstate$inboundSchema),
    requestedAt: types.optional(types.number()),
    target: z.nullable(types.string()).optional(),
    teamId: z.nullable(types.string()).optional(),
    type: GetProjectProjectsResponse200ApplicationJSONResponseBodyAliasType$inboundSchema,
    url: types.string(),
    userId: types.optional(types.string()),
    withCache: types.optional(types.boolean()),
});
export function getProjectDeploymentFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectDeployment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDeployment' from JSON`);
}
/** @internal */
export const GetProjectEnvironment$inboundSchema = z.nativeEnum(GetProjectEnvironment);
/** @internal */
export const GetProjectTarget$inboundSchema = z.nativeEnum(GetProjectTarget);
/** @internal */
export const GetProjectAlias$inboundSchema = z.object({
    configuredBy: z.nullable(GetProjectConfiguredBy$inboundSchema).optional(),
    configuredChangedAt: z.nullable(types.number()).optional(),
    createdAt: z.nullable(types.number()).optional(),
    deployment: types.nullable(z.lazy(() => GetProjectDeployment$inboundSchema)),
    domain: types.string(),
    environment: GetProjectEnvironment$inboundSchema,
    gitBranch: z.nullable(types.string()).optional(),
    redirect: z.nullable(types.string()).optional(),
    redirectStatusCode: z.nullable(types.number()).optional(),
    target: GetProjectTarget$inboundSchema,
});
export function getProjectAliasFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectAlias$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectAlias' from JSON`);
}
/** @internal */
export const GetProjectAnalytics$inboundSchema = z.object({
    id: types.string(),
    canceledAt: z.nullable(types.number()).optional(),
    disabledAt: types.number(),
    enabledAt: types.number(),
    paidAt: types.optional(types.number()),
    sampleRatePercent: z.nullable(types.number()).optional(),
    spendLimitInDollars: z.nullable(types.number()).optional(),
});
export function getProjectAnalyticsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectAnalytics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectAnalytics' from JSON`);
}
/** @internal */
export const GetProjectSpeedInsights$inboundSchema = z.object({
    id: types.string(),
    enabledAt: types.optional(types.number()),
    disabledAt: types.optional(types.number()),
    canceledAt: types.optional(types.number()),
    hasData: types.optional(types.boolean()),
    dataReceivedAt: types.optional(types.number()),
    paidAt: types.optional(types.number()),
});
export function getProjectSpeedInsightsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectSpeedInsights$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSpeedInsights' from JSON`);
}
/** @internal */
export const GetProjectEnvId2$inboundSchema = z.nativeEnum(GetProjectEnvId2);
/** @internal */
export const GetProjectEnvId$inboundSchema = smartUnion([types.string(), GetProjectEnvId2$inboundSchema]);
export function getProjectEnvIdFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectEnvId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectEnvId' from JSON`);
}
/** @internal */
export const GetProjectAws$inboundSchema = z.object({
    subnetIds: z.array(types.string()),
    securityGroupId: types.optional(types.string()),
});
export function getProjectAwsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectAws' from JSON`);
}
/** @internal */
export const GetProjectConnectConfigurations$inboundSchema = z.object({
    envId: smartUnion([types.string(), GetProjectEnvId2$inboundSchema]),
    connectConfigurationId: types.string(),
    dc: types.optional(types.string()),
    passive: types.boolean(),
    buildsEnabled: types.boolean(),
    aws: types.optional(z.lazy(() => GetProjectAws$inboundSchema)),
    createdAt: types.number(),
    updatedAt: types.number(),
});
export function getProjectConnectConfigurationsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectConnectConfigurations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectConnectConfigurations' from JSON`);
}
/** @internal */
export const GetProjectSource$inboundSchema = z.nativeEnum(GetProjectSource);
/** @internal */
export const GetProjectDefinitions$inboundSchema = z.object({
    host: types.string(),
    path: types.string(),
    schedule: types.string(),
    source: types.optional(GetProjectSource$inboundSchema),
    description: types.optional(types.string()),
    hostInferred: types.optional(types.boolean()),
});
export function getProjectDefinitionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectDefinitions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDefinitions' from JSON`);
}
/** @internal */
export const GetProjectCrons$inboundSchema = z.object({
    enabledAt: types.number(),
    disabledAt: types.nullable(types.number()),
    updatedAt: types.number(),
    deploymentId: types.nullable(types.string()),
    definitions: z.array(z.lazy(() => GetProjectDefinitions$inboundSchema)),
});
export function getProjectCronsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCrons$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCrons' from JSON`);
}
/** @internal */
export const GetProjectDataCache$inboundSchema = z.object({
    userDisabled: types.boolean(),
    storageSizeBytes: z.nullable(types.number()).optional(),
    unlimited: types.optional(types.boolean()),
});
export function getProjectDataCacheFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectDataCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDataCache' from JSON`);
}
/** @internal */
export const GetProjectDeploymentExpiration$inboundSchema = z.object({
    expirationDays: types.optional(types.number()),
    expirationDaysProduction: types.optional(types.number()),
    expirationDaysCanceled: types.optional(types.number()),
    expirationDaysErrored: types.optional(types.number()),
    deploymentsToKeep: types.optional(types.number()),
});
export function getProjectDeploymentExpirationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectDeploymentExpiration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDeploymentExpiration' from JSON`);
}
/** @internal */
export const GetProjectExpiration2$inboundSchema = z.object({
    lockedAt: types.number(),
    lockedBy: types.string(),
});
export function getProjectExpiration2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectExpiration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectExpiration2' from JSON`);
}
/** @internal */
export const GetProjectExpiration1$inboundSchema = z.object({
    expiresAt: types.number(),
});
export function getProjectExpiration1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectExpiration1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectExpiration1' from JSON`);
}
/** @internal */
export const GetProjectExpiration$inboundSchema = smartUnion([
    z.lazy(() => GetProjectExpiration2$inboundSchema),
    z.lazy(() => GetProjectExpiration1$inboundSchema),
]);
export function getProjectExpirationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectExpiration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectExpiration' from JSON`);
}
/** @internal */
export const GetProjectTarget2$inboundSchema = z.nativeEnum(GetProjectTarget2);
/** @internal */
export const GetProjectTarget1$inboundSchema = z.nativeEnum(GetProjectTarget1);
/** @internal */
export const GetProjectProjectsTarget$inboundSchema = smartUnion([
    z.array(GetProjectTarget1$inboundSchema),
    GetProjectTarget2$inboundSchema,
]);
export function getProjectProjectsTargetFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsTarget$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsTarget' from JSON`);
}
/** @internal */
export const GetProjectType$inboundSchema = z.nativeEnum(GetProjectType);
/** @internal */
export const GetProjectVisibility$inboundSchema = z.nativeEnum(GetProjectVisibility);
/** @internal */
export const GetProjectContentHint17$inboundSchema = z.object({
    type: types.literal("flags-connection-string"),
    projectId: types.string(),
});
export function getProjectContentHint17FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint17$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint17' from JSON`);
}
/** @internal */
export const GetProjectContentHint16$inboundSchema = z.object({
    type: types.literal("integration-store-secret"),
    storeId: types.string(),
    integrationId: types.string(),
    integrationProductId: types.string(),
    integrationConfigurationId: types.string(),
});
export function getProjectContentHint16FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint16$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint16' from JSON`);
}
/** @internal */
export const GetProjectContentHint15$inboundSchema = z.object({
    type: types.literal("postgres-url-no-ssl"),
    storeId: types.string(),
});
export function getProjectContentHint15FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint15$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint15' from JSON`);
}
/** @internal */
export const GetProjectContentHint14$inboundSchema = z.object({
    type: types.literal("postgres-database"),
    storeId: types.string(),
});
export function getProjectContentHint14FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint14$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint14' from JSON`);
}
/** @internal */
export const GetProjectContentHint13$inboundSchema = z.object({
    type: types.literal("postgres-password"),
    storeId: types.string(),
});
export function getProjectContentHint13FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint13$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint13' from JSON`);
}
/** @internal */
export const GetProjectContentHint12$inboundSchema = z.object({
    type: types.literal("postgres-host"),
    storeId: types.string(),
});
export function getProjectContentHint12FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint12$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint12' from JSON`);
}
/** @internal */
export const GetProjectContentHint11$inboundSchema = z.object({
    type: types.literal("postgres-user"),
    storeId: types.string(),
});
export function getProjectContentHint11FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint11$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint11' from JSON`);
}
/** @internal */
export const GetProjectContentHint10$inboundSchema = z.object({
    type: types.literal("postgres-prisma-url"),
    storeId: types.string(),
});
export function getProjectContentHint10FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint10$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint10' from JSON`);
}
/** @internal */
export const GetProjectContentHint9$inboundSchema = z.object({
    type: types.literal("postgres-url-non-pooling"),
    storeId: types.string(),
});
export function getProjectContentHint9FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint9$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint9' from JSON`);
}
/** @internal */
export const GetProjectContentHint8$inboundSchema = z.object({
    type: types.literal("postgres-url"),
    storeId: types.string(),
});
export function getProjectContentHint8FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint8' from JSON`);
}
/** @internal */
export const GetProjectContentHint7$inboundSchema = z.object({
    type: types.literal("blob-webhook-public-key"),
    storeId: types.string(),
});
export function getProjectContentHint7FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint7' from JSON`);
}
/** @internal */
export const GetProjectContentHint6$inboundSchema = z.object({
    type: types.literal("blob-store-id"),
    storeId: types.string(),
});
export function getProjectContentHint6FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint6' from JSON`);
}
/** @internal */
export const GetProjectContentHint5$inboundSchema = z.object({
    type: types.literal("blob-read-write-token"),
    storeId: types.string(),
});
export function getProjectContentHint5FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint5' from JSON`);
}
/** @internal */
export const GetProjectContentHint4$inboundSchema = z.object({
    type: types.literal("redis-rest-api-read-only-token"),
    storeId: types.string(),
});
export function getProjectContentHint4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint4' from JSON`);
}
/** @internal */
export const GetProjectContentHint3$inboundSchema = z.object({
    type: types.literal("redis-rest-api-token"),
    storeId: types.string(),
});
export function getProjectContentHint3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint3' from JSON`);
}
/** @internal */
export const GetProjectContentHint2$inboundSchema = z.object({
    type: types.literal("redis-rest-api-url"),
    storeId: types.string(),
});
export function getProjectContentHint2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint2' from JSON`);
}
/** @internal */
export const GetProjectContentHint1$inboundSchema = z.object({
    type: types.literal("redis-url"),
    storeId: types.string(),
});
export function getProjectContentHint1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint1' from JSON`);
}
/** @internal */
export const GetProjectContentHint$inboundSchema = z.union([
    z.lazy(() => GetProjectContentHint1$inboundSchema),
    z.lazy(() => GetProjectContentHint2$inboundSchema),
    z.lazy(() => GetProjectContentHint3$inboundSchema),
    z.lazy(() => GetProjectContentHint4$inboundSchema),
    z.lazy(() => GetProjectContentHint5$inboundSchema),
    z.lazy(() => GetProjectContentHint6$inboundSchema),
    z.lazy(() => GetProjectContentHint7$inboundSchema),
    z.lazy(() => GetProjectContentHint8$inboundSchema),
    z.lazy(() => GetProjectContentHint9$inboundSchema),
    z.lazy(() => GetProjectContentHint10$inboundSchema),
    z.lazy(() => GetProjectContentHint11$inboundSchema),
    z.lazy(() => GetProjectContentHint12$inboundSchema),
    z.lazy(() => GetProjectContentHint13$inboundSchema),
    z.lazy(() => GetProjectContentHint14$inboundSchema),
    z.lazy(() => GetProjectContentHint15$inboundSchema),
    z.lazy(() => GetProjectContentHint16$inboundSchema),
    z.lazy(() => GetProjectContentHint17$inboundSchema),
]);
export function getProjectContentHintFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectContentHint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectContentHint' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodyEnvType);
/** @internal */
export const GetProjectInternalContentHint$inboundSchema = z.object({
    type: GetProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema,
    encryptedValue: types.string(),
});
export function getProjectInternalContentHintFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectInternalContentHint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectInternalContentHint' from JSON`);
}
/** @internal */
export const GetProjectEnv$inboundSchema = z.object({
    target: types.optional(smartUnion([
        z.array(GetProjectTarget1$inboundSchema),
        GetProjectTarget2$inboundSchema,
    ])),
    type: GetProjectType$inboundSchema,
    sunsetSecretId: types.optional(types.string()),
    legacyValue: types.optional(types.string()),
    decrypted: types.optional(types.boolean()),
    value: types.string(),
    vsmValue: types.optional(types.string()),
    id: types.optional(types.string()),
    key: types.string(),
    configurationId: z.nullable(types.string()).optional(),
    createdAt: types.optional(types.number()),
    updatedAt: types.optional(types.number()),
    createdBy: z.nullable(types.string()).optional(),
    updatedBy: z.nullable(types.string()).optional(),
    gitBranch: types.optional(types.string()),
    visibility: types.optional(GetProjectVisibility$inboundSchema),
    edgeConfigId: z.nullable(types.string()).optional(),
    edgeConfigTokenId: z.nullable(types.string()).optional(),
    contentHint: z.nullable(z.union([
        z.lazy(() => GetProjectContentHint1$inboundSchema),
        z.lazy(() => GetProjectContentHint2$inboundSchema),
        z.lazy(() => GetProjectContentHint3$inboundSchema),
        z.lazy(() => GetProjectContentHint4$inboundSchema),
        z.lazy(() => GetProjectContentHint5$inboundSchema),
        z.lazy(() => GetProjectContentHint6$inboundSchema),
        z.lazy(() => GetProjectContentHint7$inboundSchema),
        z.lazy(() => GetProjectContentHint8$inboundSchema),
        z.lazy(() => GetProjectContentHint9$inboundSchema),
        z.lazy(() => GetProjectContentHint10$inboundSchema),
        z.lazy(() => GetProjectContentHint11$inboundSchema),
        z.lazy(() => GetProjectContentHint12$inboundSchema),
        z.lazy(() => GetProjectContentHint13$inboundSchema),
        z.lazy(() => GetProjectContentHint14$inboundSchema),
        z.lazy(() => GetProjectContentHint15$inboundSchema),
        z.lazy(() => GetProjectContentHint16$inboundSchema),
        z.lazy(() => GetProjectContentHint17$inboundSchema),
    ])).optional(),
    internalContentHint: z.nullable(z.lazy(() => GetProjectInternalContentHint$inboundSchema)).optional(),
    comment: types.optional(types.string()),
    customEnvironmentIds: types.optional(z.array(types.string())),
});
export function getProjectEnvFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectEnv$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectEnv' from JSON`);
}
/** @internal */
export const GetProjectProjectsType$inboundSchema = z.nativeEnum(GetProjectProjectsType);
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType);
/** @internal */
export const GetProjectBranchMatcher$inboundSchema = z.object({
    type: GetProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema,
    pattern: types.string(),
});
export function getProjectBranchMatcherFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectBranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBranchMatcher' from JSON`);
}
/** @internal */
export const GetProjectVerification$inboundSchema = z.object({
    type: types.string(),
    domain: types.string(),
    value: types.string(),
    reason: types.string(),
});
export function getProjectVerificationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectVerification$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectVerification' from JSON`);
}
/** @internal */
export const GetProjectDomains$inboundSchema = z.object({
    name: types.string(),
    apexName: types.string(),
    projectId: types.string(),
    redirect: z.nullable(types.string()).optional(),
    redirectStatusCode: z.nullable(types.number()).optional(),
    gitBranch: z.nullable(types.string()).optional(),
    customEnvironmentId: z.nullable(types.string()).optional(),
    updatedAt: types.optional(types.number()),
    createdAt: types.optional(types.number()),
    verified: types.boolean(),
    verification: types.optional(z.array(z.lazy(() => GetProjectVerification$inboundSchema))),
});
export function getProjectDomainsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectDomains$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectDomains' from JSON`);
}
/** @internal */
export const GetProjectCustomEnvironments$inboundSchema = z.object({
    id: types.string(),
    slug: types.string(),
    type: GetProjectProjectsType$inboundSchema,
    description: types.optional(types.string()),
    branchMatcher: types.optional(z.lazy(() => GetProjectBranchMatcher$inboundSchema)),
    domains: types.optional(z.array(z.lazy(() => GetProjectDomains$inboundSchema))),
    currentDeploymentAliases: types.optional(z.array(types.string())),
    createdAt: types.number(),
    updatedAt: types.number(),
});
export function getProjectCustomEnvironmentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectCustomEnvironments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectCustomEnvironments' from JSON`);
}
/** @internal */
export const GetProjectFramework$inboundSchema = z.nativeEnum(GetProjectFramework);
/** @internal */
export const GetProjectServiceType$inboundSchema = z.nativeEnum(GetProjectServiceType);
/** @internal */
export const GetProjectProjectsFramework$inboundSchema = z.nativeEnum(GetProjectProjectsFramework);
/** @internal */
export const GetProjectServices$inboundSchema = z.object({
    serviceName: types.string(),
    serviceType: types.optional(GetProjectServiceType$inboundSchema),
    framework: types.optional(GetProjectProjectsFramework$inboundSchema),
    runtime: types.optional(types.string()),
});
export function getProjectServicesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectServices$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectServices' from JSON`);
}
/** @internal */
export const GetProjectIpBuckets$inboundSchema = z.object({
    bucket: types.string(),
    default: types.optional(types.boolean()),
    supportUntil: types.optional(types.number()),
});
export function getProjectIpBucketsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectIpBuckets$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectIpBuckets' from JSON`);
}
/** @internal */
export const GetProjectLint$inboundSchema = z.object({
    targets: z.array(types.string()),
});
export function getProjectLintFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLint' from JSON`);
}
/** @internal */
export const GetProjectTypecheck$inboundSchema = z.object({
    targets: z.array(types.string()),
});
export function getProjectTypecheckFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectTypecheck$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectTypecheck' from JSON`);
}
/** @internal */
export const GetProjectMfeConfigPresent$inboundSchema = z.object({
    targets: z.array(types.string()),
});
export function getProjectMfeConfigPresentFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectMfeConfigPresent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectMfeConfigPresent' from JSON`);
}
/** @internal */
export const GetProjectJobs$inboundSchema = z.object({
    lint: types.optional(z.lazy(() => GetProjectLint$inboundSchema)),
    typecheck: types.optional(z.lazy(() => GetProjectTypecheck$inboundSchema)),
    "mfe-config-present": types.optional(z.lazy(() => GetProjectMfeConfigPresent$inboundSchema)),
}).transform((v) => {
    return remap$(v, {
        "mfe-config-present": "mfeConfigPresent",
    });
});
export function getProjectJobsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectJobs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectJobs' from JSON`);
}
/** @internal */
export const GetProjectAliasAssigned$inboundSchema = smartUnion([types.number(), types.boolean()]);
export function getProjectAliasAssignedFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectAliasAssigned$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectAliasAssigned' from JSON`);
}
/** @internal */
export const GetProjectAliasError$inboundSchema = z.object({
    code: types.string(),
    message: types.string(),
});
export function getProjectAliasErrorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectAliasError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectAliasError' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodyType);
/** @internal */
export const GetProjectProjectsBranchMatcher$inboundSchema = z.object({
    type: GetProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    pattern: types.string(),
});
export function getProjectProjectsBranchMatcherFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsBranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsBranchMatcher' from JSON`);
}
/** @internal */
export const GetProjectBuilds$inboundSchema = z.object({
    use: types.string(),
    src: types.optional(types.string()),
    dest: types.optional(types.string()),
});
export function getProjectBuildsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectBuilds$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBuilds' from JSON`);
}
/** @internal */
export const GetProjectChecksConclusion$inboundSchema = z.nativeEnum(GetProjectChecksConclusion);
/** @internal */
export const GetProjectChecksState$inboundSchema = z.nativeEnum(GetProjectChecksState);
/** @internal */
export const GetProjectProjectsCreator$inboundSchema = z.object({
    email: types.string(),
    githubLogin: types.optional(types.string()),
    gitlabLogin: types.optional(types.string()),
    uid: types.string(),
    username: types.string(),
});
export function getProjectProjectsCreatorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProjectsCreator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProjectsCreator' from JSON`);
}
/** @internal */
export const GetProjectOidcTokenClaims$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 getProjectOidcTokenClaimsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectOidcTokenClaims$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectOidcTokenClaims' from JSON`);
}
/** @internal */
export const GetProjectPlan$inboundSchema = z.nativeEnum(GetProjectPlan);
/** @internal */
export const GetProjectReadyState$inboundSchema = z.nativeEnum(GetProjectReadyState);
/** @internal */
export const GetProjectReadySubstate$inboundSchema = z.nativeEnum(GetProjectReadySubstate);
/** @internal */
export const GetProjectProjectsResponseType$inboundSchema = z.nativeEnum(GetProjectProjectsResponseType);
/** @internal */
export const GetProjectLatestDeployments$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(() => GetProjectAliasError$inboundSchema))
        .optional(),
    aliasFinal: z.nullable(types.string()).optional(),
    automaticAliases: types.optional(z.array(types.string())),
    branchMatcher: types.optional(z.lazy(() => GetProjectProjectsBranchMatcher$inboundSchema)),
    buildingAt: types.optional(types.number()),
    builds: types.optional(z.array(z.lazy(() => GetProjectBuilds$inboundSchema))),
    checksConclusion: types.optional(GetProjectChecksConclusion$inboundSchema),
    checksState: types.optional(GetProjectChecksState$inboundSchema),
    connectBuildsEnabled: types.optional(types.boolean()),
    connectConfigurationId: types.optional(types.string()),
    createdAt: types.number(),
    createdIn: types.string(),
    creator: types.nullable(z.lazy(() => GetProjectProjectsCreator$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(() => GetProjectOidcTokenClaims$inboundSchema)),
    plan: GetProjectPlan$inboundSchema,
    previewCommentsEnabled: types.optional(types.boolean()),
    private: types.boolean(),
    readyAt: types.optional(types.number()),
    readyState: GetProjectReadyState$inboundSchema,
    readySubstate: types.optional(GetProjectReadySubstate$inboundSchema),
    requestedAt: types.optional(types.number()),
    target: z.nullable(types.string()).optional(),
    teamId: z.nullable(types.string()).optional(),
    type: GetProjectProjectsResponseType$inboundSchema,
    url: types.string(),
    userId: types.optional(types.string()),
    withCache: types.optional(types.boolean()),
});
export function getProjectLatestDeploymentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLatestDeployments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLatestDeployments' from JSON`);
}
/** @internal */
export const GetProjectLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function getProjectLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetProjectLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooks' from JSON`);
}
/** @internal */
export const GetProjectLink8$inboundSchema = z.object({
    owner: types.string(),
    repo: types.string(),
    repoId: types.string(),
    ownerId: types.string(),
    type: types.literal("cursor-origin"),
    createdAt: types.optional(types.number()),
    deployHooks: z.array(z.lazy(() => GetProjectLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function getProjectLink8FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink8' from JSON`);
}
/** @internal */
export const GetProjectLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function getProjectLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetProjectLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooks' from JSON`);
}
/** @internal */
export const GetProjectLink7$inboundSchema = z.object({
    org: types.string(),
    repo: types.string(),
    repoId: types.string(),
    type: types.literal("v0"),
    createdAt: types.optional(types.number()),
    deployHooks: z.array(z.lazy(() => GetProjectLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function getProjectLink7FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink7' from JSON`);
}
/** @internal */
export const GetProjectLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function getProjectLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetProjectLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks' from JSON`);
}
/** @internal */
export const GetProjectLink6$inboundSchema = z.object({
    org: types.string(),
    repo: types.string(),
    repoId: types.string(),
    type: types.literal("vercel"),
    createdAt: types.optional(types.number()),
    deployHooks: z.array(z.lazy(() => GetProjectLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function getProjectLink6FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink6' from JSON`);
}
/** @internal */
export const GetProjectLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function getProjectLinkProjectsResponse200ApplicationJSONDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetProjectLinkProjectsResponse200ApplicationJSONDeployHooks' from JSON`);
}
/** @internal */
export const GetProjectLink5$inboundSchema = z.object({
    name: types.string(),
    slug: types.string(),
    owner: types.string(),
    type: types.literal("bitbucket"),
    uuid: types.string(),
    workspaceUuid: types.string(),
    createdAt: types.optional(types.number()),
    deployHooks: z.array(z.lazy(() => GetProjectLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function getProjectLink5FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink5' from JSON`);
}
/** @internal */
export const GetProjectLinkProjectsResponse200DeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function getProjectLinkProjectsResponse200DeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLinkProjectsResponse200DeployHooks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLinkProjectsResponse200DeployHooks' from JSON`);
}
/** @internal */
export const GetProjectLink4$inboundSchema = z.object({
    projectId: types.string(),
    projectName: types.string(),
    projectNameWithNamespace: types.string(),
    projectNamespace: types.string(),
    projectOwnerId: types.optional(types.number()),
    projectUrl: types.string(),
    type: types.literal("gitlab"),
    createdAt: types.optional(types.number()),
    deployHooks: z.array(z.lazy(() => GetProjectLinkProjectsResponse200DeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function getProjectLink4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink4' from JSON`);
}
/** @internal */
export const GetProjectLinkProjectsResponseDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function getProjectLinkProjectsResponseDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLinkProjectsResponseDeployHooks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLinkProjectsResponseDeployHooks' from JSON`);
}
/** @internal */
export const GetProjectLink3$inboundSchema = z.object({
    org: types.string(),
    repoOwnerId: types.optional(types.number()),
    repo: types.optional(types.string()),
    repoId: types.optional(types.number()),
    type: types.literal("github-custom-host"),
    host: types.string(),
    createdAt: types.optional(types.number()),
    deployHooks: z.array(z.lazy(() => GetProjectLinkProjectsResponseDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function getProjectLink3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink3' from JSON`);
}
/** @internal */
export const GetProjectLinkProjectsDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function getProjectLinkProjectsDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLinkProjectsDeployHooks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLinkProjectsDeployHooks' from JSON`);
}
/** @internal */
export const GetProjectLink2$inboundSchema = z.object({
    type: types.literal("github-limited"),
    repo: types.optional(types.string()),
    repoId: types.optional(types.number()),
    createdAt: types.optional(types.number()),
    updatedAt: types.optional(types.number()),
    org: types.string(),
    repoOwnerId: types.optional(types.number()),
    deployHooks: z.array(z.lazy(() => GetProjectLinkProjectsDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function getProjectLink2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink2' from JSON`);
}
/** @internal */
export const GetProjectLinkDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function getProjectLinkDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLinkDeployHooks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLinkDeployHooks' from JSON`);
}
/** @internal */
export const GetProjectLink1$inboundSchema = z.object({
    org: types.string(),
    repoOwnerId: types.optional(types.number()),
    repo: types.optional(types.string()),
    repoId: types.optional(types.number()),
    type: types.literal("github"),
    createdAt: types.optional(types.number()),
    deployHooks: z.array(z.lazy(() => GetProjectLinkDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function getProjectLink1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink1' from JSON`);
}
/** @internal */
export const GetProjectLink$inboundSchema = z.union([
    z.lazy(() => GetProjectLink1$inboundSchema),
    z.lazy(() => GetProjectLink2$inboundSchema),
    z.lazy(() => GetProjectLink3$inboundSchema),
    z.lazy(() => GetProjectLink4$inboundSchema),
    z.lazy(() => GetProjectLink5$inboundSchema),
    z.lazy(() => GetProjectLink6$inboundSchema),
    z.lazy(() => GetProjectLink7$inboundSchema),
    z.lazy(() => GetProjectLink8$inboundSchema),
]);
export function getProjectLinkFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectLink$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectLink' from JSON`);
}
/** @internal */
export const GetProjectBlobs$inboundSchema = z.object({
    isDefaultApp: types.optional(types.boolean()),
});
export function getProjectBlobsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectBlobs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBlobs' from JSON`);
}
/** @internal */
export const GetProjectMicrofrontends3$inboundSchema = z.object({
    updatedAt: types.number(),
    groupIds: z.array(z.any()),
    enabled: types.literal(false),
    freeProjectForLegacyLimits: types.optional(types.boolean()),
});
export function getProjectMicrofrontends3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectMicrofrontends3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectMicrofrontends3' from JSON`);
}
/** @internal */
export const GetProjectMicrofrontends2$inboundSchema = z.object({
    isDefaultApp: types.optional(types.literal(false)),
    routeObservabilityToThisProject: types.optional(types.boolean()),
    doNotRouteWithMicrofrontendsRouting: types.optional(types.boolean()),
    updatedAt: types.number(),
    groupIds: z.array(types.string()),
    enabled: types.literal(true),
    defaultRoute: types.optional(types.string()),
    freeProjectForLegacyLimits: types.optional(types.boolean()),
});
export function getProjectMicrofrontends2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectMicrofrontends2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectMicrofrontends2' from JSON`);
}
/** @internal */
export const GetProjectMicrofrontends1$inboundSchema = z.object({
    isDefaultApp: types.literal(true),
    updatedAt: types.number(),
    groupIds: z.array(types.string()),
    enabled: types.literal(true),
    defaultRoute: types.optional(types.string()),
    freeProjectForLegacyLimits: types.optional(types.boolean()),
});
export function getProjectMicrofrontends1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectMicrofrontends1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectMicrofrontends1' from JSON`);
}
/** @internal */
export const GetProjectMicrofrontends$inboundSchema = smartUnion([
    z.lazy(() => GetProjectMicrofrontends1$inboundSchema),
    z.lazy(() => GetProjectMicrofrontends2$inboundSchema),
    z.lazy(() => GetProjectMicrofrontends3$inboundSchema),
]);
export function getProjectMicrofrontendsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectMicrofrontends$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectMicrofrontends' from JSON`);
}
/** @internal */
export const GetProjectNodeVersion$inboundSchema = z.nativeEnum(GetProjectNodeVersion);
/** @internal */
export const GetProjectPaths$inboundSchema = z.object({
    value: types.string(),
});
export function getProjectPathsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectPaths$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectPaths' from JSON`);
}
/** @internal */
export const GetProjectOptionsAllowlist$inboundSchema = z.object({
    paths: z.array(z.lazy(() => GetProjectPaths$inboundSchema)),
});
export function getProjectOptionsAllowlistFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectOptionsAllowlist$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectOptionsAllowlist' from JSON`);
}
/** @internal */
export const GetProjectPasswordProtection$inboundSchema = z.object({});
export function getProjectPasswordProtectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectPasswordProtection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectPasswordProtection' from JSON`);
}
/** @internal */
export const GetProjectDeploymentType$inboundSchema = z.nativeEnum(GetProjectDeploymentType);
/** @internal */
export const GetProjectPassport$inboundSchema = z.object({
    deploymentType: GetProjectDeploymentType$inboundSchema,
    connectorId: types.string(),
});
export function getProjectPassportFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectPassport$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectPassport' from JSON`);
}
/** @internal */
export const GetProjectSandboxUrls$inboundSchema = z.object({
    inheritDeploymentProtection: types.optional(types.boolean()),
});
export function getProjectSandboxUrlsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectSandboxUrls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSandboxUrls' from JSON`);
}
/** @internal */
export const GetProjectProtectionConfig$inboundSchema = z.object({
    sandboxUrls: types.optional(z.lazy(() => GetProjectSandboxUrls$inboundSchema)),
});
export function getProjectProtectionConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectProtectionConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectProtectionConfig' from JSON`);
}
/** @internal */
export const GetProjectRegion$inboundSchema = z.nativeEnum(GetProjectRegion);
/** @internal */
export const GetProjectFailoverRegions$inboundSchema = z.nativeEnum(GetProjectFailoverRegions);
/** @internal */
export const GetProjectSandbox$inboundSchema = z.object({
    region: types.optional(GetProjectRegion$inboundSchema),
    failoverRegions: types.optional(z.array(GetProjectFailoverRegions$inboundSchema)),
});
export function getProjectSandboxFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectSandbox$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectSandbox' from JSON`);
}
/** @internal */
export const GetProjectFunctionDefaultMemoryType$inboundSchema = z.nativeEnum(GetProjectFunctionDefaultMemoryType);
/** @internal */
export const GetProjectBuildMachineType$inboundSchema = z.nativeEnum(GetProjectBuildMachineType);
/** @internal */
export const GetProjectBuildMachineSelection$inboundSchema = z.nativeEnum(GetProjectBuildMachineSelection);
/** @internal */
export const GetProjectBuildMachineElasticReason$inboundSchema = z.nativeEnum(GetProjectBuildMachineElasticReason);
/** @internal */
export const GetProjectConfiguration$inboundSchema = z.nativeEnum(GetProjectConfiguration);
/** @internal */
export const GetProjectBuildQueue$inboundSchema = z.object({
    configuration: types.optional(GetProjectConfiguration$inboundSchema),
});
export function getProjectBuildQueueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectBuildQueue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectBuildQueue' from JSON`);
}
/** @internal */
export const GetProjectResourceConfig$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(GetProjectFunctionDefaultMemoryType$inboundSchema),
    functionZeroConfigFailover: types.optional(types.boolean()),
    buildMachineType: types.optional(GetProjectBuildMachineType$inboundSchema),
    buildMachineSelection: types.optional(GetProjectBuildMachineSelection$inboundSchema),
    buildMachineElasticLastUpdated: types.optional(types.number()),
    buildMachineElasticReason: types.optional(GetProjectBuildMachineElasticReason$inboundSchema),
    isNSNBDisabled: types.optional(types.boolean()),
    buildQueue: types.optional(z.lazy(() => GetProjectBuildQueue$inboundSchema)),
    enableFunctionsBeta: types.optional(types.boolean()),
});
export function getProjectResourceConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectResourceConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectResourceConfig' from JSON`);
}
/** @internal */
export const GetProjectRollbackDescription$inboundSchema = z.object({
    userId: types.string(),
    username: types.string(),
    description: types.string(),
    createdAt: types.number(),
});
export function getProjectRollbackDescriptionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRollbackDescription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRollbackDescription' from JSON`);
}
/** @internal */
export const GetProjectStages$inboundSchema = z.object({
    targetPercentage: types.number(),
    requireApproval: types.optional(types.boolean()),
    duration: types.optional(types.number()),
    linearShift: types.optional(types.boolean()),
});
export function getProjectStagesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectStages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectStages' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType$inboundSchema = z.nativeEnum(GetProjectProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType);
/** @internal */
export const GetProjectChecks$inboundSchema = z.object({
    type: GetProjectProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType$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 getProjectChecksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectChecks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectChecks' from JSON`);
}
/** @internal */
export const GetProjectProjectsResponse200ApplicationJSONAction$inboundSchema = z
    .nativeEnum(GetProjectProjectsResponse200ApplicationJSONAction);
/** @internal */
export const GetProjectGate$inboundSchema = z.object({
    enabled: types.boolean(),
    checks: z.array(z.lazy(() => GetProjectChecks$inboundSchema)),
    failureThreshold: types.optional(types.number()),
    windowSize: types.optional(types.number()),
    action: GetProjectProjectsResponse200ApplicationJSONAction$inboundSchema,
    dryRun: types.boolean(),
});
export function getProjectGateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectGate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectGate' from JSON`);
}
/** @internal */
export const GetProjectRollingRelease$inboundSchema = z.object({
    target: types.string(),
    stages: z.nullable(z.array(z.lazy(() => GetProjectStages$inboundSchema)))
        .optional(),
    canaryResponseHeader: types.optional(types.boolean()),
    gate: types.optional(z.lazy(() => GetProjectGate$inboundSchema)),
});
export function getProjectRollingReleaseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetProjectRollingRelease$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProjectRollingRelease' from JSON`);
}
//# sourceMappingURL=getprojectrollingrelease.js.map