@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,684 lines • 95.1 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";
import { UpdateMicrofrontendsProjectsFunctionDefaultMemoryType$inboundSchema, } from "./updatemicrofrontendsprojectsfunctiondefaultmemorytype.js";
export const UpdateMicrofrontendsProjectsBuildMachineType = {
Basic: "basic",
Enhanced: "enhanced",
Standard: "standard",
Turbo: "turbo",
};
export const UpdateMicrofrontendsProjectsBuildMachineSelection = {
Elastic: "elastic",
Fixed: "fixed",
};
export const UpdateMicrofrontendsProjectsBuildMachineElasticReason = {
BasicFloor: "basic-floor",
BuildTimeoutFailure: "build-timeout-failure",
EnospcFailure: "enospc-failure",
EnterpriseFloor: "enterprise-floor",
HighPeakDisk: "high-peak-disk",
HighPeakMemory: "high-peak-memory",
LongBuildDuration: "long-build-duration",
OomFailure: "oom-failure",
ShortBuildDuration: "short-build-duration",
SustainedHighCpu: "sustained-high-cpu",
};
export const 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",
};
/**
* The type of matching to perform
*/
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyTargetsType = {
EndsWith: "endsWith",
Equals: "equals",
StartsWith: "startsWith",
};
export const UpdateMicrofrontendsProjectsChecksConclusion = {
Canceled: "canceled",
Failed: "failed",
Skipped: "skipped",
Succeeded: "succeeded",
};
export const UpdateMicrofrontendsProjectsChecksState = {
Completed: "completed",
Registered: "registered",
Running: "running",
};
export const UpdateMicrofrontendsProjectsPlan = {
Enterprise: "enterprise",
Hobby: "hobby",
Pro: "pro",
};
export const UpdateMicrofrontendsProjectsReadyState = {
Blocked: "BLOCKED",
Building: "BUILDING",
Canceled: "CANCELED",
Error: "ERROR",
Initializing: "INITIALIZING",
Queued: "QUEUED",
Ready: "READY",
};
export const UpdateMicrofrontendsProjectsReadySubstate = {
Promoted: "PROMOTED",
Rolling: "ROLLING",
Staged: "STAGED",
};
export const UpdateMicrofrontendsProjectsResponse200Type = {
Lambdas: "LAMBDAS",
};
export const UpdateMicrofrontendsJobStatus = {
Failed: "failed",
InProgress: "in-progress",
Pending: "pending",
Skipped: "skipped",
Succeeded: "succeeded",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONType = {
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 UpdateMicrofrontendsProjectsAction = {
Allow: "allow",
Bypass: "bypass",
Challenge: "challenge",
Deny: "deny",
Log: "log",
RateLimit: "rate_limit",
Redirect: "redirect",
};
export const UpdateMicrofrontendsAlgo = {
FixedWindow: "fixed_window",
TokenBucket: "token_bucket",
};
export const UpdateMicrofrontendsLogHeadersProjects2 = {
Wildcard: "*",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAction = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
};
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityAction = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
};
export const UpdateMicrofrontendsLogHeaders2 = {
Wildcard: "*",
};
/**
* - team: `https://oidc.vercel.com/[team_slug]` - global: `https://oidc.vercel.com`
*/
export const UpdateMicrofrontendsIssuerMode = {
Global: "global",
Team: "team",
};
export const UpdateMicrofrontendsSourcesProvider = {
Bitbucket: "bitbucket",
Github: "github",
};
export const UpdateMicrofrontendsEnvironmentsTarget = {
Preview: "preview",
Production: "production",
};
/**
* Customer-configurable deployment sources. Every deploy classifies to exactly one. JSON schema in `packages/deployment-policy/schemas/body.ts` enumerates exactly these values. - `'git'` — git provider webhook. - `'cli'` — Vercel CLI (legacy classic-token CLI and SIWV CLI both). - `'rest-api'` — direct user/team-token REST upload. Does NOT cover deploy hooks, Marketplace integrations, or first-party app tokens. - `'deploy-hook'` — project deploy-hook URL. The URL is the credential. - `'integration'` — third-party Marketplace actor: Marketplace integration token, user-delegated OAuth from a Marketplace app, or an unrecognized third-party Vercel App. First-party Vercel Apps are never `'integration'`. - `'v0'` — the v0 product surface (entitlement-gated). v0 deploys through the CLI under the hood, but classifies as its own source so a team can allow or deny v0 independently of `'cli'`. First-party Vercel apps (Toolbar, etc.) classify as `'first-party'` — see `ClassifiedSource` in `./checks`. They're not in this union because they aren't customer-configurable; they bypass `checkDeploymentSources` entirely. v0 is intentionally NOT among them: like the CLI, it's a real product surface and is policy-controllable.
*/
export const UpdateMicrofrontendsProjectsSources = {
Cli: "cli",
DeployHook: "deploy-hook",
Git: "git",
Integration: "integration",
RestApi: "rest-api",
V0: "v0",
};
export const UpdateMicrofrontendsEnvironmentsProjectsTarget = {
Preview: "preview",
Production: "production",
};
export const UpdateMicrofrontendsTier = {
Advanced: "advanced",
Critical: "critical",
Priority: "priority",
};
/**
* Billing mode. Always 'flat' for flat-rate projects.
*/
export const UpdateMicrofrontendsKind = {
Flat: "flat",
};
export const UpdateMicrofrontendsProjectsResponseAction = {
Blocked: "blocked",
};
export const UpdateMicrofrontendsHasProjectsKey = {
XVercelIpCountry: "x-vercel-ip-country",
};
export const UpdateMicrofrontendsRouteProjectsAction = {
BlockLegalCwc: "block_legal_cwc",
};
export const UpdateMicrofrontendsHasProjectsResponseKey = {
XVercelIpCountry: "x-vercel-ip-country",
};
export const UpdateMicrofrontendsRouteAction = {
BlockLegalCwc: "block_legal_cwc",
};
export const UpdateMicrofrontendsProjectsResponse200Action = {
AddDeploymentInterstitial: "add-deployment-interstitial",
AddProjectInterstitial: "add-project-interstitial",
RemoveDeploymentInterstitial: "remove-deployment-interstitial",
RemoveProjectInterstitial: "remove-project-interstitial",
};
export const UpdateMicrofrontendsHasKey = {
XVercelIpCountry: "x-vercel-ip-country",
};
export const UpdateMicrofrontendsInternalRoutesAction = {
BlockLegalCwc: "block_legal_cwc",
};
/** @internal */
export const UpdateMicrofrontendsProjectsBuildMachineType$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsBuildMachineType);
/** @internal */
export const UpdateMicrofrontendsProjectsBuildMachineSelection$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsBuildMachineSelection);
/** @internal */
export const UpdateMicrofrontendsProjectsBuildMachineElasticReason$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsBuildMachineElasticReason);
/** @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()),
buildMachineElasticReason: types.optional(UpdateMicrofrontendsProjectsBuildMachineElasticReason$inboundSchema),
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 UpdateMicrofrontendsProjectsAliasError$inboundSchema = z.object({
code: types.string(),
message: types.string(),
});
export function updateMicrofrontendsProjectsAliasErrorFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsAliasError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsAliasError' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyTargetsType);
/** @internal */
export const UpdateMicrofrontendsProjectsResponseBranchMatcher$inboundSchema = z.object({
type: UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema,
pattern: types.string(),
});
export function updateMicrofrontendsProjectsResponseBranchMatcherFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsResponseBranchMatcher$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsResponseBranchMatcher' 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 UpdateMicrofrontendsProjectsChecksConclusion$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsChecksConclusion);
/** @internal */
export const UpdateMicrofrontendsProjectsChecksState$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsChecksState);
/** @internal */
export const UpdateMicrofrontendsProjectsResponseCreator$inboundSchema = z.object({
email: types.string(),
githubLogin: types.optional(types.string()),
gitlabLogin: types.optional(types.string()),
uid: types.string(),
username: types.string(),
});
export function updateMicrofrontendsProjectsResponseCreatorFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsResponseCreator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsResponseCreator' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsOidcTokenClaims$inboundSchema = z.object({
iss: types.string(),
sub: types.string(),
scope: types.string(),
aud: types.string(),
owner: types.string(),
owner_id: types.string(),
project: types.string(),
project_id: types.string(),
environment: types.string(),
custom_environment_id: types.optional(types.string()),
mfe_group_ids: types.optional(z.array(types.string())),
plan: types.optional(types.string()),
}).transform((v) => {
return remap$(v, {
"owner_id": "ownerId",
"project_id": "projectId",
"custom_environment_id": "customEnvironmentId",
"mfe_group_ids": "mfeGroupIds",
});
});
export function updateMicrofrontendsProjectsOidcTokenClaimsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsOidcTokenClaims$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsOidcTokenClaims' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsPlan$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsPlan);
/** @internal */
export const UpdateMicrofrontendsProjectsReadyState$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsReadyState);
/** @internal */
export const UpdateMicrofrontendsProjectsReadySubstate$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsReadySubstate);
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200Type$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsResponse200Type);
/** @internal */
export const UpdateMicrofrontendsTargets$inboundSchema = z.object({
id: types.string(),
alias: types.optional(z.array(types.string())),
aliasAssigned: z.nullable(smartUnion([types.number(), types.boolean()]))
.optional(),
aliasError: z.nullable(z.lazy(() => UpdateMicrofrontendsProjectsAliasError$inboundSchema)).optional(),
aliasFinal: z.nullable(types.string()).optional(),
automaticAliases: types.optional(z.array(types.string())),
branchMatcher: types.optional(z.lazy(() => UpdateMicrofrontendsProjectsResponseBranchMatcher$inboundSchema)),
buildingAt: types.optional(types.number()),
builds: types.optional(z.array(z.lazy(() => UpdateMicrofrontendsProjectsBuilds$inboundSchema))),
checksConclusion: types.optional(UpdateMicrofrontendsProjectsChecksConclusion$inboundSchema),
checksState: types.optional(UpdateMicrofrontendsProjectsChecksState$inboundSchema),
connectBuildsEnabled: types.optional(types.boolean()),
connectConfigurationId: types.optional(types.string()),
createdAt: types.number(),
createdIn: types.string(),
creator: types.nullable(z.lazy(() => UpdateMicrofrontendsProjectsResponseCreator$inboundSchema)),
deletedAt: types.optional(types.number()),
deploymentHostname: types.string(),
forced: types.optional(types.boolean()),
name: types.string(),
meta: types.optional(z.record(types.string())),
monorepoManager: z.nullable(types.string()).optional(),
oidcTokenClaims: types.optional(z.lazy(() => UpdateMicrofrontendsProjectsOidcTokenClaims$inboundSchema)),
plan: UpdateMicrofrontendsProjectsPlan$inboundSchema,
previewCommentsEnabled: types.optional(types.boolean()),
private: types.boolean(),
readyAt: types.optional(types.number()),
readyState: UpdateMicrofrontendsProjectsReadyState$inboundSchema,
readySubstate: types.optional(UpdateMicrofrontendsProjectsReadySubstate$inboundSchema),
requestedAt: types.optional(types.number()),
target: z.nullable(types.string()).optional(),
teamId: z.nullable(types.string()).optional(),
type: UpdateMicrofrontendsProjectsResponse200Type$inboundSchema,
url: types.string(),
userId: types.optional(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)),
aiGatewayApiKey: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayApiKeyBypassAll: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayApiKeyOwnedBySelf: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayApiKeySpendAttribution: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayApiKeyZdrExemption: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayBudget: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayCredits: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayPrivateModels: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayGuardrails: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayRules: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewaySettings: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayTranscripts: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayTranscriptsSettings: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayUsage: types.optional(z.array(ACLAction$inboundSchema)),
aiGatewayVirtualModelConfigs: types.optional(z.array(ACLAction$inboundSchema)),
alerts: types.optional(z.array(ACLAction$inboundSchema)),
alertRules: types.optional(z.array(ACLAction$inboundSchema)),
aliasGlobal: types.optional(z.array(ACLAction$inboundSchema)),
analyticsSampling: types.optional(z.array(ACLAction$inboundSchema)),
analyticsUsage: types.optional(z.array(ACLAction$inboundSchema)),
apiKey: types.optional(z.array(ACLAction$inboundSchema)),
apiKeyAiGateway: types.optional(z.array(ACLAction$inboundSchema)),
apiKeyOwnedBySelf: types.optional(z.array(ACLAction$inboundSchema)),
oauth2Application: types.optional(z.array(ACLAction$inboundSchema)),
vercelAppInstallation: types.optional(z.array(ACLAction$inboundSchema)),
vercelAppInstallationRequest: types.optional(z.array(ACLAction$inboundSchema)),
auditLog: types.optional(z.array(ACLAction$inboundSchema)),
automation: types.optional(z.array(ACLAction$inboundSchema)),
billingAddress: types.optional(z.array(ACLAction$inboundSchema)),
billingInformation: types.optional(z.array(ACLAction$inboundSchema)),
billingInvoice: types.optional(z.array(ACLAction$inboundSchema)),
billingInvoiceEmailRecipient: types.optional(z.array(ACLAction$inboundSchema)),
billingInvoiceLanguage: types.optional(z.array(ACLAction$inboundSchema)),
billingPlan: types.optional(z.array(ACLAction$inboundSchema)),
billingPurchaseOrder: types.optional(z.array(ACLAction$inboundSchema)),
billingRefund: types.optional(z.array(ACLAction$inboundSchema)),
billingTaxId: types.optional(z.array(ACLAction$inboundSchema)),
blob: types.optional(z.array(ACLAction$inboundSchema)),
blobStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
budget: types.optional(z.array(ACLAction$inboundSchema)),
cacheArtifact: types.optional(z.array(ACLAction$inboundSchema)),
cacheArtifactUsageEvent: types.optional(z.array(ACLAction$inboundSchema)),
codeChecks: types.optional(z.array(ACLAction$inboundSchema)),
codeOwners: types.optional(z.array(ACLAction$inboundSchema)),
ciInvocations: types.optional(z.array(ACLAction$inboundSchema)),
ciLogs: types.optional(z.array(ACLAction$inboundSchema)),
concurrentBuilds: types.optional(z.array(ACLAction$inboundSchema)),
connect: types.optional(z.array(ACLAction$inboundSchema)),
connectConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
connectLogs: types.optional(z.array(ACLAction$inboundSchema)),
connexClient: types.optional(z.array(ACLAction$inboundSchema)),
connexClientProject: types.optional(z.array(ACLAction$inboundSchema)),
connexContact: types.optional(z.array(ACLAction$inboundSchema)),
connexInstallation: types.optional(z.array(ACLAction$inboundSchema)),
connexToken: types.optional(z.array(ACLAction$inboundSchema)),
buildMachineDefault: types.optional(z.array(ACLAction$inboundSchema)),
cursorOriginInstallation: types.optional(z.array(ACLAction$inboundSchema)),
dataCacheBillingSettings: types.optional(z.array(ACLAction$inboundSchema)),
defaultDeploymentProtection: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPolicy: types.optional(z.array(ACLAction$inboundSchema)),
domain: types.optional(z.array(ACLAction$inboundSchema)),
domainAcceptDelegation: types.optional(z.array(ACLAction$inboundSchema)),
domainAuthCodes: types.optional(z.array(ACLAction$inboundSchema)),
domainCertificate: types.optional(z.array(ACLAction$inboundSchema)),
domainCheckConfig: types.optional(z.array(ACLAction$inboundSchema)),
domainMove: types.optional(z.array(ACLAction$inboundSchema)),
domainPurchase: types.optional(z.array(ACLAction$inboundSchema)),
domainRecord: types.optional(z.array(ACLAction$inboundSchema)),
domainTransferIn: types.optional(z.array(ACLAction$inboundSchema)),
drain: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfig: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigItem: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigSchema: types.optional(z.array(ACLAction$inboundSchema)),
edgeConfigToken: types.optional(z.array(ACLAction$inboundSchema)),
endpointVerification: types.optional(z.array(ACLAction$inboundSchema)),
event: types.optional(z.array(ACLAction$inboundSchema)),
fileUpload: types.optional(z.array(ACLAction$inboundSchema)),
flagsExplorerSubscription: types.optional(z.array(ACLAction$inboundSchema)),
gitRepository: types.optional(z.array(ACLAction$inboundSchema)),
imageOptimizationNewPrice: types.optional(z.array(ACLAction$inboundSchema)),
integration: types.optional(z.array(ACLAction$inboundSchema)),
integrationAccount: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfigurationProjects: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfigurationRole: types.optional(z.array(ACLAction$inboundSchema)),
integrationConfigurationTransfer: types.optional(z.array(ACLAction$inboundSchema)),
integrationDeploymentAction: types.optional(z.array(ACLAction$inboundSchema)),
integrationEvent: types.optional(z.array(ACLAction$inboundSchema)),
integrationLog: types.optional(z.array(ACLAction$inboundSchema)),
integrationResource: types.optional(z.array(ACLAction$inboundSchema)),
integrationResourceData: types.optional(z.array(ACLAction$inboundSchema)),
integrationResourceReplCommand: types.optional(z.array(ACLAction$inboundSchema)),
integrationResourceSecrets: types.optional(z.array(ACLAction$inboundSchema)),
integrationSSOSession: types.optional(z.array(ACLAction$inboundSchema)),
integrationStrict: types.optional(z.array(ACLAction$inboundSchema)),
integrationStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
integrationVercelConfigurationOverride: types.optional(z.array(ACLAction$inboundSchema)),
integrationPullRequest: types.optional(z.array(ACLAction$inboundSchema)),
ipBlocking: types.optional(z.array(ACLAction$inboundSchema)),
jobGlobal: types.optional(z.array(ACLAction$inboundSchema)),
kmsIssuer: types.optional(z.array(ACLAction$inboundSchema)),
kmsProjectGrant: types.optional(z.array(ACLAction$inboundSchema)),
logDrain: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceBillingData: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceExperimentationEdgeConfigData: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceExperimentationItem: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceFlexCommit: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceInstallationMember: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceInvoice: types.optional(z.array(ACLAction$inboundSchema)),
marketplaceSettings: types.optional(z.array(ACLAction$inboundSchema)),
Monitoring: types.optional(z.array(ACLAction$inboundSchema)),
monitoringAlert: types.optional(z.array(ACLAction$inboundSchema)),
monitoringChart: types.optional(z.array(ACLAction$inboundSchema)),
monitoringQuery: types.optional(z.array(ACLAction$inboundSchema)),
monitoringSettings: types.optional(z.array(ACLAction$inboundSchema)),
notificationCustomerBudget: types.optional(z.array(ACLAction$inboundSchema)),
notificationDeploymentFailed: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainExpire: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainMoved: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainPurchase: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainRenewal: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainTransfer: types.optional(z.array(ACLAction$inboundSchema)),
notificationDomainUnverified: types.optional(z.array(ACLAction$inboundSchema)),
NotificationMonitoringAlert: types.optional(z.array(ACLAction$inboundSchema)),
notificationPaymentFailed: types.optional(z.array(ACLAction$inboundSchema)),
notificationPreferences: types.optional(z.array(ACLAction$inboundSchema)),
notificationStatementOfReasons: types.optional(z.array(ACLAction$inboundSchema)),
notificationUsageAlert: types.optional(z.array(ACLAction$inboundSchema)),
oidcFederationPolicy: types.optional(z.array(ACLAction$inboundSchema)),
observabilityConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
observabilityFunnel: types.optional(z.array(ACLAction$inboundSchema)),
observabilityNotebook: types.optional(z.array(ACLAction$inboundSchema)),
openTelemetryEndpoint: types.optional(z.array(ACLAction$inboundSchema)),
ownEvent: types.optional(z.array(ACLAction$inboundSchema)),
organization: types.optional(z.array(ACLAction$inboundSchema)),
organizationDomain: types.optional(z.array(ACLAction$inboundSchema)),
organizationTeam: types.optional(z.array(ACLAction$inboundSchema)),
passwordProtectionInvoiceItem: types.optional(z.array(ACLAction$inboundSchema)),
paymentMethod: types.optional(z.array(ACLAction$inboundSchema)),
permissions: types.optional(z.array(ACLAction$inboundSchema)),
postgres: types.optional(z.array(ACLAction$inboundSchema)),
postgresStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
previewDeploymentSuffix: types.optional(z.array(ACLAction$inboundSchema)),
privateCloudAccount: types.optional(z.array(ACLAction$inboundSchema)),
projectTransferIn: types.optional(z.array(ACLAction$inboundSchema)),
projectTransferRequest: types.optional(z.array(ACLAction$inboundSchema)),
proTrialOnboarding: types.optional(z.array(ACLAction$inboundSchema)),
rateLimit: types.optional(z.array(ACLAction$inboundSchema)),
redis: types.optional(z.array(ACLAction$inboundSchema)),
redisStoreTokenSet: types.optional(z.array(ACLAction$inboundSchema)),
remoteCaching: types.optional(z.array(ACLAction$inboundSchema)),
repository: types.optional(z.array(ACLAction$inboundSchema)),
samlConfig: types.optional(z.array(ACLAction$inboundSchema)),
secret: types.optional(z.array(ACLAction$inboundSchema)),
securityConfig: types.optional(z.array(ACLAction$inboundSchema)),
sensitiveEnvironmentVariablePolicy: types.optional(z.array(ACLAction$inboundSchema)),
sharedEnvVars: types.optional(z.array(ACLAction$inboundSchema)),
sharedEnvVarsProduction: types.optional(z.array(ACLAction$inboundSchema)),
space: types.optional(z.array(ACLAction$inboundSchema)),
spaceRun: types.optional(z.array(ACLAction$inboundSchema)),
storeIsLocked: types.optional(z.array(ACLAction$inboundSchema)),
storeTokenSetSensitive: types.optional(z.array(ACLAction$inboundSchema)),
storeTransfer: types.optional(z.array(ACLAction$inboundSchema)),
supportCase: types.optional(z.array(ACLAction$inboundSchema)),
supportCaseComment: types.optional(z.array(ACLAction$inboundSchema)),
team: types.optional(z.array(ACLAction$inboundSchema)),
teamAccessRequest: types.optional(z.array(ACLAction$inboundSchema)),
teamFellowMembership: types.optional(z.array(ACLAction$inboundSchema)),
teamGitExclusivity: types.optional(z.array(ACLAction$inboundSchema)),
teamInvite: types.optional(z.array(ACLAction$inboundSchema)),
teamInviteCode: types.optional(z.array(ACLAction$inboundSchema)),
teamInviteLink: types.optional(z.array(ACLAction$inboundSchema)),
teamJoin: types.optional(z.array(ACLAction$inboundSchema)),
teamMemberMfaStatus: types.optional(z.array(ACLAction$inboundSchema)),
teamMicrofrontends: types.optional(z.array(ACLAction$inboundSchema)),
teamOwnMembership: types.optional(z.array(ACLAction$inboundSchema)),
teamOwnMembershipDisconnectSAML: types.optional(z.array(ACLAction$inboundSchema)),
teamSudo: types.optional(z.array(ACLAction$inboundSchema)),
teamTokenInvalidation: types.optional(z.array(ACLAction$inboundSchema)),
token: types.optional(z.array(ACLAction$inboundSchema)),
toolbarComment: types.optional(z.array(ACLAction$inboundSchema)),
usage: types.optional(z.array(ACLAction$inboundSchema)),
usageCycle: types.optional(z.array(ACLAction$inboundSchema)),
vcrRepository: types.optional(z.array(ACLAction$inboundSchema)),
vpcPeeringConnection: types.optional(z.array(ACLAction$inboundSchema)),
webAnalyticsPlan: types.optional(z.array(ACLAction$inboundSchema)),
webhook: types.optional(z.array(ACLAction$inboundSchema)),
"webhook-event": types.optional(z.array(ACLAction$inboundSchema)),
aliasProject: types.optional(z.array(ACLAction$inboundSchema)),
aliasProtectionBypass: types.optional(z.array(ACLAction$inboundSchema)),
bulkRedirects: types.optional(z.array(ACLAction$inboundSchema)),
buildMachine: types.optional(z.array(ACLAction$inboundSchema)),
connectConfigurationLink: types.optional(z.array(ACLAction$inboundSchema)),
dataCacheNamespace: types.optional(z.array(ACLAction$inboundSchema)),
deployment: types.optional(z.array(ACLAction$inboundSchema)),
deploymentBuildLogs: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheck: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheckPreview: types.optional(z.array(ACLAction$inboundSchema)),
deploymentCheckReRunFromProductionBranch: types.optional(z.array(ACLAction$inboundSchema)),
deploymentProductionGit: types.optional(z.array(ACLAction$inboundSchema)),
deploymentV0: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPreview: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPrivate: types.optional(z.array(ACLAction$inboundSchema)),
deploymentPromote: types.optional(z.array(ACLAction$inboundSchema)),
deploymentRollback: types.optional(z.array(ACLAction$inboundSchema)),
edgeCacheNamespace: types.optional(z.array(ACLAction$inboundSchema)),
environments: types.optional(z.array(ACLAction$inboundSchema)),
job: types.optional(z.array(ACLAction$inboundSchema)),
logs: types.optional(z.array(ACLAction$inboundSchema)),
logsPreset: types.optional(z.array(ACLAction$inboundSchema)),
observabilityData: types.optional(z.array(ACLAction$inboundSchema)),
onDemandBuild: types.optional(z.array(ACLAction$inboundSchema)),
onDemandConcurrency: types.optional(z.array(ACLAction$inboundSchema)),
optionsAllowlist: types.optional(z.array(ACLAction$inboundSchema)),
passwordProtection: types.optional(z.array(ACLAction$inboundSchema)),
privateLinkEndpoint: types.optional(z.array(ACLAction$inboundSchema)),
productionAliasProtectionBypass: types.optional(z.array(ACLAction$inboundSchema)),
productionShareableLink: types.optional(z.array(ACLAction$inboundSchema)),
project: types.optional(z.array(ACLAction$inboundSchema)),
projectAccessGroup: types.optional(z.array(ACLAction$inboundSchema)),
projectAnalyticsSampling: types.optional(z.array(ACLAction$inboundSchema)),
projectAnalyticsUsage: types.optional(z.array(ACLAction$inboundSchema)),
projectCheck: types.optional(z.array(ACLAction$inboundSchema)),
projectCheckRun: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentExpiration: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentHook: types.optional(z.array(ACLAction$inboundSchema)),
projectDeploymentProtectionStrict: types.optional(z.array(ACLAction$inboundSchema)),
projectDomain: types.optional(z.array(ACLAction$inboundSchema)),
projectDomainCheckConfig: types.optional(z.array(ACLAction$inboundSchema)),
projectDomainMove: types.optional(z.array(ACLAction$inboundSchema)),
projectDomainVerify: types.optional(z.array(ACLAction$inboundSchema)),
projectEvent: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVars: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVarsProduction: types.optional(z.array(ACLAction$inboundSchema)),
projectEnvVarsUnownedByIntegration: types.optional(z.array(ACLAction$inboundSchema)),
projectFlags: types.optional(z.array(ACLAction$inboundSchema)),
projectFlagsProduction: types.optional(z.array(ACLAction$inboundSchema)),
projectFlagsSdkKey: types.optional(z.array(ACLAction$inboundSchema)),
projectFromV0: types.optional(z.array(ACLAction$inboundSchema)),
projectId: types.optional(z.array(ACLAction$inboundSchema)),
projectIntegrationConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
projectLink: types.optional(z.array(ACLAction$inboundSchema)),
projectMember: types.optional(z.array(ACLAction$inboundSchema)),
projectMonitoring: types.optional(z.array(ACLAction$inboundSchema)),
projectOIDCToken: types.optional(z.array(ACLAction$inboundSchema)),
projectPermissions: types.optional(z.array(ACLAction$inboundSchema)),
projectProductionBranch: types.optional(z.array(ACLAction$inboundSchema)),
projectProtectionBypass: types.optional(z.array(ACLAction$inboundSchema)),
projectRollingRelease: types.optional(z.array(ACLAction$inboundSchema)),
projectRoutes: types.optional(z.array(ACLAction$inboundSchema)),
projectSupportCase: types.optional(z.array(ACLAction$inboundSchema)),
projectSupportCaseComment: types.optional(z.array(ACLAction$inboundSchema)),
projectTier: types.optional(z.array(ACLAction$inboundSchema)),
projectTransfer: types.optional(z.array(ACLAction$inboundSchema)),
projectTransferOut: types.optional(z.array(ACLAction$inboundSchema)),
projectUsage: types.optional(z.array(ACLAction$inboundSchema)),
pageIntegrity: types.optional(z.array(ACLAction$inboundSchema)),
seawallConfig: types.optional(z.array(ACLAction$inboundSchema)),
securityPlusConfiguration: types.optional(z.array(ACLAction$inboundSchema)),
shareableLink: types.optional(z.array(ACLAction$inboundSchema)),
shareableLinkStrict: types.optional(z.array(ACLAction$inboundSchema)),
sharedEnvVarConnection: types.optional(z.array(ACLAction$inboundSchema)),
skewProtection: types.optional(z.array(ACLAction$inboundSchema)),
analytics: types.optional(z.array(ACLAction$inboundSchema)),
trustedIps: types.optional(z.array(ACLAction$inboundSchema)),
trustedSources: types.optional(z.array(ACLAction$inboundSchema)),
v0Chat: types.optional(z.array(ACLAction$inboundSchema)),
vercelAuth: types.optional(z.array(ACLAction$inboundSchema)),
vercelRun: types.optional(z.array(ACLAction$inboundSchema)),
webAnalytics: types.optional(z.array(ACLAction$inboundSchema)),
workflowRunData: types.optional(z.array(ACLAction$inboundSchema)),
}).transform((v) => {
return remap$(v, {
"Monitoring": "monitoring",
"NotificationMonitoringAlert": "notificationMonitoringAlert",
"webhook-event": "webhookEvent",
"projectFlagsSdkKey": "projectFlagsSDKKey",
});
});
export function 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 UpdateMicrofrontendsProjectsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONType);
/** @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: UpdateMicrofrontendsProjectsResponse200ApplicationJSONType$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({
enableVercelCiSameRepository: types.optional(types.boolean()),
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 UpdateMicrofrontendsProjectsAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsAction);
/** @internal */
export const UpdateMicrofrontendsAlgo$inboundSchema = z.nativeEnum(UpdateMicrofrontendsAlgo);
/** @internal */
export const UpdateMicrofrontendsRateLimit$inboundSchema = z.object({
algo: UpdateMicrofrontendsAlgo$inboundSchema,
window: types.number(),
limit: types.number(),
keys: z.array(types.string()),
});
export function updateMicrofrontendsRateLimitFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRateLimit' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRedirect$inboundSchema = z.object({
location: types.string(),
permanent: types.boolean(),
});
export function updateMicrofrontendsRedirectFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRedirect' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLogHeadersProjects2$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsLogHeadersProjects2);
/** @internal */
export const UpdateMicrofrontendsProjectsLogHeaders$inboundSchema = smartUnion([
z.array(types.string()),
UpdateMicrofrontendsLogHeadersProjects2$inboundSchema,
]);
export function updateMicrofrontendsProjectsLogHeadersFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsLogHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsLogHeaders' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRulesets$inboundSchema = z.object({
action: UpdateMicrofrontendsProjectsAction$inboundSchema,
rateLimit: z.nullable(z.lazy(() => UpdateMicrofrontendsRateLimit$inboundSchema)).optional(),
redirect: z.nullable(z.lazy(() => UpdateMicrofrontendsRedirect$inboundSchema))
.optional(),
actionDuration: z.nullable(types.string()).optional(),
bypassSystem: z.nullable(types.boolean()).optional(),
logHeaders: types.optional(smartUnion([
z.array(types.string()),
UpdateMicrofrontendsLogHeadersProjects2$inboundSchema,
])),
});
export function updateMicrofrontendsRulesetsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRulesets$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRulesets' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction);
/** @internal */
export const UpdateMicrofrontendsVercelRuleset$inboundSchema = z.object({
active: types.boolean(),
action: types.optional(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesAction$inboundSchema),
});
export function updateMicrofrontendsVercelRulesetFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsVercelRuleset$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsVercelRuleset' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction);
/** @internal */
export const UpdateMicrofrontendsTrafficSources$inboundSchema = z.object({
active: types.boolean(),
action: types.optional(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesTrafficSourcesAction$inboundSchema),
});
export function updateMicrofrontendsTrafficSourcesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsTrafficSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsTrafficSources' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction);
/** @internal */
export const UpdateMicrofrontendsBotFilter$inboundSchema = z.object({
active: types.boolean(),
action: types.optional(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityManagedRulesBotFilterAction$inboundSchema),
});
export function updateMicrofrontendsBotFilterFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBotFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBotFilter' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAction);
/** @internal */
export const UpdateMicrofrontendsAiBots$inboundSchema = z.object({
active: types.boolean(),
action: types.optional(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodyAction$inboundSchema),
});
export function updateMicrofrontendsAiBotsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsAiBots$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsAiBots' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityAction);
/** @internal */
export const UpdateMicrofrontendsOwasp$inboundSchema = z.object({
active: types.boolean(),
action: types.optional(UpdateMicrofrontendsProjectsResponse200ApplicationJSONResponseBodySecurityAction$inboundSchema),
});
export function updateMicrofrontendsOwaspFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsOwasp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsOwasp' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsManagedRules$inboundSchema = z.object({
vercel_ruleset: z.lazy(() => UpdateMicrofrontendsVercelRuleset$inboundSchema),
traffic_sources: z.lazy(() => UpdateMicrofrontendsTrafficSources$inboundSchema),
bot_filter: z.lazy(() => UpdateMicrofrontendsBotFilter$inboundSchema),
ai_bots: z.lazy(() => UpdateMicrofrontendsAiBots$inboundSchema),
owasp: z.lazy(() => UpdateMicrofrontendsOwasp$inboundSchema),
}).transform((v) => {
return remap$(v, {
"vercel_ruleset": "vercelRuleset",
"traffic_sources": "trafficSources",
"bot_filter": "botFilter",
"ai_bots": "aiBots",
});
});
export function updateMicrofrontendsManagedRulesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsManagedRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsManagedRules' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsLogHeaders2$inboundSchema = z.nativeEnum(UpdateMicrofrontendsLogHeaders2);
/** @internal */
export const UpdateMicrofrontendsLogHeaders$inboundSchema = smartUnion([
z.array(types.string()),
UpdateMicrofrontendsLogHeaders2$inboundSchema,
]);
export function updateMicrofrontendsLogHeadersFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsLogHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsLogHeaders' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsSecurityPlusMetadata$inboundSchema = z.object({
updatedAt: types.number(),
firstEnabledAt: types.optional(types.number()),
});
export function updateMicrofrontendsSecurityPlusMetadataFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsSecurityPlusMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSecurityPlusMetadata' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsSecurity$inboundSchema = z.object({
attackModeEnabled: types.optional(types.boolean()),
attackModeUpdatedAt: types.optional(types.number()),
firewallEnabled: types.optional(types.boolean()),
firewallUpdatedAt: types.optional(types.number()),
attackModeActiveUntil: z.nullable(types.number()).optional(),
firewallConfigVersion: types.optional(types.number()),
rulesets: types.optional(z.record(z.lazy(() => UpdateMicrofrontendsRulesets$inboundSchema))),
firewallSeawallEnabled: types.optional(types.boolean()),
ja3Enabled: types.optional(types.boolean()),
ja4Enabled: types.optional(types.boolean()),
firewallBypassIps: types.optional(z.array(types.string())),
managedRules: z.nullable(z.lazy(() => UpdateMicrofrontendsManagedRules$inboundSchema)).optional(),
botIdEnabled: types.optional(types.boolean()),
log_headers: types.optional(smartUnion([
z.array(types.string()),
UpdateMicrofrontendsLogHeaders2$inboundSchema,
])),
securityPlus: types.optional(types.boolean()),
securityPlusMetadata: types.optional(z.lazy(() => UpdateMicrofrontendsSecurityPlusMetadata$inboundSchema)),
pageIntegrityEnabled: types.optional(types.boolean()),
}).transform((v) => {
return remap$(v, {
"log_headers": "logHeaders",
});
});
export function updateMicrofrontendsSecurityFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSecurity' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsIssuerMode$inboundSchema = z.nativeEnum(UpdateMicrofrontendsIssuerMode);
/** @internal */
export const UpdateMicrofrontendsOidcTokenConfig$inboundSchema = z.object({
enabled: types.optional(types.boolean()),
issuerMode: types.optional(UpdateMicrofrontendsIssuerMode$inboundSchema),
});
export function updateMicrofrontendsOidcTokenConfigFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsOidcTokenConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsOidcTokenConfig' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsSources2$inboundSchema = z.object({
provider: types.literal("gitlab"),
namespace: types.string(),
project: types.optional(types.string()),
});
export function updateMicrofrontendsSources2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsSources2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSources2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsSourcesProvider$inboundSchema = z.nativeEnum(UpdateMicrofrontendsSourcesProvider);
/** @internal */
export const UpdateMicrofrontendsSources1$inboundSchema = z.object({
provider: UpdateMicrofrontendsSourcesProvider$inboundSchema,
org: types.string(),
repo: types.optional(types.string()),
});
export function updateMicrofrontendsSources1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsSources1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSources1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsSources$inboundSchema = z.union([
z.lazy(() => UpdateMicrofrontendsSources1$inboundSchema).and(z.object({ provider: z.literal("bitbucket") })),
z.lazy(() => UpdateMicrofrontendsSources1$inboundSchema).and(z.object({ provider: z.literal("github") })),
z.lazy(() => UpdateMicrofrontendsSources2$inboundSchema),
]);
export function updateMicrofrontendsSourcesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsSources' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsEnvironments2$inboundSchema = z.object({
type: types.literal("custom"),
environmentId: types.string(),
});
export function updateMicrofrontendsEnvironments2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsEnvironments2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsEnvironments2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsEnvironmentsTarget$inboundSchema = z.nativeEnum(UpdateMicrofrontendsEnvironmentsTarget);
/** @internal */
export const UpdateMicrofrontendsEnvironments1$inboundSchema = z.object({
type: types.literal("system"),
target: UpdateMicrofrontendsEnvironmentsTarget$inboundSchema,
});
export function updateMicrofrontendsEnvironments1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsEnvironments1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsEnvironments1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsEnvironments$inboundSchema = z.union([
z.lazy(() => UpdateMicrofrontendsEnvironments1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsEnvironments2$inboundSchema),
]);
export function updateMicrofrontendsEnvironmentsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsEnvironments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsEnvironments' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsGitSources$inboundSchema = z.object({
sources: z.array(z.union([
z.lazy(() => UpdateMicrofrontendsSources1$inboundSchema).and(z.object({ provider: z.literal("bitbucket") })),
z.lazy(() => UpdateMicrofrontendsSources1$inboundSchema).and(z.object({ provider: z.literal("github") })),
z.lazy(() => UpdateMicrofrontendsSources2$inboundSchema),
])),
enabled: types.boolean(),
environments: z.array(z.union([
z.lazy(() => UpdateMicrofrontendsEnvironments1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsEnvironments2$inboundSchema),
])),
});
export function updateMicrofrontendsGitSourcesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsGitSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsGitSources' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsSources$inboundSchema = z.nativeEnum(UpdateMicrofrontendsProjectsSources);
/** @internal */
export const UpdateMicrofrontendsEnvironmentsProjects2$inboundSchema = z.object({
type: types.literal("custom"),
environmentId: types.string(),
});
export function updateMicrofrontendsEnvironmentsProjects2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsEnvironmentsProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsEnvironmentsProjects2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsEnvironmentsProjectsTarget$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsEnvironmentsProjectsTarget);
/** @internal */
export const UpdateMicrofrontendsEnvironmentsProjects1$inboundSchema = z.object({
type: types.literal("system"),
target: UpdateMicrofrontendsEnvironmentsProjectsTarget$inboundSchema,
});
export function updateMicrofrontendsEnvironmentsProjects1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsEnvironmentsProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsEnvironmentsProjects1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsEnvironments$inboundSchema = z.union([
z.lazy(() => UpdateMicrofrontendsEnvironmentsProjects1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsEnvironmentsProjects2$inboundSchema),
]);
export function updateMicrofrontendsProjectsEnvironmentsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsProjectsEnvironments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsProjectsEnvironments' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsDeploymentSources$inboundSchema = z.object({
sources: z.array(UpdateMicrofrontendsProjectsSources$inboundSchema),
enabled: types.boolean(),
environments: z.array(z.union([
z.lazy(() => UpdateMicrofrontendsEnvironmentsProjects1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsEnvironmentsProjects2$inboundSchema),
])),
});
export function updateMicrofrontendsDeploymentSourcesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsDeploymentSources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsDeploymentSources' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsDeploymentPolicy$inboundSchema = z.object({
gitSources: z.nullable(z.array(z.lazy(() => UpdateMicrofrontendsGitSources$inboundSchema))).optional(),
deploymentSources: z.nullable(z.array(z.lazy(() => UpdateMicrofrontendsDeploymentSources$inboundSchema))).optional(),
});
export function updateMicrofrontendsDeploymentPolicyFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsDeploymentPolicy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsDeploymentPolicy' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsTier$inboundSchema = z.nativeEnum(UpdateMicrofrontendsTier);
/** @internal */
export const UpdateMicrofrontendsKind$inboundSchema = z.nativeEnum(UpdateMicrofrontendsKind);
/** @internal */
export const UpdateMicrofrontendsUsageStatus$inboundSchema = z.object({
kind: UpdateMicrofrontendsKind$inboundSchema,
exceededAllowanceUntil: types.optional(types.number()),
bypassThrottleUntil: types.optional(types.number()),
throttled: types.optional(types.boolean()),
teamThrottled: types.optional(types.boolean()),
});
export function updateMicrofrontendsUsageStatusFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsUsageStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsUsageStatus' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsFeatures$inboundSchema = z.object({
webAnalytics: types.optional(types.boolean()),
});
export function updateMicrofrontendsFeaturesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsFeatures$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsFeatures' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHistory$inboundSchema = z.object({
scanner: types.string(),
reason: types.string(),
by: types.string(),
byId: types.string(),
at: types.number(),
});
export function updateMicrofrontendsHistoryFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHistory' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponseAction$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsResponseAction);
/** @internal */
export const UpdateMicrofrontendsBlock$inboundSchema = z.object({
action: UpdateMicrofrontendsProjectsResponseAction$inboundSchema,
reason: types.string(),
statusCode: types.number(),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function updateMicrofrontendsBlockFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBlock$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlock' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjectsResponse200Value$inboundSchema = z.object({
eq: types.string(),
});
export function updateMicrofrontendsHasProjectsResponse200ValueFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjectsResponse200Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjectsResponse200Value' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjects2$inboundSchema = z.object({
type: types.literal("host"),
value: z.lazy(() => UpdateMicrofrontendsHasProjectsResponse200Value$inboundSchema),
});
export function updateMicrofrontendsHasProjects2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjects2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjectsKey$inboundSchema = z.nativeEnum(UpdateMicrofrontendsHasProjectsKey);
/** @internal */
export const UpdateMicrofrontendsHasProjectsResponseValue$inboundSchema = z.object({
eq: types.string(),
});
export function updateMicrofrontendsHasProjectsResponseValueFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjectsResponseValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjectsResponseValue' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjects1$inboundSchema = z.object({
type: types.literal("header"),
key: UpdateMicrofrontendsHasProjectsKey$inboundSchema,
value: z.lazy(() => UpdateMicrofrontendsHasProjectsResponseValue$inboundSchema),
});
export function updateMicrofrontendsHasProjects1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjects1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRouteProjectsHas$inboundSchema = z.union([
z.lazy(() => UpdateMicrofrontendsHasProjects1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsHasProjects2$inboundSchema),
]);
export function updateMicrofrontendsRouteProjectsHasFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRouteProjectsHas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRouteProjectsHas' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRouteProjectsAction$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsRouteProjectsAction);
/** @internal */
export const UpdateMicrofrontendsRouteProjectsMitigate$inboundSchema = z.object({
action: UpdateMicrofrontendsRouteProjectsAction$inboundSchema,
});
export function updateMicrofrontendsRouteProjectsMitigateFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRouteProjectsMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRouteProjectsMitigate' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRouteProjects2$inboundSchema = z.object({
has: z.array(z.union([
z.lazy(() => UpdateMicrofrontendsHasProjects1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsHasProjects2$inboundSchema),
])),
mitigate: z.lazy(() => UpdateMicrofrontendsRouteProjectsMitigate$inboundSchema),
src: types.optional(types.string()),
});
export function updateMicrofrontendsRouteProjects2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRouteProjects2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRouteProjects2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRouteProjects1$inboundSchema = z.object({
src: types.string(),
status: types.number(),
expiry: types.optional(types.number()),
});
export function updateMicrofrontendsRouteProjects1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRouteProjects1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRouteProjects1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBlockHistoryProjectsRoute$inboundSchema = smartUnion([
z.lazy(() => UpdateMicrofrontendsRouteProjects1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsRouteProjects2$inboundSchema),
]);
export function updateMicrofrontendsBlockHistoryProjectsRouteFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBlockHistoryProjectsRoute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlockHistoryProjectsRoute' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBlockHistory4$inboundSchema = z.object({
action: types.literal("route-unblocked"),
route: smartUnion([
z.lazy(() => UpdateMicrofrontendsRouteProjects1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsRouteProjects2$inboundSchema),
]),
statusCode: types.optional(types.number()),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function updateMicrofrontendsBlockHistory4FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBlockHistory4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlockHistory4' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema = z.object({
eq: types.string(),
});
export function updateMicrofrontendsHasProjectsResponse200ApplicationJSONResponseBodyValueFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjectsResponse200ApplicationJSONResponseBodyValue' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjectsResponse2$inboundSchema = z.object({
type: types.literal("host"),
value: z.lazy(() => UpdateMicrofrontendsHasProjectsResponse200ApplicationJSONResponseBodyValue$inboundSchema),
});
export function updateMicrofrontendsHasProjectsResponse2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjectsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjectsResponse2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjectsResponseKey$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsHasProjectsResponseKey);
/** @internal */
export const UpdateMicrofrontendsHasProjectsResponse200ApplicationJSONValue$inboundSchema = z.object({
eq: types.string(),
});
export function updateMicrofrontendsHasProjectsResponse200ApplicationJSONValueFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjectsResponse200ApplicationJSONValue$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjectsResponse200ApplicationJSONValue' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjectsResponse1$inboundSchema = z.object({
type: types.literal("header"),
key: UpdateMicrofrontendsHasProjectsResponseKey$inboundSchema,
value: z.lazy(() => UpdateMicrofrontendsHasProjectsResponse200ApplicationJSONValue$inboundSchema),
});
export function updateMicrofrontendsHasProjectsResponse1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjectsResponse1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjectsResponse1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRouteHas$inboundSchema = z.union([
z.lazy(() => UpdateMicrofrontendsHasProjectsResponse1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsHasProjectsResponse2$inboundSchema),
]);
export function updateMicrofrontendsRouteHasFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRouteHas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRouteHas' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRouteAction$inboundSchema = z.nativeEnum(UpdateMicrofrontendsRouteAction);
/** @internal */
export const UpdateMicrofrontendsRouteMitigate$inboundSchema = z.object({
action: UpdateMicrofrontendsRouteAction$inboundSchema,
});
export function updateMicrofrontendsRouteMitigateFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRouteMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRouteMitigate' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRoute2$inboundSchema = z.object({
has: z.array(z.union([
z.lazy(() => UpdateMicrofrontendsHasProjectsResponse1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsHasProjectsResponse2$inboundSchema),
])),
mitigate: z.lazy(() => UpdateMicrofrontendsRouteMitigate$inboundSchema),
src: types.optional(types.string()),
});
export function updateMicrofrontendsRoute2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRoute2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRoute2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsRoute1$inboundSchema = z.object({
src: types.string(),
status: types.number(),
expiry: types.optional(types.number()),
});
export function updateMicrofrontendsRoute1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsRoute1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsRoute1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBlockHistoryRoute$inboundSchema = smartUnion([
z.lazy(() => UpdateMicrofrontendsRoute1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsRoute2$inboundSchema),
]);
export function updateMicrofrontendsBlockHistoryRouteFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBlockHistoryRoute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlockHistoryRoute' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBlockHistory3$inboundSchema = z.object({
action: types.literal("route-blocked"),
route: smartUnion([
z.lazy(() => UpdateMicrofrontendsRoute1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsRoute2$inboundSchema),
]),
reason: types.string(),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function updateMicrofrontendsBlockHistory3FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBlockHistory3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlockHistory3' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBlockHistory2$inboundSchema = z.object({
action: types.literal("unblocked"),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function updateMicrofrontendsBlockHistory2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBlockHistory2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlockHistory2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBlockHistory1$inboundSchema = z.object({
action: types.literal("blocked"),
reason: types.string(),
statusCode: types.number(),
createdAt: types.number(),
caseId: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
ineligibleForAppeal: types.optional(types.boolean()),
isCascading: types.optional(types.boolean()),
});
export function updateMicrofrontendsBlockHistory1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBlockHistory1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlockHistory1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsBlockHistory$inboundSchema = z.union([
z.lazy(() => UpdateMicrofrontendsBlockHistory1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsBlockHistory2$inboundSchema),
z.lazy(() => UpdateMicrofrontendsBlockHistory3$inboundSchema),
z.lazy(() => UpdateMicrofrontendsBlockHistory4$inboundSchema),
]);
export function updateMicrofrontendsBlockHistoryFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsBlockHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsBlockHistory' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsProjectsResponse200Action$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsProjectsResponse200Action);
/** @internal */
export const UpdateMicrofrontendsInterstitialHistory$inboundSchema = z.object({
action: UpdateMicrofrontendsProjectsResponse200Action$inboundSchema,
createdAt: types.number(),
caseId: types.optional(types.string()),
reason: types.optional(types.string()),
actor: types.optional(types.string()),
comment: types.optional(types.string()),
});
export function updateMicrofrontendsInterstitialHistoryFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsInterstitialHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsInterstitialHistory' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsAbuse$inboundSchema = z.object({
scanner: types.optional(types.string()),
history: z.array(z.lazy(() => UpdateMicrofrontendsHistory$inboundSchema)),
updatedAt: types.number(),
block: types.optional(z.lazy(() => UpdateMicrofrontendsBlock$inboundSchema)),
blockHistory: types.optional(z.array(z.union([
z.lazy(() => UpdateMicrofrontendsBlockHistory1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsBlockHistory2$inboundSchema),
z.lazy(() => UpdateMicrofrontendsBlockHistory3$inboundSchema),
z.lazy(() => UpdateMicrofrontendsBlockHistory4$inboundSchema),
]))),
interstitial: types.optional(types.boolean()),
interstitialHistory: types.optional(z.array(z.lazy(() => UpdateMicrofrontendsInterstitialHistory$inboundSchema))),
});
export function updateMicrofrontendsAbuseFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsAbuse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsAbuse' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasProjectsValue$inboundSchema = z.object({
eq: types.string(),
});
export function updateMicrofrontendsHasProjectsValueFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasProjectsValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasProjectsValue' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHas2$inboundSchema = z.object({
type: types.literal("host"),
value: z.lazy(() => UpdateMicrofrontendsHasProjectsValue$inboundSchema),
});
export function updateMicrofrontendsHas2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHas2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHas2' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHasKey$inboundSchema = z.nativeEnum(UpdateMicrofrontendsHasKey);
/** @internal */
export const UpdateMicrofrontendsHasValue$inboundSchema = z.object({
eq: types.string(),
});
export function updateMicrofrontendsHasValueFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHasValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHasValue' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsHas1$inboundSchema = z.object({
type: types.literal("header"),
key: UpdateMicrofrontendsHasKey$inboundSchema,
value: z.lazy(() => UpdateMicrofrontendsHasValue$inboundSchema),
});
export function updateMicrofrontendsHas1FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsHas1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsHas1' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsInternalRoutesHas$inboundSchema = z.union([
z.lazy(() => UpdateMicrofrontendsHas1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsHas2$inboundSchema),
]);
export function updateMicrofrontendsInternalRoutesHasFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsInternalRoutesHas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsInternalRoutesHas' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsInternalRoutesAction$inboundSchema = z
.nativeEnum(UpdateMicrofrontendsInternalRoutesAction);
/** @internal */
export const UpdateMicrofrontendsInternalRoutesMitigate$inboundSchema = z.object({
action: UpdateMicrofrontendsInternalRoutesAction$inboundSchema,
});
export function updateMicrofrontendsInternalRoutesMitigateFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsInternalRoutesMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsInternalRoutesMitigate' from JSON`);
}
/** @internal */
export const UpdateMicrofrontendsInternalRoutes2$inboundSchema = z.object({
has: z.array(z.union([
z.lazy(() => UpdateMicrofrontendsHas1$inboundSchema),
z.lazy(() => UpdateMicrofrontendsHas2$inboundSchema),
])),
mitigate: z.lazy(() => UpdateMicrofrontendsInternalRoutesMitigate$inboundSchema),
src: types.optional(types.string()),
});
export function updateMicrofrontendsInternalRoutes2FromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateMicrofrontendsInternalRoutes2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMicrofrontendsInternalRoutes2' from JSON`);
}
//# sourceMappingURL=updatemicrofrontendsinternalroutes2.js.map