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,767 lines 84.2 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 UpdateMicrofrontendsConfiguredBy = {
    A: "A",
    Cname: "CNAME",
    Dns01: "dns-01",
    Http: "http",
};
/**
 * The type of matching to perform
 */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAliasDeploymentType = {
    EndsWith: "endsWith",
    Equals: "equals",
    StartsWith: "startsWith",
};
export const UpdateMicrofrontendsProjectsResponseChecksConclusion = {
    Canceled: "canceled",
    Failed: "failed",
    Skipped: "skipped",
    Succeeded: "succeeded",
};
export const UpdateMicrofrontendsProjectsResponseChecksState = {
    Completed: "completed",
    Registered: "registered",
    Running: "running",
};
export const UpdateMicrofrontendsProjectsResponsePlan = {
    Enterprise: "enterprise",
    Hobby: "hobby",
    Pro: "pro",
};
export const UpdateMicrofrontendsProjectsResponseReadyState = {
    Blocked: "BLOCKED",
    Building: "BUILDING",
    Canceled: "CANCELED",
    Error: "ERROR",
    Initializing: "INITIALIZING",
    Queued: "QUEUED",
    Ready: "READY",
};
export const UpdateMicrofrontendsProjectsResponseReadySubstate = {
    Promoted: "PROMOTED",
    Rolling: "ROLLING",
    Staged: "STAGED",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAliasType = {
    Lambdas: "LAMBDAS",
};
export const UpdateMicrofrontendsEnvironment = {
    Preview: "preview",
    Production: "production",
};
export const UpdateMicrofrontendsTarget = {
    Preview: "PREVIEW",
    Production: "PRODUCTION",
    Staging: "STAGING",
};
export const UpdateMicrofrontendsEnvId2 = {
    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 UpdateMicrofrontendsSource = {
    Api: "api",
};
export const UpdateMicrofrontendsTarget2 = {
    Development: "development",
    Preview: "preview",
    Production: "production",
};
export const UpdateMicrofrontendsTarget1 = {
    Development: "development",
    Preview: "preview",
    Production: "production",
};
export const UpdateMicrofrontendsType = {
    Encrypted: "encrypted",
    Plain: "plain",
    Secret: "secret",
    Sensitive: "sensitive",
    System: "system",
};
/**
 * User-facing config/secret model. When set, authoritative for new code paths when the env-var-config-secret-ui flag is enabled. Legacy rows omit this field; legacy rows omit it and callers fall back to existing `type` behavior.
 */
export const UpdateMicrofrontendsVisibility = {
    Config: "config",
    Secret: "secret",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyEnvType = {
    FlagsSecret: "flags-secret",
};
/**
 * The type of environment (production, preview, or development)
 */
export const UpdateMicrofrontendsProjectsType = {
    Development: "development",
    Preview: "preview",
    Production: "production",
};
/**
 * The type of matching to perform
 */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType = {
    EndsWith: "endsWith",
    Equals: "equals",
    StartsWith: "startsWith",
};
export const UpdateMicrofrontendsFramework = {
    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 UpdateMicrofrontendsServiceType = {
    Cron: "cron",
    Job: "job",
    Web: "web",
    Worker: "worker",
};
/**
 * Framework slug, when the service has one (omitted otherwise).
 */
export const UpdateMicrofrontendsProjectsFramework = {
    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 UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyType = {
    EndsWith: "endsWith",
    Equals: "equals",
    StartsWith: "startsWith",
};
export const UpdateMicrofrontendsChecksConclusion = {
    Canceled: "canceled",
    Failed: "failed",
    Skipped: "skipped",
    Succeeded: "succeeded",
};
export const UpdateMicrofrontendsChecksState = {
    Completed: "completed",
    Registered: "registered",
    Running: "running",
};
export const UpdateMicrofrontendsPlan = {
    Enterprise: "enterprise",
    Hobby: "hobby",
    Pro: "pro",
};
export const UpdateMicrofrontendsReadyState = {
    Blocked: "BLOCKED",
    Building: "BUILDING",
    Canceled: "CANCELED",
    Error: "ERROR",
    Initializing: "INITIALIZING",
    Queued: "QUEUED",
    Ready: "READY",
};
export const UpdateMicrofrontendsReadySubstate = {
    Promoted: "PROMOTED",
    Rolling: "ROLLING",
    Staged: "STAGED",
};
export const UpdateMicrofrontendsProjectsResponseType = {
    Lambdas: "LAMBDAS",
};
export const UpdateMicrofrontendsNodeVersion = {
    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 UpdateMicrofrontendsDeploymentType = {
    All: "all",
    AllExceptCustomDomains: "all_except_custom_domains",
    Preview: "preview",
    ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const UpdateMicrofrontendsRegion = {
    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 UpdateMicrofrontendsFailoverRegions = {
    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 UpdateMicrofrontendsFunctionDefaultMemoryType = {
    Performance: "performance",
    PerformanceXl: "performance_xl",
    Standard: "standard",
    StandardLegacy: "standard_legacy",
};
export const UpdateMicrofrontendsBuildMachineType = {
    Basic: "basic",
    Enhanced: "enhanced",
    Standard: "standard",
    Turbo: "turbo",
};
export const UpdateMicrofrontendsBuildMachineSelection = {
    Elastic: "elastic",
    Fixed: "fixed",
};
export const UpdateMicrofrontendsBuildMachineElasticReason = {
    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 UpdateMicrofrontendsConfiguration = {
    SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
    WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
};
/**
 * The metric this check evaluates.
 */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType = {
    ErrorRate5xx: "error-rate-5xx",
};
/**
 * What to do when the gate trips: pause the rollout, or roll it back.
 */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONAction = {
    Pause: "pause",
    Rollback: "rollback",
};
export const UpdateMicrofrontendsProjectsFunctionDefaultMemoryType = {
    Performance: "performance",
    PerformanceXl: "performance_xl",
    Standard: "standard",
    StandardLegacy: "standard_legacy",
};
/** @internal */
export const UpdateMicrofrontendsRequestBody$outboundSchema = z.object({
    microfrontendsGroupId: z.string().optional(),
    enabled: z.boolean().optional(),
    isDefaultApp: z.boolean().optional(),
    defaultRoute: z.string().optional(),
    routeObservabilityToThisProject: z.boolean().optional(),
    doNotRouteWithMicrofrontendsRouting: z.boolean().optional(),
});
export function updateMicrofrontendsRequestBodyToJSON(updateMicrofrontendsRequestBody) {
    return JSON.stringify(UpdateMicrofrontendsRequestBody$outboundSchema.parse(updateMicrofrontendsRequestBody));
}
/** @internal */
export const UpdateMicrofrontendsRequest$outboundSchema = z.object({
    projectId: z.string(),
    teamId: z.string().optional(),
    slug: z.string().optional(),
    requestBody: z.lazy(() => UpdateMicrofrontendsRequestBody$outboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        requestBody: "RequestBody",
    });
});
export function updateMicrofrontendsRequestToJSON(updateMicrofrontendsRequest) {
    return JSON.stringify(UpdateMicrofrontendsRequest$outboundSchema.parse(updateMicrofrontendsRequest));
}
/** @internal */
export const UpdateMicrofrontendsCreator4$inboundSchema = z.object({
    type: types.literal("system"),
});
export function updateMicrofrontendsCreator4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreator4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreator4' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreatorIntegration$inboundSchema = z.object({
    integrationId: types.string(),
    configurationId: types.string(),
});
export function updateMicrofrontendsCreatorIntegrationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreatorIntegration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreatorIntegration' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreator3$inboundSchema = z.object({
    type: types.literal("integration"),
    integration: z.lazy(() => UpdateMicrofrontendsCreatorIntegration$inboundSchema),
});
export function updateMicrofrontendsCreator3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreator3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreator3' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreatorApp$inboundSchema = z.object({
    id: types.string(),
    clientId: types.optional(types.string()),
});
export function updateMicrofrontendsCreatorAppFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreatorApp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreatorApp' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreator2$inboundSchema = z.object({
    type: types.literal("app"),
    app: z.lazy(() => UpdateMicrofrontendsCreatorApp$inboundSchema),
});
export function updateMicrofrontendsCreator2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreator2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreator2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsViaIntegration$inboundSchema = z.object({
    integrationId: types.string(),
    configurationId: types.string(),
});
export function updateMicrofrontendsViaIntegrationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsViaIntegration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsViaIntegration' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsVia2$inboundSchema = z.object({
    type: types.literal("integration"),
    integration: z.lazy(() => UpdateMicrofrontendsViaIntegration$inboundSchema),
});
export function updateMicrofrontendsVia2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsVia2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsVia2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsViaApp$inboundSchema = z.object({
    id: types.string(),
    clientId: types.optional(types.string()),
});
export function updateMicrofrontendsViaAppFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsViaApp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsViaApp' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsVia1$inboundSchema = z.object({
    type: types.literal("app"),
    app: z.lazy(() => UpdateMicrofrontendsViaApp$inboundSchema),
});
export function updateMicrofrontendsVia1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsVia1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsVia1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreatorVia$inboundSchema = z.union([
    z.lazy(() => UpdateMicrofrontendsVia1$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsVia2$inboundSchema),
]);
export function updateMicrofrontendsCreatorViaFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreatorVia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreatorVia' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreatorUser$inboundSchema = z.object({
    id: types.string(),
});
export function updateMicrofrontendsCreatorUserFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreatorUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreatorUser' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreator1$inboundSchema = z.object({
    type: types.literal("user"),
    via: types.nullable(z.union([
        z.lazy(() => UpdateMicrofrontendsVia1$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsVia2$inboundSchema),
    ])),
    user: z.lazy(() => UpdateMicrofrontendsCreatorUser$inboundSchema),
});
export function updateMicrofrontendsCreator1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreator1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreator1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreator$inboundSchema = z.union([
    z.lazy(() => UpdateMicrofrontendsCreator1$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsCreator2$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsCreator3$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsCreator4$inboundSchema),
]);
export function updateMicrofrontendsCreatorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCreator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreator' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsConfiguredBy$inboundSchema = z.nativeEnum(UpdateMicrofrontendsConfiguredBy);
/** @internal */
export const UpdateMicrofrontendsProjectsResponseAliasAssigned$inboundSchema = smartUnion([types.number(), types.boolean()]);
export function updateMicrofrontendsProjectsResponseAliasAssignedFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsResponseAliasAssigned$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsResponseAliasAssigned' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponseAliasError$inboundSchema = z.object({
    code: types.string(),
    message: types.string(),
});
export function updateMicrofrontendsProjectsResponseAliasErrorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsResponseAliasError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsResponseAliasError' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAliasDeploymentType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAliasDeploymentType);
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200BranchMatcher$inboundSchema = z.object({
    type: UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAliasDeploymentType$inboundSchema,
    pattern: types.string(),
});
export function updateMicrofrontendsProjectsResponse200BranchMatcherFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsResponse200BranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsResponse200BranchMatcher' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponseBuilds$inboundSchema = z.object({
    use: types.string(),
    src: types.optional(types.string()),
    dest: types.optional(types.string()),
});
export function updateMicrofrontendsProjectsResponseBuildsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsResponseBuilds$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsResponseBuilds' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponseChecksConclusion$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponseChecksConclusion);
/** @internal */
export const UpdateMicrofrontendsProjectsResponseChecksState$inboundSchema = z
    .nativeEnum(UpdateMicrofrontendsProjectsResponseChecksState);
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200Creator$inboundSchema = z.object({
    email: types.string(),
    githubLogin: types.optional(types.string()),
    gitlabLogin: types.optional(types.string()),
    uid: types.string(),
    username: types.string(),
});
export function updateMicrofrontendsProjectsResponse200CreatorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsResponse200Creator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsResponse200Creator' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponseOidcTokenClaims$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 updateMicrofrontendsProjectsResponseOidcTokenClaimsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsResponseOidcTokenClaims$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsResponseOidcTokenClaims' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponsePlan$inboundSchema = z
    .nativeEnum(UpdateMicrofrontendsProjectsResponsePlan);
/** @internal */
export const UpdateMicrofrontendsProjectsResponseReadyState$inboundSchema = z
    .nativeEnum(UpdateMicrofrontendsProjectsResponseReadyState);
/** @internal */
export const UpdateMicrofrontendsProjectsResponseReadySubstate$inboundSchema = z
    .nativeEnum(UpdateMicrofrontendsProjectsResponseReadySubstate);
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAliasType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAliasType);
/** @internal */
export const UpdateMicrofrontendsDeployment$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(() => UpdateMicrofrontendsProjectsResponseAliasError$inboundSchema)).optional(),
    aliasFinal: z.nullable(types.string()).optional(),
    automaticAliases: types.optional(z.array(types.string())),
    branchMatcher: types.optional(z.lazy(() => UpdateMicrofrontendsProjectsResponse200BranchMatcher$inboundSchema)),
    buildingAt: types.optional(types.number()),
    builds: types.optional(z.array(z.lazy(() => UpdateMicrofrontendsProjectsResponseBuilds$inboundSchema))),
    checksConclusion: types.optional(UpdateMicrofrontendsProjectsResponseChecksConclusion$inboundSchema),
    checksState: types.optional(UpdateMicrofrontendsProjectsResponseChecksState$inboundSchema),
    connectBuildsEnabled: types.optional(types.boolean()),
    connectConfigurationId: types.optional(types.string()),
    createdAt: types.number(),
    createdIn: types.string(),
    creator: types.nullable(z.lazy(() => UpdateMicrofrontendsProjectsResponse200Creator$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(() => UpdateMicrofrontendsProjectsResponseOidcTokenClaims$inboundSchema)),
    plan: UpdateMicrofrontendsProjectsResponsePlan$inboundSchema,
    previewCommentsEnabled: types.optional(types.boolean()),
    private: types.boolean(),
    readyAt: types.optional(types.number()),
    readyState: UpdateMicrofrontendsProjectsResponseReadyState$inboundSchema,
    readySubstate: types.optional(UpdateMicrofrontendsProjectsResponseReadySubstate$inboundSchema),
    requestedAt: types.optional(types.number()),
    target: z.nullable(types.string()).optional(),
    teamId: z.nullable(types.string()).optional(),
    type: UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAliasType$inboundSchema,
    url: types.string(),
    userId: types.optional(types.string()),
    withCache: types.optional(types.boolean()),
});
export function updateMicrofrontendsDeploymentFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsDeployment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsDeployment' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsEnvironment$inboundSchema = z.nativeEnum(UpdateMicrofrontendsEnvironment);
/** @internal */
export const UpdateMicrofrontendsTarget$inboundSchema = z.nativeEnum(UpdateMicrofrontendsTarget);
/** @internal */
export const UpdateMicrofrontendsAlias$inboundSchema = z.object({
    configuredBy: z.nullable(UpdateMicrofrontendsConfiguredBy$inboundSchema)
        .optional(),
    configuredChangedAt: z.nullable(types.number()).optional(),
    createdAt: z.nullable(types.number()).optional(),
    deployment: types.nullable(z.lazy(() => UpdateMicrofrontendsDeployment$inboundSchema)),
    domain: types.string(),
    environment: UpdateMicrofrontendsEnvironment$inboundSchema,
    gitBranch: z.nullable(types.string()).optional(),
    redirect: z.nullable(types.string()).optional(),
    redirectStatusCode: z.nullable(types.number()).optional(),
    target: UpdateMicrofrontendsTarget$inboundSchema,
});
export function updateMicrofrontendsAliasFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsAlias$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsAlias' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsAnalytics$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 updateMicrofrontendsAnalyticsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsAnalytics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsAnalytics' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsSpeedInsights$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 updateMicrofrontendsSpeedInsightsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsSpeedInsights$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSpeedInsights' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsEnvId2$inboundSchema = z.nativeEnum(UpdateMicrofrontendsEnvId2);
/** @internal */
export const UpdateMicrofrontendsEnvId$inboundSchema = smartUnion([types.string(), UpdateMicrofrontendsEnvId2$inboundSchema]);
export function updateMicrofrontendsEnvIdFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsEnvId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsEnvId' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsAws$inboundSchema = z.object({
    subnetIds: z.array(types.string()),
    securityGroupId: types.optional(types.string()),
});
export function updateMicrofrontendsAwsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsAws' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsConnectConfigurations$inboundSchema = z.object({
    envId: smartUnion([types.string(), UpdateMicrofrontendsEnvId2$inboundSchema]),
    connectConfigurationId: types.string(),
    dc: types.optional(types.string()),
    passive: types.boolean(),
    buildsEnabled: types.boolean(),
    aws: types.optional(z.lazy(() => UpdateMicrofrontendsAws$inboundSchema)),
    createdAt: types.number(),
    updatedAt: types.number(),
});
export function updateMicrofrontendsConnectConfigurationsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsConnectConfigurations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsConnectConfigurations' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsSource$inboundSchema = z.nativeEnum(UpdateMicrofrontendsSource);
/** @internal */
export const UpdateMicrofrontendsDefinitions$inboundSchema = z.object({
    host: types.string(),
    path: types.string(),
    schedule: types.string(),
    source: types.optional(UpdateMicrofrontendsSource$inboundSchema),
    description: types.optional(types.string()),
    hostInferred: types.optional(types.boolean()),
});
export function updateMicrofrontendsDefinitionsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsDefinitions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsDefinitions' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCrons$inboundSchema = z.object({
    enabledAt: types.number(),
    disabledAt: types.nullable(types.number()),
    updatedAt: types.number(),
    deploymentId: types.nullable(types.string()),
    definitions: z.array(z.lazy(() => UpdateMicrofrontendsDefinitions$inboundSchema)),
});
export function updateMicrofrontendsCronsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCrons$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCrons' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsDataCache$inboundSchema = z.object({
    userDisabled: types.boolean(),
    storageSizeBytes: z.nullable(types.number()).optional(),
    unlimited: types.optional(types.boolean()),
});
export function updateMicrofrontendsDataCacheFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsDataCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsDataCache' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsDeploymentExpiration$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 updateMicrofrontendsDeploymentExpirationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsDeploymentExpiration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsDeploymentExpiration' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsExpiration2$inboundSchema = z.object({
    lockedAt: types.number(),
    lockedBy: types.string(),
});
export function updateMicrofrontendsExpiration2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsExpiration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsExpiration2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsExpiration1$inboundSchema = z.object({
    expiresAt: types.number(),
});
export function updateMicrofrontendsExpiration1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsExpiration1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsExpiration1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsExpiration$inboundSchema = smartUnion([
    z.lazy(() => UpdateMicrofrontendsExpiration2$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsExpiration1$inboundSchema),
]);
export function updateMicrofrontendsExpirationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsExpiration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsExpiration' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTarget2$inboundSchema = z.nativeEnum(UpdateMicrofrontendsTarget2);
/** @internal */
export const UpdateMicrofrontendsTarget1$inboundSchema = z.nativeEnum(UpdateMicrofrontendsTarget1);
/** @internal */
export const UpdateMicrofrontendsProjectsTarget$inboundSchema = smartUnion([
    z.array(UpdateMicrofrontendsTarget1$inboundSchema),
    UpdateMicrofrontendsTarget2$inboundSchema,
]);
export function updateMicrofrontendsProjectsTargetFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsTarget$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsTarget' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsType);
/** @internal */
export const UpdateMicrofrontendsVisibility$inboundSchema = z.nativeEnum(UpdateMicrofrontendsVisibility);
/** @internal */
export const UpdateMicrofrontendsContentHint17$inboundSchema = z.object({
    type: types.literal("flags-connection-string"),
    projectId: types.string(),
});
export function updateMicrofrontendsContentHint17FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint17$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint17' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint16$inboundSchema = z.object({
    type: types.literal("integration-store-secret"),
    storeId: types.string(),
    integrationId: types.string(),
    integrationProductId: types.string(),
    integrationConfigurationId: types.string(),
});
export function updateMicrofrontendsContentHint16FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint16$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint16' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint15$inboundSchema = z.object({
    type: types.literal("postgres-url-no-ssl"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint15FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint15$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint15' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint14$inboundSchema = z.object({
    type: types.literal("postgres-database"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint14FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint14$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint14' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint13$inboundSchema = z.object({
    type: types.literal("postgres-password"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint13FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint13$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint13' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint12$inboundSchema = z.object({
    type: types.literal("postgres-host"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint12FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint12$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint12' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint11$inboundSchema = z.object({
    type: types.literal("postgres-user"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint11FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint11$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint11' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint10$inboundSchema = z.object({
    type: types.literal("postgres-prisma-url"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint10FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint10$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint10' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint9$inboundSchema = z.object({
    type: types.literal("postgres-url-non-pooling"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint9FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint9$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint9' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint8$inboundSchema = z.object({
    type: types.literal("postgres-url"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint8FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint8' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint7$inboundSchema = z.object({
    type: types.literal("blob-webhook-public-key"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint7FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint7' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint6$inboundSchema = z.object({
    type: types.literal("blob-store-id"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint6FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint6' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint5$inboundSchema = z.object({
    type: types.literal("blob-read-write-token"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint5FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint5' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint4$inboundSchema = z.object({
    type: types.literal("redis-rest-api-read-only-token"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint4' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint3$inboundSchema = z.object({
    type: types.literal("redis-rest-api-token"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint3' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint2$inboundSchema = z.object({
    type: types.literal("redis-rest-api-url"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint1$inboundSchema = z.object({
    type: types.literal("redis-url"),
    storeId: types.string(),
});
export function updateMicrofrontendsContentHint1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsContentHint$inboundSchema = z.union([
    z.lazy(() => UpdateMicrofrontendsContentHint1$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint2$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint3$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint4$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint5$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint6$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint7$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint8$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint9$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint10$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint11$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint12$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint13$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint14$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint15$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint16$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsContentHint17$inboundSchema),
]);
export function updateMicrofrontendsContentHintFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsContentHint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsContentHint' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyEnvType);
/** @internal */
export const UpdateMicrofrontendsInternalContentHint$inboundSchema = z.object({
    type: UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema,
    encryptedValue: types.string(),
});
export function updateMicrofrontendsInternalContentHintFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsInternalContentHint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsInternalContentHint' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsEnv$inboundSchema = z.object({
    target: types.optional(smartUnion([
        z.array(UpdateMicrofrontendsTarget1$inboundSchema),
        UpdateMicrofrontendsTarget2$inboundSchema,
    ])),
    type: UpdateMicrofrontendsType$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(UpdateMicrofrontendsVisibility$inboundSchema),
    edgeConfigId: z.nullable(types.string()).optional(),
    edgeConfigTokenId: z.nullable(types.string()).optional(),
    contentHint: z.nullable(z.union([
        z.lazy(() => UpdateMicrofrontendsContentHint1$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint2$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint3$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint4$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint5$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint6$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint7$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint8$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint9$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint10$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint11$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint12$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint13$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint14$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint15$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint16$inboundSchema),
        z.lazy(() => UpdateMicrofrontendsContentHint17$inboundSchema),
    ])).optional(),
    internalContentHint: z.nullable(z.lazy(() => UpdateMicrofrontendsInternalContentHint$inboundSchema)).optional(),
    comment: types.optional(types.string()),
    customEnvironmentIds: types.optional(z.array(types.string())),
});
export function updateMicrofrontendsEnvFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsEnv$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsEnv' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsType);
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType);
/** @internal */
export const UpdateMicrofrontendsBranchMatcher$inboundSchema = z.object({
    type: UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema,
    pattern: types.string(),
});
export function updateMicrofrontendsBranchMatcherFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsBranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBranchMatcher' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsVerification$inboundSchema = z.object({
    type: types.string(),
    domain: types.string(),
    value: types.string(),
    reason: types.string(),
});
export function updateMicrofrontendsVerificationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsVerification$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsVerification' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsDomains$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(() => UpdateMicrofrontendsVerification$inboundSchema))),
});
export function updateMicrofrontendsDomainsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsDomains$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsDomains' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCustomEnvironments$inboundSchema = z.object({
    id: types.string(),
    slug: types.string(),
    type: UpdateMicrofrontendsProjectsType$inboundSchema,
    description: types.optional(types.string()),
    branchMatcher: types.optional(z.lazy(() => UpdateMicrofrontendsBranchMatcher$inboundSchema)),
    domains: types.optional(z.array(z.lazy(() => UpdateMicrofrontendsDomains$inboundSchema))),
    currentDeploymentAliases: types.optional(z.array(types.string())),
    createdAt: types.number(),
    updatedAt: types.number(),
});
export function updateMicrofrontendsCustomEnvironmentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsCustomEnvironments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCustomEnvironments' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsFramework$inboundSchema = z.nativeEnum(UpdateMicrofrontendsFramework);
/** @internal */
export const UpdateMicrofrontendsServiceType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsServiceType);
/** @internal */
export const UpdateMicrofrontendsProjectsFramework$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsFramework);
/** @internal */
export const UpdateMicrofrontendsServices$inboundSchema = z.object({
    serviceName: types.string(),
    serviceType: types.optional(UpdateMicrofrontendsServiceType$inboundSchema),
    framework: types.optional(UpdateMicrofrontendsProjectsFramework$inboundSchema),
    runtime: types.optional(types.string()),
});
export function updateMicrofrontendsServicesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsServices$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsServices' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsIpBuckets$inboundSchema = z.object({
    bucket: types.string(),
    default: types.optional(types.boolean()),
    supportUntil: types.optional(types.number()),
});
export function updateMicrofrontendsIpBucketsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsIpBuckets$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsIpBuckets' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLint$inboundSchema = z.object({
    targets: z.array(types.string()),
});
export function updateMicrofrontendsLintFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLint' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTypecheck$inboundSchema = z.object({
    targets: z.array(types.string()),
});
export function updateMicrofrontendsTypecheckFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsTypecheck$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTypecheck' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsMfeConfigPresent$inboundSchema = z.object({
    targets: z.array(types.string()),
});
export function updateMicrofrontendsMfeConfigPresentFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsMfeConfigPresent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsMfeConfigPresent' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsJobs$inboundSchema = z.object({
    lint: types.optional(z.lazy(() => UpdateMicrofrontendsLint$inboundSchema)),
    typecheck: types.optional(z.lazy(() => UpdateMicrofrontendsTypecheck$inboundSchema)),
    "mfe-config-present": types.optional(z.lazy(() => UpdateMicrofrontendsMfeConfigPresent$inboundSchema)),
}).transform((v) => {
    return remap$(v, {
        "mfe-config-present": "mfeConfigPresent",
    });
});
export function updateMicrofrontendsJobsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsJobs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsJobs' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsAliasAssigned$inboundSchema = smartUnion([types.number(), types.boolean()]);
export function updateMicrofrontendsAliasAssignedFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsAliasAssigned$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsAliasAssigned' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsAliasError$inboundSchema = z.object({
    code: types.string(),
    message: types.string(),
});
export function updateMicrofrontendsAliasErrorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsAliasError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsAliasError' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyType);
/** @internal */
export const UpdateMicrofrontendsProjectsBranchMatcher$inboundSchema = z.object({
    type: UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    pattern: types.string(),
});
export function updateMicrofrontendsProjectsBranchMatcherFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsBranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsBranchMatcher' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBuilds$inboundSchema = z.object({
    use: types.string(),
    src: types.optional(types.string()),
    dest: types.optional(types.string()),
});
export function updateMicrofrontendsBuildsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsBuilds$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBuilds' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsChecksConclusion$inboundSchema = z.nativeEnum(UpdateMicrofrontendsChecksConclusion);
/** @internal */
export const UpdateMicrofrontendsChecksState$inboundSchema = z.nativeEnum(UpdateMicrofrontendsChecksState);
/** @internal */
export const UpdateMicrofrontendsProjectsCreator$inboundSchema = z.object({
    email: types.string(),
    githubLogin: types.optional(types.string()),
    gitlabLogin: types.optional(types.string()),
    uid: types.string(),
    username: types.string(),
});
export function updateMicrofrontendsProjectsCreatorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsCreator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsCreator' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsOidcTokenClaims$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 updateMicrofrontendsOidcTokenClaimsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsOidcTokenClaims$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsOidcTokenClaims' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsPlan$inboundSchema = z.nativeEnum(UpdateMicrofrontendsPlan);
/** @internal */
export const UpdateMicrofrontendsReadyState$inboundSchema = z.nativeEnum(UpdateMicrofrontendsReadyState);
/** @internal */
export const UpdateMicrofrontendsReadySubstate$inboundSchema = z.nativeEnum(UpdateMicrofrontendsReadySubstate);
/** @internal */
export const UpdateMicrofrontendsProjectsResponseType$inboundSchema = z
    .nativeEnum(UpdateMicrofrontendsProjectsResponseType);
/** @internal */
export const UpdateMicrofrontendsLatestDeployments$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(() => UpdateMicrofrontendsAliasError$inboundSchema)).optional(),
    aliasFinal: z.nullable(types.string()).optional(),
    automaticAliases: types.optional(z.array(types.string())),
    branchMatcher: types.optional(z.lazy(() => UpdateMicrofrontendsProjectsBranchMatcher$inboundSchema)),
    buildingAt: types.optional(types.number()),
    builds: types.optional(z.array(z.lazy(() => UpdateMicrofrontendsBuilds$inboundSchema))),
    checksConclusion: types.optional(UpdateMicrofrontendsChecksConclusion$inboundSchema),
    checksState: types.optional(UpdateMicrofrontendsChecksState$inboundSchema),
    connectBuildsEnabled: types.optional(types.boolean()),
    connectConfigurationId: types.optional(types.string()),
    createdAt: types.number(),
    createdIn: types.string(),
    creator: types.nullable(z.lazy(() => UpdateMicrofrontendsProjectsCreator$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(() => UpdateMicrofrontendsOidcTokenClaims$inboundSchema)),
    plan: UpdateMicrofrontendsPlan$inboundSchema,
    previewCommentsEnabled: types.optional(types.boolean()),
    private: types.boolean(),
    readyAt: types.optional(types.number()),
    readyState: UpdateMicrofrontendsReadyState$inboundSchema,
    readySubstate: types.optional(UpdateMicrofrontendsReadySubstate$inboundSchema),
    requestedAt: types.optional(types.number()),
    target: z.nullable(types.string()).optional(),
    teamId: z.nullable(types.string()).optional(),
    type: UpdateMicrofrontendsProjectsResponseType$inboundSchema,
    url: types.string(),
    userId: types.optional(types.string()),
    withCache: types.optional(types.boolean()),
});
export function updateMicrofrontendsLatestDeploymentsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLatestDeployments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLatestDeployments' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function updateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink8$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(() => UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody8DeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function updateMicrofrontendsLink8FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink8' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function updateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink7$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(() => UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBody7DeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function updateMicrofrontendsLink7FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink7' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function updateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink6$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(() => UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONResponseBodyDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function updateMicrofrontendsLink6FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink6' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function updateMicrofrontendsLinkProjectsResponse200ApplicationJSONDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONDeployHooks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink5$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(() => UpdateMicrofrontendsLinkProjectsResponse200ApplicationJSONDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function updateMicrofrontendsLink5FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink5' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLinkProjectsResponse200DeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function updateMicrofrontendsLinkProjectsResponse200DeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLinkProjectsResponse200DeployHooks$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLinkProjectsResponse200DeployHooks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink4$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(() => UpdateMicrofrontendsLinkProjectsResponse200DeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function updateMicrofrontendsLink4FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink4' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLinkProjectsResponseDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function updateMicrofrontendsLinkProjectsResponseDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLinkProjectsResponseDeployHooks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLinkProjectsResponseDeployHooks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink3$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(() => UpdateMicrofrontendsLinkProjectsResponseDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function updateMicrofrontendsLink3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink3' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLinkProjectsDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function updateMicrofrontendsLinkProjectsDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLinkProjectsDeployHooks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLinkProjectsDeployHooks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink2$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(() => UpdateMicrofrontendsLinkProjectsDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function updateMicrofrontendsLink2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLinkDeployHooks$inboundSchema = z.object({
    createdAt: types.optional(types.number()),
    id: types.string(),
    name: types.string(),
    ref: types.string(),
    url: types.string(),
});
export function updateMicrofrontendsLinkDeployHooksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLinkDeployHooks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLinkDeployHooks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink1$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(() => UpdateMicrofrontendsLinkDeployHooks$inboundSchema)),
    gitCredentialId: types.string(),
    updatedAt: types.optional(types.number()),
    sourceless: types.optional(types.boolean()),
    productionBranch: types.string(),
});
export function updateMicrofrontendsLink1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLink$inboundSchema = z.union([
    z.lazy(() => UpdateMicrofrontendsLink1$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsLink2$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsLink3$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsLink4$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsLink5$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsLink6$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsLink7$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsLink8$inboundSchema),
]);
export function updateMicrofrontendsLinkFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsLink$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBlobs$inboundSchema = z.object({
    isDefaultApp: types.optional(types.boolean()),
});
export function updateMicrofrontendsBlobsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsBlobs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlobs' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsMicrofrontends3$inboundSchema = z.object({
    updatedAt: types.number(),
    groupIds: z.array(z.any()),
    enabled: types.literal(false),
    freeProjectForLegacyLimits: types.optional(types.boolean()),
});
export function updateMicrofrontendsMicrofrontends3FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsMicrofrontends3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsMicrofrontends3' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsMicrofrontends2$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 updateMicrofrontendsMicrofrontends2FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsMicrofrontends2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsMicrofrontends2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsMicrofrontends1$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 updateMicrofrontendsMicrofrontends1FromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsMicrofrontends1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsMicrofrontends1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsMicrofrontends$inboundSchema = smartUnion([
    z.lazy(() => UpdateMicrofrontendsMicrofrontends1$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsMicrofrontends2$inboundSchema),
    z.lazy(() => UpdateMicrofrontendsMicrofrontends3$inboundSchema),
]);
export function updateMicrofrontendsMicrofrontendsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsMicrofrontends$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsMicrofrontends' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsNodeVersion$inboundSchema = z.nativeEnum(UpdateMicrofrontendsNodeVersion);
/** @internal */
export const UpdateMicrofrontendsPaths$inboundSchema = z.object({
    value: types.string(),
});
export function updateMicrofrontendsPathsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsPaths$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsPaths' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsOptionsAllowlist$inboundSchema = z.object({
    paths: z.array(z.lazy(() => UpdateMicrofrontendsPaths$inboundSchema)),
});
export function updateMicrofrontendsOptionsAllowlistFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsOptionsAllowlist$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsOptionsAllowlist' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsPasswordProtection$inboundSchema = z.object({});
export function updateMicrofrontendsPasswordProtectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsPasswordProtection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsPasswordProtection' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsDeploymentType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsDeploymentType);
/** @internal */
export const UpdateMicrofrontendsPassport$inboundSchema = z.object({
    deploymentType: UpdateMicrofrontendsDeploymentType$inboundSchema,
    connectorId: types.string(),
});
export function updateMicrofrontendsPassportFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsPassport$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsPassport' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsSandboxUrls$inboundSchema = z.object({
    inheritDeploymentProtection: types.optional(types.boolean()),
});
export function updateMicrofrontendsSandboxUrlsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsSandboxUrls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSandboxUrls' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProtectionConfig$inboundSchema = z.object({
    sandboxUrls: types.optional(z.lazy(() => UpdateMicrofrontendsSandboxUrls$inboundSchema)),
});
export function updateMicrofrontendsProtectionConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsProtectionConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProtectionConfig' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRegion$inboundSchema = z.nativeEnum(UpdateMicrofrontendsRegion);
/** @internal */
export const UpdateMicrofrontendsFailoverRegions$inboundSchema = z.nativeEnum(UpdateMicrofrontendsFailoverRegions);
/** @internal */
export const UpdateMicrofrontendsSandbox$inboundSchema = z.object({
    region: types.optional(UpdateMicrofrontendsRegion$inboundSchema),
    failoverRegions: types.optional(z.array(UpdateMicrofrontendsFailoverRegions$inboundSchema)),
});
export function updateMicrofrontendsSandboxFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsSandbox$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSandbox' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsFunctionDefaultMemoryType$inboundSchema = z
    .nativeEnum(UpdateMicrofrontendsFunctionDefaultMemoryType);
/** @internal */
export const UpdateMicrofrontendsBuildMachineType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsBuildMachineType);
/** @internal */
export const UpdateMicrofrontendsBuildMachineSelection$inboundSchema = z
    .nativeEnum(UpdateMicrofrontendsBuildMachineSelection);
/** @internal */
export const UpdateMicrofrontendsBuildMachineElasticReason$inboundSchema = z
    .nativeEnum(UpdateMicrofrontendsBuildMachineElasticReason);
/** @internal */
export const UpdateMicrofrontendsConfiguration$inboundSchema = z.nativeEnum(UpdateMicrofrontendsConfiguration);
/** @internal */
export const UpdateMicrofrontendsBuildQueue$inboundSchema = z.object({
    configuration: types.optional(UpdateMicrofrontendsConfiguration$inboundSchema),
});
export function updateMicrofrontendsBuildQueueFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsBuildQueue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBuildQueue' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsResourceConfig$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(UpdateMicrofrontendsFunctionDefaultMemoryType$inboundSchema),
    functionZeroConfigFailover: types.optional(types.boolean()),
    buildMachineType: types.optional(UpdateMicrofrontendsBuildMachineType$inboundSchema),
    buildMachineSelection: types.optional(UpdateMicrofrontendsBuildMachineSelection$inboundSchema),
    buildMachineElasticLastUpdated: types.optional(types.number()),
    buildMachineElasticReason: types.optional(UpdateMicrofrontendsBuildMachineElasticReason$inboundSchema),
    isNSNBDisabled: types.optional(types.boolean()),
    buildQueue: types.optional(z.lazy(() => UpdateMicrofrontendsBuildQueue$inboundSchema)),
    enableFunctionsBeta: types.optional(types.boolean()),
});
export function updateMicrofrontendsResourceConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsResourceConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsResourceConfig' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRollbackDescription$inboundSchema = z.object({
    userId: types.string(),
    username: types.string(),
    description: types.string(),
    createdAt: types.number(),
});
export function updateMicrofrontendsRollbackDescriptionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsRollbackDescription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRollbackDescription' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsStages$inboundSchema = z.object({
    targetPercentage: types.number(),
    requireApproval: types.optional(types.boolean()),
    duration: types.optional(types.number()),
    linearShift: types.optional(types.boolean()),
});
export function updateMicrofrontendsStagesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsStages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsStages' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType);
/** @internal */
export const UpdateMicrofrontendsChecks$inboundSchema = z.object({
    type: UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyRollingReleaseType$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 updateMicrofrontendsChecksFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsChecks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsChecks' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONAction);
/** @internal */
export const UpdateMicrofrontendsGate$inboundSchema = z.object({
    enabled: types.boolean(),
    checks: z.array(z.lazy(() => UpdateMicrofrontendsChecks$inboundSchema)),
    failureThreshold: types.optional(types.number()),
    windowSize: types.optional(types.number()),
    action: UpdateMicrofrontendsProjectsResponse200ApplicationJSONAction$inboundSchema,
    dryRun: types.boolean(),
});
export function updateMicrofrontendsGateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsGate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsGate' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRollingRelease$inboundSchema = z.object({
    target: types.string(),
    stages: z.nullable(z.array(z.lazy(() => UpdateMicrofrontendsStages$inboundSchema))).optional(),
    canaryResponseHeader: types.optional(types.boolean()),
    gate: types.optional(z.lazy(() => UpdateMicrofrontendsGate$inboundSchema)),
});
export function updateMicrofrontendsRollingReleaseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateMicrofrontendsRollingRelease$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRollingRelease' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsFunctionDefaultMemoryType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsFunctionDefaultMemoryType);
//# sourceMappingURL=updatemicrofrontendsprojectsfunctiondefaultmemorytype.js.map