@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,887 lines • 98.2 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
import { ACLAction$inboundSchema } from "./aclaction.js";
export const 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",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONType = {
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 UpdateMicrofrontendsProjectsResponse200Type = {
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",
CreateReactApp: "create-react-app",
Django: "django",
Docusaurus: "docusaurus",
Docusaurus2: "docusaurus-2",
Dojo: "dojo",
Eleventy: "eleventy",
Elysia: "elysia",
Ember: "ember",
Eve: "eve",
Express: "express",
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",
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",
CreateReactApp: "create-react-app",
Django: "django",
Docusaurus: "docusaurus",
Docusaurus2: "docusaurus-2",
Dojo: "dojo",
Eleventy: "eleventy",
Elysia: "elysia",
Ember: "ember",
Eve: "eve",
Express: "express",
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",
Umijs: "umijs",
Vite: "vite",
Vitepress: "vitepress",
Vue: "vue",
Vuepress: "vuepress",
Xmcp: "xmcp",
Zola: "zola",
};
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 UpdateMicrofrontendsFunctionDefaultMemoryType = {
Performance: "performance",
PerformanceXl: "performance_xl",
Standard: "standard",
StandardLegacy: "standard_legacy",
};
export const UpdateMicrofrontendsBuildMachineType = {
Enhanced: "enhanced",
Standard: "standard",
Turbo: "turbo",
};
export const UpdateMicrofrontendsBuildMachineSelection = {
Elastic: "elastic",
Fixed: "fixed",
};
export const UpdateMicrofrontendsConfiguration = {
SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
};
export const UpdateMicrofrontendsProjectsFunctionDefaultMemoryType = {
Performance: "performance",
PerformanceXl: "performance_xl",
Standard: "standard",
StandardLegacy: "standard_legacy",
};
export const UpdateMicrofrontendsProjectsBuildMachineType = {
Enhanced: "enhanced",
Standard: "standard",
Turbo: "turbo",
};
export const UpdateMicrofrontendsProjectsBuildMachineSelection = {
Elastic: "elastic",
Fixed: "fixed",
};
export const UpdateMicrofrontendsProjectsConfiguration = {
SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
};
export const UpdateMicrofrontendsProjectsDeploymentType = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const UpdateMicrofrontendsCve55182MigrationAppliedFrom = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const UpdateMicrofrontendsApril2026SecurityIncidentMigrationAppliedFrom = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
};
export const UpdateMicrofrontendsJobStatus = {
Failed: "failed",
InProgress: "in-progress",
Pending: "pending",
Skipped: "skipped",
Succeeded: "succeeded",
};
export const UpdateMicrofrontendsProjectsResponseType = {
Promote: "promote",
Rollback: "rollback",
};
export const UpdateMicrofrontendsTrustedIpsProjectsDeploymentType = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
Production: "production",
};
export const UpdateMicrofrontendsTrustedIpsDeploymentType = {
All: "all",
AllExceptCustomDomains: "all_except_custom_domains",
Preview: "preview",
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
Production: "production",
};
export const UpdateMicrofrontendsTrustedIpsProtectionMode = {
Additional: "additional",
Exclusive: "exclusive",
};
export const UpdateMicrofrontendsFromProjectsPreset = {
AllCustom: "all-custom",
};
export const UpdateMicrofrontendsFromPreset = {
AllCustom: "all-custom",
};
export const UpdateMicrofrontendsToProjectsResponse200Preset = {
AllCustom: "all-custom",
};
export const UpdateMicrofrontendsToProjectsResponsePreset = {
AllCustom: "all-custom",
};
export const UpdateMicrofrontendsToProjectsPreset = {
AllCustom: "all-custom",
};
export const UpdateMicrofrontendsToPreset = {
AllCustom: "all-custom",
};
/**
* Whether the Vercel bot should automatically create GitHub deployments https://docs.github.com/en/rest/deployments/deployments#about-deployments NOTE: repository-dispatch events should be used instead
*/
export const UpdateMicrofrontendsCreateDeployments = {
Disabled: "disabled",
Enabled: "enabled",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAction = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
};
/** @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 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()),
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 UpdateMicrofrontendsTarget$inboundSchema = smartUnion([
z.array(UpdateMicrofrontendsTarget1$inboundSchema),
UpdateMicrofrontendsTarget2$inboundSchema,
]);
export function updateMicrofrontendsTargetFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTarget$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTarget' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsType);
/** @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 UpdateMicrofrontendsProjectsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONType);
/** @internal */
export const UpdateMicrofrontendsInternalContentHint$inboundSchema = z.object({
type: UpdateMicrofrontendsProjectsResponse200ApplicationJSONType$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()),
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 UpdateMicrofrontendsProjectsResponse200Type$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsResponse200Type);
/** @internal */
export const UpdateMicrofrontendsBranchMatcher$inboundSchema = z.object({
type: UpdateMicrofrontendsProjectsResponse200Type$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 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 UpdateMicrofrontendsCreator$inboundSchema = z.object({
email: types.string(),
githubLogin: types.optional(types.string()),
gitlabLogin: types.optional(types.string()),
uid: types.string(),
username: types.string(),
});
export function updateMicrofrontendsCreatorFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsCreator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCreator' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLatestDeployments$inboundSchema = z.object({
alias: types.optional(z.array(types.string())),
aliasAssigned: z.nullable(smartUnion([types.number(), types.boolean()]))
.optional(),
builds: types.optional(z.array(z.lazy(() => UpdateMicrofrontendsBuilds$inboundSchema))),
createdAt: types.number(),
createdIn: types.string(),
creator: types.nullable(z.lazy(() => UpdateMicrofrontendsCreator$inboundSchema)),
deploymentHostname: types.string(),
name: types.string(),
forced: types.optional(types.boolean()),
id: types.string(),
meta: types.optional(z.record(types.string())),
plan: types.string(),
private: types.boolean(),
readyState: types.string(),
requestedAt: types.optional(types.number()),
target: z.nullable(types.string()).optional(),
teamId: z.nullable(types.string()).optional(),
type: types.string(),
url: types.string(),
userId: 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 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(),
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),
]);
export function updateMicrofrontendsLinkFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsLink$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLink' 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 UpdateMicrofrontendsFunctionDefaultMemoryType$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsFunctionDefaultMemoryType);
/** @internal */
export const UpdateMicrofrontendsBuildMachineType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsBuildMachineType);
/** @internal */
export const UpdateMicrofrontendsBuildMachineSelection$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsBuildMachineSelection);
/** @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()),
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 UpdateMicrofrontendsRollingRelease$inboundSchema = z.object({
target: types.string(),
stages: z.nullable(z.array(z.lazy(() => UpdateMicrofrontendsStages$inboundSchema))).optional(),
canaryResponseHeader: types.optional(types.boolean()),
});
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);
/** @internal */
export const UpdateMicrofrontendsProjectsBuildMachineType$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsBuildMachineType);
/** @internal */
export const UpdateMicrofrontendsProjectsBuildMachineSelection$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsBuildMachineSelection);
/** @internal */
export const UpdateMicrofrontendsProjectsConfiguration$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsConfiguration);
/** @internal */
export const UpdateMicrofrontendsProjectsBuildQueue$inboundSchema = z.object({
configuration: types.optional(UpdateMicrofrontendsProjectsConfiguration$inboundSchema),
});
export function updateMicrofrontendsProjectsBuildQueueFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsBuildQueue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsBuildQueue' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsDefaultResourceConfig$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(UpdateMicrofrontendsProjectsFunctionDefaultMemoryType$inboundSchema),
functionZeroConfigFailover: types.optional(types.boolean()),
buildMachineType: types.optional(UpdateMicrofrontendsProjectsBuildMachineType$inboundSchema),
buildMachineSelection: types.optional(UpdateMicrofrontendsProjectsBuildMachineSelection$inboundSchema),
buildMachineElasticLastUpdated: types.optional(types.number()),
isNSNBDisabled: types.optional(types.boolean()),
buildQueue: types.optional(z.lazy(() => UpdateMicrofrontendsProjectsBuildQueue$inboundSchema)),
enableFunctionsBeta: types.optional(types.boolean()),
});
export function updateMicrofrontendsDefaultResourceConfigFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsDefaultResourceConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsDefaultResourceConfig' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsStaticIps$inboundSchema = z.object({
builds: types.boolean(),
enabled: types.boolean(),
regions: z.array(types.string()),
});
export function updateMicrofrontendsStaticIpsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsStaticIps$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsStaticIps' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsDeploymentType$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsDeploymentType);
/** @internal */
export const UpdateMicrofrontendsCve55182MigrationAppliedFrom$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsCve55182MigrationAppliedFrom);
/** @internal */
export const UpdateMicrofrontendsApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema = z.nativeEnum(UpdateMicrofrontendsApril2026SecurityIncidentMigrationAppliedFrom);
/** @internal */
export const UpdateMicrofrontendsSsoProtection$inboundSchema = z.object({
deploymentType: UpdateMicrofrontendsProjectsDeploymentType$inboundSchema,
cve55182MigrationAppliedFrom: z.nullable(UpdateMicrofrontendsCve55182MigrationAppliedFrom$inboundSchema).optional(),
april2026SecurityIncidentMigrationAppliedFrom: z.nullable(UpdateMicrofrontendsApril2026SecurityIncidentMigrationAppliedFrom$inboundSchema).optional(),
});
export function updateMicrofrontendsSsoProtectionFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsSsoProtection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSsoProtection' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsAliasAssigned$inboundSchema = smartUnion([types.number(), types.boolean()]);
export function updateMicrofrontendsProjectsAliasAssignedFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsAliasAssigned$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsAliasAssigned' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsBuilds$inboundSchema = z.object({
use: types.string(),
src: types.optional(types.string()),
dest: types.optional(types.string()),
});
export function updateMicrofrontendsProjectsBuildsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsBuilds$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsBuilds' from JSON`);
}
/** @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 UpdateMicrofrontendsTargets$inboundSchema = z.object({
alias: types.optional(z.array(types.string())),
aliasAssigned: z.nullable(smartUnion([types.number(), types.boolean()]))
.optional(),
builds: types.optional(z.array(z.lazy(() => UpdateMicrofrontendsProjectsBuilds$inboundSchema))),
createdAt: types.number(),
createdIn: types.string(),
creator: types.nullable(z.lazy(() => UpdateMicrofrontendsProjectsCreator$inboundSchema)),
deploymentHostname: types.string(),
name: types.string(),
forced: types.optional(types.boolean()),
id: types.string(),
meta: types.optional(z.record(types.string())),
plan: types.string(),
private: types.boolean(),
readyState: types.string(),
requestedAt: types.optional(types.number()),
target: z.nullable(types.string()).optional(),
teamId: z.nullable(types.string()).optional(),
type: types.string(),
url: types.string(),
userId: types.string(),
withCache: types.optional(types.boolean()),
});
export function updateMicrofrontendsTargetsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTargets$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTargets' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsPermissions$inboundSchema = z.object({
oauth2Connection: types.optional(z.array(ACLAction$inboundSchema)),
user: types.optional(z.array(ACLAction$inboundSchema)),
userConnection: types.optional(z.array(ACLAction$inboundSchema)),
userMfaConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
userPreference: types.optional(z.array(ACLAction$inboundSchema)),
userSudo: types.optional(z.array(ACLAction$inboundSchema)),
webAuthn: types.optional(z.array(ACLAction$inboundSchema)),
accessGroup: types.optional(z.array(ACLAction$inboundSchema)),
agent: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayRules: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayUsage: types.optional(z.array(ACLAction$inboundSchema)),
alerts: types.optional(z.array(ACLAction$inboundSchema)),
alertRules: types.optional(z.array(ACLAction$inboundSchema)),
aliasGlobal: types.optional(z.array(ACLAction$inboundSchema)),
analyticsSampling: types.optional(z.array(ACLAction$inboundSchema)),
analyticsUsage: types.optional(z.array(ACLAction$inboundSchema)),
apiKey: types.optional(z.array(ACLAction$inboundSchema)),
apiKeyAiGateway: types.optional(z.array(ACLAction$inboundSchema)),
apiKeyOwnedBySelf: types.optional(z.array(ACLAction$inboundSchema)),
oauth2Application: types.optional(z.array(ACLAction$inboundSchema)),
vercelAppInstallation: types.optional(z.array(ACLAction$inboundSchema)),
vercelAppInstallationRequest: types.optional(z.array(ACLAction$inboundSchema)),
auditLog: types.optional(z.array(ACLAction$inboundSchema)),
billingAddress: types.optional(z.array(ACLAction$inboundSchema)),
billingInformation: types.optional(z.array(ACLAction$inboundSchema)),
billingInvoice: types.optional(z.array(ACLAction$inboundSchema)),
billingInvoiceEmailRecipient: types.optional(z.array(ACLAction$inboundSchema)),
billingInvoiceLanguage: types.optional(z.array(ACLAction$inboundSchema)),
billingPlan: types.optional(z.array(ACLAction$inboundSchema)),
billingPurchaseOrder: types.optional(z.array(ACLAction$inboundSchema)),
billingRefund: types.optional(z.array(ACLAction$inboundSchema)),
billingTaxId: types.optional(z.array(ACLAction$inboundSchema)),
blob: types.optional(z.array(ACLAction$inboundSchema)),
blobStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
budget: types.optional(z.array(ACLAction$inboundSchema)),
cacheArtifact: types.optional(z.array(ACLAction$inboundSchema)),
cacheArtifactUsageEvent: types.optional(z.array(ACLAction$inboundSchema)),
codeChecks: types.optional(z.array(ACLAction$inboundSchema)),
ciInvocations: types.optional(z.array(ACLAction$inboundSchema)),
ciLogs: types.optional(z.array(ACLAction$inboundSchema)),
concurrentBuilds: types.optional(z.array(ACLAction$inboundSchema)),
connect: types.optional(z.array(ACLAction$inboundSchema)),
connectConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
connexClient: types.optional(z.array(ACLAction$inboundSchema)),
connexClientProject: types.optional(z.array(ACLAction$inboundSchema)),
connexToken: types.optional(z.array(ACLAction$inboundSchema)),
buildMachineDefault: types.optional(z.array(ACLAction$inboundSchema)),
dataCacheBillingSettings: types.optional(z.array(ACLAction$inboundSchema)),
defaultDeploymentProtection: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPolicy: types.optional(z.array(ACLAction$inboundSchema)),
domain: types.optional(z.array(ACLAction$inboundSchema)),
domainAcceptDelegation: types.optional(z.array(ACLAction$inboundSchema)),
domainAuthCodes: types.optional(z.array(ACLAction$inboundSchema)),
domainCertificate: types.optional(z.array(ACLAction$inboundSchema)),
domainCheckConfig: types.optional(z.array(ACLAction$inboundSchema)),
domainMove: types.optional(z.array(ACLAction$inboundSchema)),
domainPurchase: types.optional(z.array(ACLAction$inboundSchema)),
domainRecord: types.optional(z.array(ACLAction$inboundSchema)),
domainTransferIn: types.optional(z.array(ACLAction$inboundSchema)),
drain: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfig: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigItem: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigSchema: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigToken: types.optional(z.array(ACLAction$inboundSchema)),
endpointVerification: types.optional(z.array(ACLAction$inboundSchema)),
event: types.optional(z.array(ACLAction$inboundSchema)),
fileUpload: types.optional(z.array(ACLAction$inboundSchema)),
flagsExplorerSubscription: types.optional(z.array(ACLAction$inboundSchema)),
gitRepository: types.optional(z.array(ACLAction$inboundSchema)),
imageOptimizationNewPrice: types.optional(z.array(ACLAction$inboundSchema)),
integration: types.optional(z.array(ACLAction$inboundSchema)),
integrationAccount: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfigurationProjects: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfigurationRole: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfigurationTransfer: types.optional(z.array(ACLAction$inboundSchema)),
integrationDeploymentAction: types.optional(z.array(ACLAction$inboundSchema)),
integrationEvent: types.optional(z.array(ACLAction$inboundSchema)),
integrationLog: types.optional(z.array(ACLAction$inboundSchema)),
integrationResource: types.optional(z.array(ACLAction$inboundSchema)),
integrationResourceData: types.optional(z.array(ACLAction$inboundSchema)),
integrationResourceReplCommand: types.optional(z.array(ACLAction$inboundSchema)),
integrationResourceSecrets: types.optional(z.array(ACLAction$inboundSchema)),
integrationSSOSession: types.optional(z.array(ACLAction$inboundSchema)),
integrationStrict: types.optional(z.array(ACLAction$inboundSchema)),
integrationStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
integrationVercelConfigurationOverride: types.optional(z.array(ACLAction$inboundSchema)),
integrationPullRequest: types.optional(z.array(ACLAction$inboundSchema)),
ipBlocking: types.optional(z.array(ACLAction$inboundSchema)),
jobGlobal: types.optional(z.array(ACLAction$inboundSchema)),
kmsIssuer: types.optional(z.array(ACLAction$inboundSchema)),
kmsProjectGrant: types.optional(z.array(ACLAction$inboundSchema)),
logDrain: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceBillingData: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceExperimentationEdgeConfigData: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceExperimentationItem: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceInstallationMember: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceInvoice: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceSettings: types.optional(z.array(ACLAction$inboundSchema)),
Monitoring: types.optional(z.array(ACLAction$inboundSchema)),
monitoringAlert: types.optional(z.array(ACLAction$inboundSchema)),
monitoringChart: types.optional(z.array(ACLAction$inboundSchema)),
monitoringQuery: types.optional(z.array(ACLAction$inboundSchema)),
monitoringSettings: types.optional(z.array(ACLAction$inboundSchema)),
notificationCustomerBudget: types.optional(z.array(ACLAction$inboundSchema)),
notificationDeploymentFailed: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainExpire: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainMoved: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainPurchase: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainRenewal: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainTransfer: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainUnverified: types.optional(z.array(ACLAction$inboundSchema)),
NotificationMonitoringAlert: types.optional(z.array(ACLAction$inboundSchema)),
notificationPaymentFailed: types.optional(z.array(ACLAction$inboundSchema)),
notificationPreferences: types.optional(z.array(ACLAction$inboundSchema)),
notificationStatementOfReasons: types.optional(z.array(ACLAction$inboundSchema)),
notificationUsageAlert: types.optional(z.array(ACLAction$inboundSchema)),
oidcFederationPolicy: types.optional(z.array(ACLAction$inboundSchema)),
observabilityConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
observabilityFunnel: types.optional(z.array(ACLAction$inboundSchema)),
observabilityNotebook: types.optional(z.array(ACLAction$inboundSchema)),
openTelemetryEndpoint: types.optional(z.array(ACLAction$inboundSchema)),
ownEvent: types.optional(z.array(ACLAction$inboundSchema)),
organization: types.optional(z.array(ACLAction$inboundSchema)),
organizationDomain: types.optional(z.array(ACLAction$inboundSchema)),
organizationTeam: types.optional(z.array(ACLAction$inboundSchema)),
passwordProtectionInvoiceItem: types.optional(z.array(ACLAction$inboundSchema)),
paymentMethod: types.optional(z.array(ACLAction$inboundSchema)),
permissions: types.optional(z.array(ACLAction$inboundSchema)),
postgres: types.optional(z.array(ACLAction$inboundSchema)),
postgresStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
previewDeploymentSuffix: types.optional(z.array(ACLAction$inboundSchema)),
privateCloudAccount: types.optional(z.array(ACLAction$inboundSchema)),
projectTransferIn: types.optional(z.array(ACLAction$inboundSchema)),
proTrialOnboarding: types.optional(z.array(ACLAction$inboundSchema)),
rateLimit: types.optional(z.array(ACLAction$inboundSchema)),
redis: types.optional(z.array(ACLAction$inboundSchema)),
redisStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
remoteCaching: types.optional(z.array(ACLAction$inboundSchema)),
repository: types.optional(z.array(ACLAction$inboundSchema)),
samlConfig: types.optional(z.array(ACLAction$inboundSchema)),
secret: types.optional(z.array(ACLAction$inboundSchema)),
sensitiveEnvironmentVariablePolicy: types.optional(z.array(ACLAction$inboundSchema)),
sharedEnvVars: types.optional(z.array(ACLAction$inboundSchema)),
sharedEnvVarsProduction: types.optional(z.array(ACLAction$inboundSchema)),
space: types.optional(z.array(ACLAction$inboundSchema)),
spaceRun: types.optional(z.array(ACLAction$inboundSchema)),
storeIsLocked: types.optional(z.array(ACLAction$inboundSchema)),
storeTokenSetSensitive: types.optional(z.array(ACLAction$inboundSchema)),
storeTransfer: types.optional(z.array(ACLAction$inboundSchema)),
supportCase: types.optional(z.array(ACLAction$inboundSchema)),
supportCaseComment: types.optional(z.array(ACLAction$inboundSchema)),
team: types.optional(z.array(ACLAction$inboundSchema)),
teamAccessRequest: types.optional(z.array(ACLAction$inboundSchema)),
teamFellowMembership: types.optional(z.array(ACLAction$inboundSchema)),
teamGitExclusivity: types.optional(z.array(ACLAction$inboundSchema)),
teamInvite: types.optional(z.array(ACLAction$inboundSchema)),
teamInviteCode: types.optional(z.array(ACLAction$inboundSchema)),
teamInviteLink: types.optional(z.array(ACLAction$inboundSchema)),
teamJoin: types.optional(z.array(ACLAction$inboundSchema)),
teamMemberMfaStatus: types.optional(z.array(ACLAction$inboundSchema)),
teamMicrofrontends: types.optional(z.array(ACLAction$inboundSchema)),
teamOwnMembership: types.optional(z.array(ACLAction$inboundSchema)),
teamOwnMembershipDisconnectSAML: types.optional(z.array(ACLAction$inboundSchema)),
teamSudo: types.optional(z.array(ACLAction$inboundSchema)),
teamTokenInvalidation: types.optional(z.array(ACLAction$inboundSchema)),
token: types.optional(z.array(ACLAction$inboundSchema)),
toolbarComment: types.optional(z.array(ACLAction$inboundSchema)),
usage: types.optional(z.array(ACLAction$inboundSchema)),
usageCycle: types.optional(z.array(ACLAction$inboundSchema)),
vcrRepository: types.optional(z.array(ACLAction$inboundSchema)),
vercelRun: types.optional(z.array(ACLAction$inboundSchema)),
vpcPeeringConnection: types.optional(z.array(ACLAction$inboundSchema)),
webAnalyticsPlan: types.optional(z.array(ACLAction$inboundSchema)),
webhook: types.optional(z.array(ACLAction$inboundSchema)),
"webhook-event": types.optional(z.array(ACLAction$inboundSchema)),
aliasProject: types.optional(z.array(ACLAction$inboundSchema)),
aliasProtectionBypass: types.optional(z.array(ACLAction$inboundSchema)),
bulkRedirects: types.optional(z.array(ACLAction$inboundSchema)),
buildMachine: types.optional(z.array(ACLAction$inboundSchema)),
connectConfigurationLink: types.optional(z.array(ACLAction$inboundSchema)),
dataCacheNamespace: types.optional(z.array(ACLAction$inboundSchema)),
deployment: types.optional(z.array(ACLAction$inboundSchema)),
deploymentBuildLogs: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheck: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheckPreview: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheckReRunFromProductionBranch: types.optional(z.array(ACLAction$inboundSchema)),
deploymentProductionGit: types.optional(z.array(ACLAction$inboundSchema)),
deploymentV0: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPreview: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPrivate: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPromote: types.optional(z.array(ACLAction$inboundSchema)),
deploymentRollback: types.optional(z.array(ACLAction$inboundSchema)),
edgeCacheNamespace: types.optional(z.array(ACLAction$inboundSchema)),
environments: types.optional(z.array(ACLAction$inboundSchema)),
job: types.optional(z.array(ACLAction$inboundSchema)),
logs: types.optional(z.array(ACLAction$inboundSchema)),
logsPreset: types.optional(z.array(ACLAction$inboundSchema)),
observabilityData: types.optional(z.array(ACLAction$inboundSchema)),
onDemandBuild: types.optional(z.array(ACLAction$inboundSchema)),
onDemandConcurrency: types.optional(z.array(ACLAction$inboundSchema)),
optionsAllowlist: types.optional(z.array(ACLAction$inboundSchema)),
passwordProtection: types.optional(z.array(ACLAction$inboundSchema)),
privateLinkEndpoint: types.optional(z.array(ACLAction$inboundSchema)),
productionAliasProtectionBypass: types.optional(z.array(ACLAction$inboundSchema)),
project: types.optional(z.array(ACLAction$inboundSchema)),
projectAccessGroup: types.optional(z.array(ACLAction$inboundSchema)),
projectAnalyticsSampling: types.optional(z.array(ACLAction$inboundSchema)),
projectAnalyticsUsage: types.optional(z.array(ACLAction$inboundSchema)),
projectCheck: types.optional(z.array(ACLAction$inboundSchema)),
projectCheckRun: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentExpiration: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentHook: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentProtectionStrict: types.optional(z.array(ACLAction$inboundSchema)),
projectDomain: types.optional(z.array(ACLAction$inboundSchema)),
projectDomainCheckConfig: types.optional(z.array(ACLAction$inboundSchema)),
projectDomainMove: types.optional(z.array(ACLAction$inboundSchema)),
projectEvent: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVars: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVarsProduction: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVarsUnownedByIntegration: types.optional(z.array(ACLAction$inboundSchema)),
projectFlags: types.optional(z.array(ACLAction$inboundSchema)),
projectFlagsProduction: types.optional(z.array(ACLAction$inboundSchema)),
projectFlagsSdkKey: types.optional(z.array(ACLAction$inboundSchema)),
projectFromV0: types.optional(z.array(ACLAction$inboundSchema)),
projectId: types.optional(z.array(ACLAction$inboundSchema)),
projectIntegrationConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
projectLink: types.optional(z.array(ACLAction$inboundSchema)),
projectMember: types.optional(z.array(ACLAction$inboundSchema)),
projectMonitoring: types.optional(z.array(ACLAction$inboundSchema)),
projectOIDCToken: types.optional(z.array(ACLAction$inboundSchema)),
projectPermissions: types.optional(z.array(ACLAction$inboundSchema)),
projectProductionBranch: types.optional(z.array(ACLAction$inboundSchema)),
projectProtectionBypass: types.optional(z.array(ACLAction$inboundSchema)),
projectRollingRelease: types.optional(z.array(ACLAction$inboundSchema)),
projectRoutes: types.optional(z.array(ACLAction$inboundSchema)),
projectSupportCase: types.optional(z.array(ACLAction$inboundSchema)),
projectSupportCaseComment: types.optional(z.array(ACLAction$inboundSchema)),
projectTier: types.optional(z.array(ACLAction$inboundSchema)),
projectTransfer: types.optional(z.array(ACLAction$inboundSchema)),
projectTransferOut: types.optional(z.array(ACLAction$inboundSchema)),
projectUsage: types.optional(z.array(ACLAction$inboundSchema)),
pageIntegrity: types.optional(z.array(ACLAction$inboundSchema)),
seawallConfig: types.optional(z.array(ACLAction$inboundSchema)),
securityPlusConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
shareableLinkStrict: types.optional(z.array(ACLAction$inboundSchema)),
sharedEnvVarConnection: types.optional(z.array(ACLAction$inboundSchema)),
skewProtection: types.optional(z.array(ACLAction$inboundSchema)),
analytics: types.optional(z.array(ACLAction$inboundSchema)),
trustedIps: types.optional(z.array(ACLAction$inboundSchema)),
trustedSources: types.optional(z.array(ACLAction$inboundSchema)),
v0Chat: types.optional(z.array(ACLAction$inboundSchema)),
webAnalytics: types.optional(z.array(ACLAction$inboundSchema)),
}).transform((v) => {
return remap$(v, {
"Monitoring": "monitoring",
"NotificationMonitoringAlert": "notificationMonitoringAlert",
"webhook-event": "webhookEvent",
"projectFlagsSdkKey": "projectFlagsSDKKey",
});
});
export function updateMicrofrontendsPermissionsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsPermissions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsPermissions' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLastRollbackTarget$inboundSchema = z.object({});
export function updateMicrofrontendsLastRollbackTargetFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsLastRollbackTarget$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLastRollbackTarget' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsJobStatus$inboundSchema = z.nativeEnum(UpdateMicrofrontendsJobStatus);
/** @internal */
export const UpdateMicrofrontendsProjectsResponseType$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsResponseType);
/** @internal */
export const UpdateMicrofrontendsLastAliasRequest$inboundSchema = z.object({
fromDeploymentId: types.nullable(types.string()),
toDeploymentId: types.string(),
fromRollingReleaseId: types.optional(types.string()),
jobStatus: UpdateMicrofrontendsJobStatus$inboundSchema,
requestedAt: types.number(),
type: UpdateMicrofrontendsProjectsResponseType$inboundSchema,
});
export function updateMicrofrontendsLastAliasRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsLastAliasRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLastAliasRequest' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProtectionBypass2$inboundSchema = z.object({
createdAt: types.number(),
createdBy: types.string(),
scope: types.literal("automation-bypass"),
isEnvVar: types.optional(types.boolean()),
note: types.optional(types.string()),
});
export function updateMicrofrontendsProtectionBypass2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProtectionBypass2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProtectionBypass2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProtectionBypass1$inboundSchema = z.object({
createdAt: types.number(),
createdBy: types.string(),
scope: types.literal("integration-automation-bypass"),
integrationId: types.string(),
configurationId: types.string(),
});
export function updateMicrofrontendsProtectionBypass1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProtectionBypass1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProtectionBypass1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProtectionBypass$inboundSchema = z.union([
z.lazy(() => UpdateMicrofrontendsProtectionBypass1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsProtectionBypass2$inboundSchema),
]);
export function updateMicrofrontendsProtectionBypassFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProtectionBypass$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProtectionBypass' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTrustedIpsProjectsDeploymentType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsTrustedIpsProjectsDeploymentType);
/** @internal */
export const UpdateMicrofrontendsTrustedIps2$inboundSchema = z.object({
deploymentType: UpdateMicrofrontendsTrustedIpsProjectsDeploymentType$inboundSchema,
});
export function updateMicrofrontendsTrustedIps2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTrustedIps2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTrustedIps2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTrustedIpsDeploymentType$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsTrustedIpsDeploymentType);
/** @internal */
export const UpdateMicrofrontendsTrustedIpsAddresses$inboundSchema = z.object({
value: types.string(),
note: types.optional(types.string()),
});
export function updateMicrofrontendsTrustedIpsAddressesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTrustedIpsAddresses$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTrustedIpsAddresses' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTrustedIpsProtectionMode$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsTrustedIpsProtectionMode);
/** @internal */
export const UpdateMicrofrontendsTrustedIps1$inboundSchema = z.object({
deploymentType: UpdateMicrofrontendsTrustedIpsDeploymentType$inboundSchema,
addresses: z.array(z.lazy(() => UpdateMicrofrontendsTrustedIpsAddresses$inboundSchema)),
protectionMode: UpdateMicrofrontendsTrustedIpsProtectionMode$inboundSchema,
});
export function updateMicrofrontendsTrustedIps1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTrustedIps1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTrustedIps1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTrustedIps$inboundSchema = smartUnion([
z.lazy(() => UpdateMicrofrontendsTrustedIps1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsTrustedIps2$inboundSchema),
]);
export function updateMicrofrontendsTrustedIpsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTrustedIps$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTrustedIps' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsFromProjectsPreset$inboundSchema = z.nativeEnum(UpdateMicrofrontendsFromProjectsPreset);
/** @internal */
export const UpdateMicrofrontendsFrom2$inboundSchema = z.object({
slugs: types.optional(z.array(types.string())),
preset: UpdateMicrofrontendsFromProjectsPreset$inboundSchema,
});
export function updateMicrofrontendsFrom2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsFrom2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsFrom2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsFromPreset$inboundSchema = z.nativeEnum(UpdateMicrofrontendsFromPreset);
/** @internal */
export const UpdateMicrofrontendsFrom1$inboundSchema = z.object({
slugs: z.array(types.string()),
preset: types.optional(UpdateMicrofrontendsFromPreset$inboundSchema),
});
export function updateMicrofrontendsFrom1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsFrom1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsFrom1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsFrom$inboundSchema = smartUnion([
z.lazy(() => UpdateMicrofrontendsFrom1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsFrom2$inboundSchema),
]);
export function updateMicrofrontendsFromFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsFrom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsFrom' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsToProjectsResponse200Preset$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsToProjectsResponse200Preset);
/** @internal */
export const UpdateMicrofrontendsToProjects2$inboundSchema = z.object({
slugs: types.optional(z.array(types.string())),
preset: UpdateMicrofrontendsToProjectsResponse200Preset$inboundSchema,
});
export function updateMicrofrontendsToProjects2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsToProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsToProjects2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsToProjectsResponsePreset$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsToProjectsResponsePreset);
/** @internal */
export const UpdateMicrofrontendsToProjects1$inboundSchema = z.object({
slugs: z.array(types.string()),
preset: types.optional(UpdateMicrofrontendsToProjectsResponsePreset$inboundSchema),
});
export function updateMicrofrontendsToProjects1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsToProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsToProjects1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsTo$inboundSchema = smartUnion([
z.lazy(() => UpdateMicrofrontendsToProjects1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsToProjects2$inboundSchema),
]);
export function updateMicrofrontendsProjectsToFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsTo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsTo' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCustomAllow$inboundSchema = z.object({
from: smartUnion([
z.lazy(() => UpdateMicrofrontendsFrom1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsFrom2$inboundSchema),
]),
to: smartUnion([
z.lazy(() => UpdateMicrofrontendsToProjects1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsToProjects2$inboundSchema),
]),
});
export function updateMicrofrontendsCustomAllowFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsCustomAllow$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsCustomAllow' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjects$inboundSchema = z.object({
label: types.optional(types.string()),
customAllow: types.optional(z.array(z.lazy(() => UpdateMicrofrontendsCustomAllow$inboundSchema))),
});
export function updateMicrofrontendsProjectsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjects$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjects' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsToProjectsPreset$inboundSchema = z.nativeEnum(UpdateMicrofrontendsToProjectsPreset);
/** @internal */
export const UpdateMicrofrontendsTo2$inboundSchema = z.object({
slugs: types.optional(z.array(types.string())),
preset: UpdateMicrofrontendsToProjectsPreset$inboundSchema,
});
export function updateMicrofrontendsTo2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTo2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTo2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsToPreset$inboundSchema = z.nativeEnum(UpdateMicrofrontendsToPreset);
/** @internal */
export const UpdateMicrofrontendsTo1$inboundSchema = z.object({
slugs: z.array(types.string()),
preset: types.optional(UpdateMicrofrontendsToPreset$inboundSchema),
});
export function updateMicrofrontendsTo1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTo1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTo1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTo$inboundSchema = smartUnion([
z.lazy(() => UpdateMicrofrontendsTo1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsTo2$inboundSchema),
]);
export function updateMicrofrontendsToFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTo' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsOidcProviders$inboundSchema = z.object({
to: smartUnion([
z.lazy(() => UpdateMicrofrontendsTo1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsTo2$inboundSchema),
]),
label: types.optional(types.string()),
claims: z.record(z.array(types.string())),
});
export function updateMicrofrontendsOidcProvidersFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsOidcProviders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsOidcProviders' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTrustedSources$inboundSchema = z.object({
projects: types.optional(z.record(z.lazy(() => UpdateMicrofrontendsProjects$inboundSchema))),
oidcProviders: types.optional(z.record(z.array(z.lazy(() => UpdateMicrofrontendsOidcProviders$inboundSchema)))),
});
export function updateMicrofrontendsTrustedSourcesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTrustedSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTrustedSources' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsGitComments$inboundSchema = z.object({
onPullRequest: types.boolean(),
onCommit: types.boolean(),
});
export function updateMicrofrontendsGitCommentsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsGitComments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsGitComments' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsCreateDeployments$inboundSchema = z.nativeEnum(UpdateMicrofrontendsCreateDeployments);
/** @internal */
export const UpdateMicrofrontendsConsolidatedGitCommitStatus$inboundSchema = z.object({
enabled: types.boolean(),
propagateFailures: types.boolean(),
});
export function updateMicrofrontendsConsolidatedGitCommitStatusFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsConsolidatedGitCommitStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsConsolidatedGitCommitStatus' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsGitProviderOptions$inboundSchema = z.object({
createDeployments: UpdateMicrofrontendsCreateDeployments$inboundSchema,
disableRepositoryDispatchEvents: types.optional(types.boolean()),
requireVerifiedCommits: types.optional(types.boolean()),
gitCommitStatus: types.optional(types.boolean()),
consolidatedGitCommitStatus: types.optional(z.lazy(() => UpdateMicrofrontendsConsolidatedGitCommitStatus$inboundSchema)),
});
export function updateMicrofrontendsGitProviderOptionsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsGitProviderOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsGitProviderOptions' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsWebAnalytics$inboundSchema = z.object({
id: types.string(),
disabledAt: types.optional(types.number()),
canceledAt: types.optional(types.number()),
enabledAt: types.optional(types.number()),
hasData: types.optional(types.literal(true)),
});
export function updateMicrofrontendsWebAnalyticsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsWebAnalytics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsWebAnalytics' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAction);
/** @internal */
export const UpdateMicrofrontendsVercelRuleset$inboundSchema = z.object({
active: types.boolean(),
action: types.optional(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema),
});
export function updateMicrofrontendsVercelRulesetFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsVercelRuleset$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsVercelRuleset' from JSON`);
}
//# sourceMappingURL=updatemicrofrontendsvercelruleset.js.map