@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>
5,438 lines • 187 kB
text/typescript
/*
* 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 { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
import { FlagJSONValue, FlagJSONValue$inboundSchema } from "./flagjsonvalue.js";
import {
GetDeploymentResponseBodyAliasAssignedAt,
GetDeploymentResponseBodyAliasAssignedAt$inboundSchema,
GetDeploymentResponseBodyBuild,
GetDeploymentResponseBodyBuild$inboundSchema,
GetDeploymentResponseBodyBuilds,
GetDeploymentResponseBodyBuilds$inboundSchema,
GetDeploymentResponseBodyChecksConclusion,
GetDeploymentResponseBodyChecksConclusion$inboundSchema,
GetDeploymentResponseBodyChecksState,
GetDeploymentResponseBodyChecksState$inboundSchema,
GetDeploymentResponseBodyCreator,
GetDeploymentResponseBodyCreator$inboundSchema,
GetDeploymentResponseBodyImages,
GetDeploymentResponseBodyImages$inboundSchema,
GetDeploymentResponseBodyIntegrations,
GetDeploymentResponseBodyIntegrations$inboundSchema,
GetDeploymentResponseBodyLambdas,
GetDeploymentResponseBodyLambdas$inboundSchema,
GetDeploymentResponseBodyOomReport,
GetDeploymentResponseBodyOomReport$inboundSchema,
GetDeploymentResponseBodyResourceConfig,
GetDeploymentResponseBodyResourceConfig$inboundSchema,
GetDeploymentResponseBodyStatus,
GetDeploymentResponseBodyStatus$inboundSchema,
GetDeploymentResponseBodyTeam,
GetDeploymentResponseBodyTeam$inboundSchema,
GetDeploymentResponseBodyType,
GetDeploymentResponseBodyType$inboundSchema,
ResponseBodyAliasError,
ResponseBodyAliasError$inboundSchema,
ResponseBodyAliasWarning,
ResponseBodyAliasWarning$inboundSchema,
ResponseBodyCustomEnvironment,
ResponseBodyCustomEnvironment$inboundSchema,
ResponseBodyProjectSettings,
ResponseBodyProjectSettings$inboundSchema,
ResponseBodyReadyState,
ResponseBodyReadyState$inboundSchema,
ResponseBodyTarget,
ResponseBodyTarget$inboundSchema,
} from "./getdeploymentgitsourcedeploymentsresponse200type.js";
import {
GetDeploymentMissingDeployments1,
GetDeploymentMissingDeployments1$inboundSchema,
GetDeploymentMissingDeployments2,
GetDeploymentMissingDeployments2$inboundSchema,
GetDeploymentResponseBodyAtproto,
GetDeploymentResponseBodyAtproto$inboundSchema,
GetDeploymentResponseBodyCrons,
GetDeploymentResponseBodyCrons$inboundSchema,
GetDeploymentResponseBodyFunctions,
GetDeploymentResponseBodyFunctions$inboundSchema,
GetDeploymentResponseBodyGitSource,
GetDeploymentResponseBodyGitSource$inboundSchema,
GetDeploymentResponseBodyManualProvisioning,
GetDeploymentResponseBodyManualProvisioning$inboundSchema,
GetDeploymentResponseBodyNodeVersion,
GetDeploymentResponseBodyNodeVersion$inboundSchema,
GetDeploymentResponseBodyOidcTokenClaims,
GetDeploymentResponseBodyOidcTokenClaims$inboundSchema,
GetDeploymentResponseBodyPlan,
GetDeploymentResponseBodyPlan$inboundSchema,
GetDeploymentResponseBodyReadySubstate,
GetDeploymentResponseBodyReadySubstate$inboundSchema,
GetDeploymentResponseBodyRoutes,
GetDeploymentResponseBodyRoutes$inboundSchema,
GetDeploymentResponseBodySource,
GetDeploymentResponseBodySource$inboundSchema,
GetDeploymentServicesBindings,
GetDeploymentServicesBindings$inboundSchema,
GetDeploymentServicesDeploymentsBuilder,
GetDeploymentServicesDeploymentsBuilder$inboundSchema,
GetDeploymentServicesFunctions,
GetDeploymentServicesFunctions$inboundSchema,
GetDeploymentServicesHas,
GetDeploymentServicesHas$inboundSchema,
GetDeploymentServicesHeaders,
GetDeploymentServicesHeaders$inboundSchema,
ResponseBodyProject,
ResponseBodyProject$inboundSchema,
} from "./getdeploymentmissingdeployments1.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type GetDeploymentServicesMissing =
| GetDeploymentMissingDeployments1
| (GetDeploymentMissingDeployments2 & { type: "cookie" })
| (GetDeploymentMissingDeployments2 & { type: "header" })
| (GetDeploymentMissingDeployments2 & { type: "query" });
export type GetDeploymentServicesRedirects = {
source: string;
destination: string;
permanent?: boolean | undefined;
statusCode?: number | undefined;
has?: Array<GetDeploymentServicesHas> | undefined;
missing?:
| Array<
| GetDeploymentMissingDeployments1
| (GetDeploymentMissingDeployments2 & { type: "cookie" })
| (GetDeploymentMissingDeployments2 & { type: "header" })
| (GetDeploymentMissingDeployments2 & { type: "query" })
>
| undefined;
env?: Array<string> | undefined;
};
/**
* Optional explicit format marker. The destination is identified by the presence of `service`, so `type` is no longer required.
*/
export const GetDeploymentDestinationDeploymentsType = {
Service: "service",
} as const;
/**
* Optional explicit format marker. The destination is identified by the presence of `service`, so `type` is no longer required.
*/
export type GetDeploymentDestinationDeploymentsType = ClosedEnum<
typeof GetDeploymentDestinationDeploymentsType
>;
export type GetDeploymentDestinationDeployments2 = {
/**
* Optional explicit format marker. The destination is identified by the presence of `service`, so `type` is no longer required.
*/
type?: GetDeploymentDestinationDeploymentsType | undefined;
service: string;
/**
* Routing-only path used to select a route inside the target service.
*/
path?: string | undefined;
};
export type GetDeploymentServicesDestination =
| GetDeploymentDestinationDeployments2
| string;
export const GetDeploymentServicesDeploymentsResponse200Type = {
RequestPath: "request.path",
} as const;
export type GetDeploymentServicesDeploymentsResponse200Type = ClosedEnum<
typeof GetDeploymentServicesDeploymentsResponse200Type
>;
export const GetDeploymentServicesOp = {
Set: "set",
} as const;
export type GetDeploymentServicesOp = ClosedEnum<
typeof GetDeploymentServicesOp
>;
export type GetDeploymentServicesTransforms = {
type: GetDeploymentServicesDeploymentsResponse200Type;
op: GetDeploymentServicesOp;
args: string;
env?: Array<string> | undefined;
};
export const GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Type =
{
Cookie: "cookie",
Header: "header",
Query: "query",
} as const;
export type GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Type =
ClosedEnum<
typeof GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Type
>;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHasEq =
| string
| number;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2 =
{
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
re?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBodyValue =
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2;
export type GetDeploymentHasDeploymentsResponse2 = {
type: GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Type;
key: string;
value?:
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2
| undefined;
};
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesEq =
| string
| number;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2 =
{
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
re?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentHasDeploymentsResponse200ApplicationJSONValue =
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2;
export type GetDeploymentHasDeploymentsResponse1 = {
type: "host";
value:
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2;
};
export type GetDeploymentServicesDeploymentsHas =
| GetDeploymentHasDeploymentsResponse1
| (GetDeploymentHasDeploymentsResponse2 & { type: "cookie" })
| (GetDeploymentHasDeploymentsResponse2 & { type: "header" })
| (GetDeploymentHasDeploymentsResponse2 & { type: "query" });
export const GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Type =
{
Cookie: "cookie",
Header: "header",
Query: "query",
} as const;
export type GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Type =
ClosedEnum<
typeof GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Type
>;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2Eq =
| string
| number;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22 =
{
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
re?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Value =
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22;
export type GetDeploymentMissingDeploymentsResponse2 = {
type:
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Type;
key: string;
value?:
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22
| undefined;
};
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissingEq =
| string
| number;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2 =
{
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
re?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBodyValue =
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2;
export type GetDeploymentMissingDeploymentsResponse1 = {
type: "host";
value:
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2;
};
export type GetDeploymentServicesDeploymentsMissing =
| GetDeploymentMissingDeploymentsResponse1
| (GetDeploymentMissingDeploymentsResponse2 & { type: "cookie" })
| (GetDeploymentMissingDeploymentsResponse2 & { type: "header" })
| (GetDeploymentMissingDeploymentsResponse2 & { type: "query" });
export type GetDeploymentServicesRewrites = {
source: string;
destination: GetDeploymentDestinationDeployments2 | string;
transforms?: Array<GetDeploymentServicesTransforms> | undefined;
has?:
| Array<
| GetDeploymentHasDeploymentsResponse1
| (GetDeploymentHasDeploymentsResponse2 & { type: "cookie" })
| (GetDeploymentHasDeploymentsResponse2 & { type: "header" })
| (GetDeploymentHasDeploymentsResponse2 & { type: "query" })
>
| undefined;
missing?:
| Array<
| GetDeploymentMissingDeploymentsResponse1
| (GetDeploymentMissingDeploymentsResponse2 & { type: "cookie" })
| (GetDeploymentMissingDeploymentsResponse2 & { type: "header" })
| (GetDeploymentMissingDeploymentsResponse2 & { type: "query" })
>
| undefined;
statusCode?: number | undefined;
env?: Array<string> | undefined;
respectOriginCacheControl?: boolean | undefined;
};
export const GetDeploymentRoutesDeploymentsHandle = {
Error: "error",
Filesystem: "filesystem",
Hit: "hit",
Miss: "miss",
Resource: "resource",
Rewrite: "rewrite",
} as const;
export type GetDeploymentRoutesDeploymentsHandle = ClosedEnum<
typeof GetDeploymentRoutesDeploymentsHandle
>;
export type GetDeploymentRoutesDeployments2 = {
handle: GetDeploymentRoutesDeploymentsHandle;
src?: string | undefined;
dest?: string | undefined;
status?: number | undefined;
};
export const GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Type =
{
Cookie: "cookie",
Header: "header",
Query: "query",
} as const;
export type GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Type =
ClosedEnum<
typeof GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Type
>;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Eq =
| string
| number;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12 =
{
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
re?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue =
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12;
export type GetDeploymentHasDeploymentsResponse200ApplicationJson2 = {
type:
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Type;
key: string;
value?:
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12
| undefined;
};
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesEq =
| string
| number;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2 =
{
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
re?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Value =
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2;
export type GetDeploymentHasDeploymentsResponse200ApplicationJson1 = {
type: "host";
value:
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2;
};
export type GetDeploymentRoutesDeploymentsHas =
| GetDeploymentHasDeploymentsResponse200ApplicationJson1
| (GetDeploymentHasDeploymentsResponse200ApplicationJson2 & {
type: "cookie";
})
| (GetDeploymentHasDeploymentsResponse200ApplicationJson2 & {
type: "header";
})
| (GetDeploymentHasDeploymentsResponse200ApplicationJson2 & {
type: "query";
});
export const GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Type =
{
Cookie: "cookie",
Header: "header",
Query: "query",
} as const;
export type GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Type =
ClosedEnum<
typeof GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Type
>;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2Eq =
| string
| number;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22 =
{
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
re?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Value =
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22;
export type GetDeploymentMissingDeploymentsResponse200ApplicationJson2 = {
type:
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Type;
key: string;
value?:
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22
| undefined;
};
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1MissingEq =
| string
| number;
export type GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2 =
{
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
re?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue =
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2;
export type GetDeploymentMissingDeploymentsResponse200ApplicationJson1 = {
type: "host";
value:
| string
| GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2;
};
export type GetDeploymentRoutesDeploymentsMissing =
| GetDeploymentMissingDeploymentsResponse200ApplicationJson1
| (GetDeploymentMissingDeploymentsResponse200ApplicationJson2 & {
type: "cookie";
})
| (GetDeploymentMissingDeploymentsResponse200ApplicationJson2 & {
type: "header";
})
| (GetDeploymentMissingDeploymentsResponse200ApplicationJson2 & {
type: "query";
});
export const GetDeploymentRoutesDeploymentsAction = {
Challenge: "challenge",
Deny: "deny",
} as const;
export type GetDeploymentRoutesDeploymentsAction = ClosedEnum<
typeof GetDeploymentRoutesDeploymentsAction
>;
export type GetDeploymentRoutesDeploymentsMitigate = {
action: GetDeploymentRoutesDeploymentsAction;
};
export const GetDeploymentTransformsDeploymentsResponse200Op = {
Set: "set",
} as const;
export type GetDeploymentTransformsDeploymentsResponse200Op = ClosedEnum<
typeof GetDeploymentTransformsDeploymentsResponse200Op
>;
export type GetDeploymentTransformsDeployments2 = {
type: "request.path";
op: GetDeploymentTransformsDeploymentsResponse200Op;
args: string;
env?: Array<string> | undefined;
};
export const GetDeploymentTransformsDeploymentsResponse200Type = {
RequestHeaders: "request.headers",
RequestQuery: "request.query",
ResponseHeaders: "response.headers",
} as const;
export type GetDeploymentTransformsDeploymentsResponse200Type = ClosedEnum<
typeof GetDeploymentTransformsDeploymentsResponse200Type
>;
export const GetDeploymentTransformsDeploymentsResponseOp = {
Append: "append",
Delete: "delete",
Set: "set",
} as const;
export type GetDeploymentTransformsDeploymentsResponseOp = ClosedEnum<
typeof GetDeploymentTransformsDeploymentsResponseOp
>;
export type GetDeploymentKeyDeploymentsEq = string | number;
export type GetDeploymentKeyDeployments2 = {
eq?: string | number | undefined;
neq?: string | undefined;
inc?: Array<string> | undefined;
ninc?: Array<string> | undefined;
pre?: string | undefined;
suf?: string | undefined;
gt?: number | undefined;
gte?: number | undefined;
lt?: number | undefined;
lte?: number | undefined;
};
export type GetDeploymentTransformsDeploymentsKey =
| string
| GetDeploymentKeyDeployments2;
export type GetDeploymentTransformsDeploymentsTarget = {
key: string | GetDeploymentKeyDeployments2;
};
export type GetDeploymentTransformsDeploymentsArgs = string | Array<string>;
export type GetDeploymentTransformsDeployments1 = {
type: GetDeploymentTransformsDeploymentsResponse200Type;
op: GetDeploymentTransformsDeploymentsResponseOp;
target: GetDeploymentTransformsDeploymentsTarget;
args?: string | Array<string> | undefined;
env?: Array<string> | undefined;
};
export type GetDeploymentRoutesDeploymentsTransforms =
| (GetDeploymentTransformsDeployments1 & { type: "request.headers" })
| (GetDeploymentTransformsDeployments1 & { type: "request.query" })
| (GetDeploymentTransformsDeployments1 & { type: "response.headers" })
| GetDeploymentTransformsDeployments2;
export type GetDeploymentRoutesDeploymentsLocale = {
redirect?: { [k: string]: string } | undefined;
cookie?: string | undefined;
};
/**
* Optional explicit format marker. The destination is identified by the presence of `service`, so `type` is no longer required.
*/
export const GetDeploymentDestinationDeploymentsResponseType = {
Service: "service",
} as const;
/**
* Optional explicit format marker. The destination is identified by the presence of `service`, so `type` is no longer required.
*/
export type GetDeploymentDestinationDeploymentsResponseType = ClosedEnum<
typeof GetDeploymentDestinationDeploymentsResponseType
>;
export type GetDeploymentDestinationDeploymentsResponse2 = {
/**
* Optional explicit format marker. The destination is identified by the presence of `service`, so `type` is no longer required.
*/
type?: GetDeploymentDestinationDeploymentsResponseType | undefined;
service: string;
/**
* Routing-only path used to select a route inside the target service.
*/
path?: string | undefined;
};
export type GetDeploymentRoutesDeploymentsDestination =
| GetDeploymentDestinationDeploymentsResponse2
| string;
export type GetDeploymentRoutesDeployments1 = {
src: string;
dest?: string | undefined;
headers?: { [k: string]: string } | undefined;
methods?: Array<string> | undefined;
continue?: boolean | undefined;
override?: boolean | undefined;
caseSensitive?: boolean | undefined;
check?: boolean | undefined;
important?: boolean | undefined;
status?: number | undefined;
has?:
| Array<
| GetDeploymentHasDeploymentsResponse200ApplicationJson1
| (GetDeploymentHasDeploymentsResponse200ApplicationJson2 & {
type: "cookie";
})
| (GetDeploymentHasDeploymentsResponse200ApplicationJson2 & {
type: "header";
})
| (GetDeploymentHasDeploymentsResponse200ApplicationJson2 & {
type: "query";
})
>
| undefined;
missing?:
| Array<
| GetDeploymentMissingDeploymentsResponse200ApplicationJson1
| (GetDeploymentMissingDeploymentsResponse200ApplicationJson2 & {
type: "cookie";
})
| (GetDeploymentMissingDeploymentsResponse200ApplicationJson2 & {
type: "header";
})
| (GetDeploymentMissingDeploymentsResponse200ApplicationJson2 & {
type: "query";
})
>
| undefined;
mitigate?: GetDeploymentRoutesDeploymentsMitigate | undefined;
transforms?:
| Array<
| (GetDeploymentTransformsDeployments1 & { type: "request.headers" })
| (GetDeploymentTransformsDeployments1 & { type: "request.query" })
| (GetDeploymentTransformsDeployments1 & { type: "response.headers" })
| GetDeploymentTransformsDeployments2
>
| undefined;
env?: Array<string> | undefined;
locale?: GetDeploymentRoutesDeploymentsLocale | undefined;
/**
* Aliases for `src`, `dest`, and `status`. These provide consistency with the `rewrites`, `redirects`, and `headers` fields which use `source`, `destination`, and `statusCode`. During normalization, the string forms are converted to their canonical forms (`src`, `dest`, `status`) and stripped from the route object. `destination` may also be a service-targeted object, in which case routing is delegated into the named service's internal route table and the object is preserved as-is (not folded into `dest`).
*/
source?: string | undefined;
destination?:
| GetDeploymentDestinationDeploymentsResponse2
| string
| undefined;
statusCode?: number | undefined;
/**
* A middleware key within the `output` key under the build result. Overrides a `middleware` definition.
*/
middlewarePath?: string | undefined;
/**
* The original middleware matchers.
*/
middlewareRawSrc?: Array<string> | undefined;
/**
* A middleware index in the `middleware` key under the build result
*/
middleware?: number | undefined;
respectOriginCacheControl?: boolean | undefined;
};
export type GetDeploymentServicesRoutes =
| GetDeploymentRoutesDeployments1
| GetDeploymentRoutesDeployments2;
/**
* Services detected during build from vercel.json experimentalServices or auto-detected from project structure. Used to inject service URLs as environment variables at runtime.
*/
export type GetDeploymentServices2 = {
schema: "experimentalServicesV2";
name: string;
/**
* Path to the service root, relative to the project root.
*/
root: string;
framework?: string | undefined;
runtime?: string | undefined;
/**
* Resolved entrypoint, relative to the service root.
*/
entrypoint?: string | undefined;
/**
* Command override for `runtime: "container"` services.
*/
command?: Array<string> | undefined;
/**
* Builder selected by the resolver.
*/
builder: GetDeploymentServicesDeploymentsBuilder;
installCommand?: string | undefined;
buildCommand?: string | undefined;
devCommand?: string | undefined;
ignoreCommand?: string | undefined;
outputDirectory?: string | undefined;
/**
* Caller-side bindings to other services.
*/
bindings?: Array<GetDeploymentServicesBindings> | undefined;
/**
* Function configuration scoped to this service.
*/
functions?: { [k: string]: GetDeploymentServicesFunctions } | undefined;
headers?: Array<GetDeploymentServicesHeaders> | undefined;
redirects?: Array<GetDeploymentServicesRedirects> | undefined;
rewrites?: Array<GetDeploymentServicesRewrites> | undefined;
routes?:
| Array<GetDeploymentRoutesDeployments1 | GetDeploymentRoutesDeployments2>
| undefined;
cleanUrls?: boolean | undefined;
trailingSlash?: boolean | undefined;
};
export const GetDeploymentServicesType = {
Cron: "cron",
Job: "job",
Web: "web",
Worker: "worker",
} as const;
export type GetDeploymentServicesType = ClosedEnum<
typeof GetDeploymentServicesType
>;
export const GetDeploymentServicesTrigger = {
Queue: "queue",
Schedule: "schedule",
Workflow: "workflow",
} as const;
export type GetDeploymentServicesTrigger = ClosedEnum<
typeof GetDeploymentServicesTrigger
>;
export type GetDeploymentServicesIncludeFiles = string | Array<string>;
export type GetDeploymentServicesExcludeFiles = string | Array<string>;
export const GetDeploymentServicesDeploymentsArchitecture = {
Arm64: "arm64",
X8664: "x86_64",
} as const;
export type GetDeploymentServicesDeploymentsArchitecture = ClosedEnum<
typeof GetDeploymentServicesDeploymentsArchitecture
>;
export const GetDeploymentMaxDurationDeploymentsResponse2 = {
Max: "max",
} as const;
export type GetDeploymentMaxDurationDeploymentsResponse2 = ClosedEnum<
typeof GetDeploymentMaxDurationDeploymentsResponse2
>;
export type GetDeploymentServicesDeploymentsMaxDuration =
| number
| GetDeploymentMaxDurationDeploymentsResponse2;
export const GetDeploymentServicesDeploymentsMode = {
Strict: "strict",
} as const;
export type GetDeploymentServicesDeploymentsMode = ClosedEnum<
typeof GetDeploymentServicesDeploymentsMode
>;
export type GetDeploymentServicesDeploymentsAffinity = {
mode: GetDeploymentServicesDeploymentsMode;
};
export type GetDeploymentExperimentalTriggersDeploymentsResponse3 = {
/**
* Event type - must be "schedule/v1beta" (REQUIRED)
*/
type: "schedule/v1beta";
};
/**
* Queue trigger input event for v2beta (from vercel.json config). Consumer name is implicitly derived from the function path. Only one trigger per function is allowed.
*/
export type GetDeploymentExperimentalTriggersDeploymentsResponse2 = {
/**
* Event type - must be "queue/v2beta" (REQUIRED)
*/
type: "queue/v2beta";
/**
* Name of the queue topic to consume from (REQUIRED)
*/
topic: string;
/**
* Maximum number of delivery attempts for message processing (OPTIONAL) This represents the total number of times a message can be delivered, not the number of retries. Must be at least 1 if specified. Behavior when not specified depends on the server's default configuration.
*/
maxDeliveries?: number | undefined;
/**
* Delay in seconds before retrying failed executions (OPTIONAL) Behavior when not specified depends on the server's default configuration.
*/
retryAfterSeconds?: number | undefined;
/**
* Initial delay in seconds before first execution attempt (OPTIONAL) Must be 0 or greater. Use 0 for no initial delay. Behavior when not specified depends on the server's default configuration.
*/
initialDelaySeconds?: number | undefined;
/**
* Maximum number of concurrent executions for this consumer (OPTIONAL) Must be at least 1 if specified. Behavior when not specified depends on the server's default configuration.
*/
maxConcurrency?: number | undefined;
};
/**
* Queue trigger input event for v1beta (from vercel.json config). Requires explicit consumer name.
*/
export type GetDeploymentExperimentalTriggersDeploymentsResponse1 = {
/**
* Event type - must be "queue/v1beta" (REQUIRED)
*/
type: "queue/v1beta";
/**
* Name of the consumer group for this trigger (REQUIRED)
*/
consumer: string;
/**
* Name of the queue topic to consume from (REQUIRED)
*/
topic: string;
/**
* Maximum number of delivery attempts for message processing (OPTIONAL) This represents the total number of times a message can be delivered, not the number of retries. Must be at least 1 if specified. Behavior when not specified depends on the server's default configuration.
*/
maxDeliveries?: number | undefined;
/**
* Delay in seconds before retrying failed executions (OPTIONAL) Behavior when not specified depends on the server's default configuration.
*/
retryAfterSeconds?: number | undefined;
/**
* Initial delay in seconds before first execution attempt (OPTIONAL) Must be 0 or greater. Use 0 for no initial delay. Behavior when not specified depends on the server's default configuration.
*/
initialDelaySeconds?: number | undefined;
/**
* Maximum number of concurrent executions for this consumer (OPTIONAL) Must be at least 1 if specified. Behavior when not specified depends on the server's default configuration.
*/
maxConcurrency?: number | undefined;
};
export type GetDeploymentServicesDeploymentsExperimentalTriggers =
| GetDeploymentExperimentalTriggersDeploymentsResponse1
| GetDeploymentExperimentalTriggersDeploymentsResponse2
| GetDeploymentExperimentalTriggersDeploymentsResponse3;
export type GetDeploymentServicesDeploymentsFunctions = {
architecture?: GetDeploymentServicesDeploymentsArchitecture | undefined;
memory?: number | undefined;
maxDuration?:
| number
| GetDeploymentMaxDurationDeploymentsResponse2
| undefined;
affinity?: GetDeploymentServicesDeploymentsAffinity | undefined;
maxConcurrency?: number | undefined;
regions?: Array<string> | undefined;
functionFailoverRegions?: Array<string> | undefined;
runtime?: string | undefined;
includeFiles?: string | undefined;
excludeFiles?: string | undefined;
experimentalTriggers?:
| Array<
| GetDeploymentExperimentalTriggersDeploymentsResponse1
| GetDeploymentExperimentalTriggersDeploymentsResponse2
| GetDeploymentExperimentalTriggersDeploymentsResponse3
>
| undefined;
supportsCancellation?: boolean | undefined;
};
export type GetDeploymentServicesDeploymentsProjectSettings = {
framework?: string | null | undefined;
devCommand?: string | null | undefined;
installCommand?: string | null | undefined;
buildCommand?: string | null | undefined;
outputDirectory?: string | null | undefined;
rootDirectory?: string | null | undefined;
nodeVersion?: string | undefined;
monorepoManager?: string | null | undefined;
createdAt?: number | undefined;
autoExposeSystemEnvs?: boolean | undefined;
sourceFilesOutsideRootDirectory?: boolean | undefined;
directoryListing?: boolean | undefined;
gitForkProtection?: boolean | undefined;
commandForIgnoringBuildStep?: string | null | undefined;
};
/**
* Enforced runtime for explicitly configured Routing Middleware.
*/
export const GetDeploymentServicesMiddlewareRuntime = {
Nodejs: "nodejs",
} as const;
/**
* Enforced runtime for explicitly configured Routing Middleware.
*/
export type GetDeploymentServicesMiddlewareRuntime = ClosedEnum<
typeof GetDeploymentServicesMiddlewareRuntime
>;
export type GetDeploymentServicesMiddlewareMatcher = string | Array<string>;
export type GetDeploymentServicesConfig = {
bunVersion?: string | undefined;
maxLambdaSize?: string | undefined;
includeFiles?: string | Array<string> | undefined;
excludeFiles?: string | Array<string> | undefined;
bundle?: boolean | undefined;
ldsflags?: string | undefined;
helpers?: boolean | undefined;
rust?: string | undefined;
debug?: boolean | undefined;
zeroConfig?: boolean | undefined;
import?: { [k: string]: string } | undefined;
functions?:
| { [k: string]: GetDeploymentServicesDeploymentsFunctions }
| undefined;
projectSettings?: GetDeploymentServicesDeploymentsProjectSettings | undefined;
outputDirectory?: string | undefined;
installCommand?: string | undefined;
buildCommand?: string | undefined;
devCommand?: string | undefined;
framework?: string | null | undefined;
nodeVersion?: string | undefined;
middleware?: boolean | undefined;
/**
* Enforced runtime for explicitly configured Routing Middleware.
*/
middlewareRuntime?: GetDeploymentServicesMiddlewareRuntime | undefined;
middlewareMatcher?: string | Array<string> | undefined;
/**
* Owning service name; scopes per-function config such as the v2beta consumer.
*/
serviceName?: string | undefined;
};
export type GetDeploymentServicesBuilder = {
use: string;
src?: string | undefined;
config?: GetDeploymentServicesConfig | undefined;
};
export const GetDeploymentServicesRoutePrefixSource = {
Configured: "configured",
Generated: "generated",
} as const;
export type GetDeploymentServicesRoutePrefixSource = ClosedEnum<
typeof GetDeploymentServicesRoutePrefixSource
>;
export type GetDeploymentServicesSchedule = string | Array<string>;
export type GetDeploymentTopics2 = {
topic: string;
retryAfterSeconds?: number | undefined;
initialDelaySeconds?: number | undefined;
};
export type GetDeploymentServicesTopics =
| Array<string>
| Array<GetDeploymentTopics2>;
export const GetDeploymentServicesDeploymentsResponseType = {
ServiceRef: "service-ref",
} as const;
export type GetDeploymentServicesDeploymentsResponseType = ClosedEnum<
typeof GetDeploymentServicesDeploymentsResponseType
>;
export type GetDeploymentServicesEnv = {
type: GetDeploymentServicesDeploymentsResponseType;
service: string;
};
/**
* Services detected during build from vercel.json experimentalServices or auto-detected from project structure. Used to inject service URLs as environment variables at runtime.
*/
export type GetDeploymentServices1 = {
schema: "experimentalServices";
name: string;
type: GetDeploymentServicesType;
trigger?: GetDeploymentServicesTrigger | undefined;
group?: string | undefined;
workspace: string;
entrypoint?: string | undefined;
framework?: string | undefined;
builder: GetDeploymentServicesBuilder;
runtime?: string | undefined;
buildCommand?: string | undefined;
installCommand?: string | undefined;
preDeployCommand?: string | undefined;
routePrefix?: string | undefined;
routePrefixSource?: GetDeploymentServicesRoutePrefixSource | undefined;
subdomain?: string | undefined;
schedule?: string | Array<string> | undefined;
handlerFunction?: string | undefined;
topics?: Array<string> | Array<GetDeploymentTopics2> | undefined;
env?: { [k: string]: GetDeploymentServicesEnv } | undefined;
};
export type GetDeploymentResponseBodyServices =
| GetDeploymentServices1
| GetDeploymentServices2;
export const GetDeploymentGitRepoDeploymentsResponseOwnerType = {
Team: "team",
User: "user",
} as const;
export type GetDeploymentGitRepoDeploymentsResponseOwnerType = ClosedEnum<
typeof GetDeploymentGitRepoDeploymentsResponseOwnerType
>;
export type GetDeploymentGitRepo5 = {
/**
* Owner (namespace) slug.
*/
owner: string;
repo: string;
/**
* Origin repository id.
*/
repoId: string;
type: "cursor-origin";
path: string;
defaultBranch: string;
name: string;
private: boolean;
ownerType: GetDeploymentGitRepoDeploymentsResponseOwnerType;
};
export const GetDeploymentGitRepoDeploymentsOwnerType = {
Team: "team",
User: "user",
} as const;
export type GetDeploymentGitRepoDeploymentsOwnerType = ClosedEnum<
typeof GetDeploymentGitRepoDeploymentsOwnerType
>;
export type GetDeploymentGitRepo4 = {
org: string;
repo: string;
type: "vercel";
path: string;
defaultBranch: string;
name: string;
private: boolean;
ownerType: GetDeploymentGitRepoDeploymentsOwnerType;
};
export const GetDeploymentGitRepoOwnerType = {
Team: "team",
User: "user",
} as const;
export type GetDeploymentGitRepoOwnerType = ClosedEnum<
typeof GetDeploymentGitRepoOwnerType
>;
export type GetDeploymentGitRepo3 = {
owner: string;
repoUuid: string;
slug: string;
type: "bitbucket";
workspaceUuid: string;
path: string;
defaultBranch: string;
name: string;
private: boolean;
ownerType: GetDeploymentGitRepoOwnerType;
};
export const GetDeploymentGitRepoDeploymentsResponse200ApplicationJSONOwnerType =
{
Team: "team",
User: "user",
} as const;
export type GetDeploymentGitRepoDeploymentsResponse200ApplicationJSONOwnerType =
ClosedEnum<
typeof GetDeploymentGitRepoDeploymentsResponse200ApplicationJSONOwnerType
>;
export type GetDeploymentGitRepo2 = {
org: string;
repo: string;
repoId: number;
type: "github";
repoOwnerId: number;
path: string;
defaultBranch: string;
name: string;
private: boolean;
ownerType: GetDeploymentGitRepoDeploymentsResponse200ApplicationJSONOwnerType;
};
export const GetDeploymentGitRepoDeploymentsResponse200OwnerType = {
Team: "team",
User: "user",
} as const;
export type GetDeploymentGitRepoDeploymentsResponse200OwnerType = ClosedEnum<
typeof GetDeploymentGitRepoDeploymentsResponse200OwnerType
>;
export type GetDeploymentGitRepo1 = {
namespace: string;
projectId: number;
type: "gitlab";
url: string;
path: string;
defaultBranch: string;
name: string;
private: boolean;
ownerType: GetDeploymentGitRepoDeploymentsResponse200OwnerType;
};
export type GetDeploymentResponseBodyGitRepo =
| GetDeploymentGitRepo1
| GetDeploymentGitRepo2
| GetDeploymentGitRepo3
| GetDeploymentGitRepo4
| GetDeploymentGitRepo5;
/**
* Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags.
*/
export type GetDeploymentFlags2 = {};
export type GetDeploymentFlagsOptions = {
value: FlagJSONValue | null;
label?: string | undefined;
};
export type GetDeploymentFlagsDefinitions = {
options?: Array<GetDeploymentFlagsOptions> | undefined;
url?: string | undefined;
description?: string | undefined;
};
/**
* Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags.
*/
export type GetDeploymentFlags1 = {
definitions: { [k: string]: GetDeploymentFlagsDefinitions };
};
export type GetDeploymentResponseBodyFlags =
| GetDeploymentFlags1
| Array<GetDeploymentFlags2>;
/**
* The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
*/
export const GetDeploymentMicrofrontendsMfeConfigUploadState = {
NoConfig: "no_config",
Success: "success",
WaitingOnBuild: "waiting_on_build",
} as const;
/**
* The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
*/
export type GetDeploymentMicrofrontendsMfeConfigUploadState = ClosedEnum<
typeof GetDeploymentMicrofrontendsMfeConfigUploadState
>;
export type GetDeploymentMicrofrontends2 = {
isDefaultApp: true;
/**
* The result of the microfrontends config upload during deployment creation / build. Only set for default app deployments. The config upload is attempted during deployment create, and then again during the build. If the config is not in the root directory, or the deployment is prebuilt, the config cannot be uploaded during deployment create. The upload during deployment build finds the config even if it's not in the root directory, as it has access to all files. Uploading the config during create is ideal, as then all child deployments are guaranteed to have access to the default app deployment config even if the default app has not yet started building. If the config is not uploaded, the child app will show as building until the config has been uploaded during the default app build. - `success` - The config was uploaded successfully, either when the deployment was created or during the build. - `waiting_on_build` - The config could not be uploaded during deployment create, will be attempted again during the build. - `no_config` - No config was found. Only set once the build has not found the config in any of the deployment's files. - `undefined` - Legacy deployments, or there was an error uploading the config during deployment create.
*/
mfeConfigUploadState?:
| GetDeploymentMicrofrontendsMfeConfigUploadState
| undefined;
/**
* The project name of the default app of this deployment's microfrontends group.
*/
defaultAppProjectName: string;
/**
* A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI.
*/
defaultRoute?: string | undefined;
/**
* The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together.
*/
groupIds: Array<string>;
};
export type GetDeploymentMicrofrontends1 = {
isDefaultApp?: false | undefined;
/**
* The project name of the default app of this deployment's microfrontends group.
*/
defaultAppProjectName: string;
/**
* A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI.
*/
defaultRoute?: string | undefined;
/**
* The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together.
*/
groupIds: Array<string>;
};
export type GetDeploymentResponseBodyMicrofrontends =
| GetDeploymentMicrofrontends2
| GetDeploymentMicrofrontends1;
/**
* The external platform that created the deployment (e.g. its display name).
*/
export type GetDeploymentResponseBodyDeploymentsResponseSource = {
/**
* Display name of the platform.
*/
name: string;
};
/**
* Whether the value is an opaque identifier or a URL.
*/
export const GetDeploymentResponseBodyDeploymentsResponse200ApplicationJSONType =
{
Id: "id",
Url: "url",
} as const;
/**
* Whether the value is an opaque identifier or a URL.
*/
export type GetDeploymentResponseBodyDeploymentsResponse200ApplicationJSONType =
ClosedEnum<
typeof GetDeploymentResponseBodyDeploymentsResponse200ApplicationJSONType
>;
/**
* Reference back to the entity on the platform that initiated the deployment.
*/
export type GetDeploymentResponseBodyOrigin = {
/**
* Whether the value is an opaque identifier or a URL.
*/
type: GetDeploymentResponseBodyDeploymentsResponse200ApplicationJSONType;
/**
* The identifier or URL pointing to the originating entity.
*/
value: string;
};
/**
* The user on the external platform who triggered the deployment.
*/
export type GetDeploymentResponseBodyDeploymentsCreator = {
/**
* Display name of the platform user.
*/
name: string;
/**
* URL of the platform user's avatar image.
*/
avatar?: string | undefined;
};
/**
* Metadata about the source platform that triggered the deployment. Allows us to map a deployment back to a platform (e.g. the chat that created it)
*/
export type GetDeploymentResponseBodyPlatform = {
/**
* The external platform that created the deployment (e.g. its display name).
*/
source: GetDeploymentResponseBodyDeploymentsResponseSource;
/**
* Reference back to the entity on the platform that initiated the deployment.
*/
origin: GetDeploymentResponseBodyOrigin;
/**
* The user on the external platform who triggered the deployment.
*/
creator: GetDeploymentResponseBodyDeploymentsCreator;
/**
* Arbitrary key-value metadata provided by the platform.
*/
meta?: { [k: string]: string } | undefined;
};
export const GetDeploymentResponseBodyFunctionType = {
Fluid: "fluid",
Standard: "standard",
} as const;
export type GetDeploymentResponseBodyFunctionType = ClosedEnum<
typeof GetDeploymentResponseBodyFunctionType
>;
export const GetDeploymentResponseBodyFunctionMemoryType = {
Performance: "performance",
PerformanceXl: "performance_xl",
Standard: "standard",
StandardLegacy: "standard_legacy",
} as const;
export type GetDeploymentResponseBodyFunctionMemoryType = ClosedEnum<
typeof GetDeploymentResponseBodyFunctionMemoryType
>;
/**
* Build resource configuration snapshot for this deployment.
*/
export const GetDeploymentResponseBodyConfiguration = {
SkipNamespaceQueue: "SKIP_NAMESPACE_QUEUE",
WaitForNamespaceQueue: "WAIT_FOR_NAMESPACE_QUEUE",
} as const;
/**
* Build resource configuration snapshot for this deployment.
*/
export type GetDeploymentResponseBodyConfiguration = ClosedEnum<
typeof GetDeploymentResponseBodyConfiguration
>;
/**
* Build resource configuration snapshot for this deployment.
*/
export type GetDeploymentResponseBodyBuildQueue = {
/**
* Build resource configuration snapshot for this deployment.
*/
configuration?: GetDeploymentResponseBodyConfiguration | undefined;
};
/**
* When elastic concurrency is used for this deployment, a value is set. The value tells the reason where the setting was coming from. - TEAM_SETTING: Inherited from team settings - PROJECT_SETTING: Inherited from project settings - SKIP_QUEUE: Manually triggered by user to skip the queues
*/
export const GetDeploymentResponseBodyElasticConcurrency = {
ProjectSetting: "PROJECT_SETTING",
SkipQueue: "SKIP_QUEUE",
TeamSetting: "TEAM_SETTING",
} as const;
/**
* When elastic concurrency is used for this deployment, a value is set. The value tells the reason where the setting was coming from. - TEAM_SETTING: Inherited from team settings - PROJECT_SETTING: Inherited from project settings - SKIP_QUEUE: Manually triggered by user to skip the queues
*/
export type GetDeploymentResponseBodyElasticConcurrency = ClosedEnum<
typeof GetDeploymentResponseBodyElasticConcurrency
>;
/**
* Machine type that was used for the build.
*/
export const GetDeploymentResponseBodyDeploymentsPurchaseType = {
Basic: "basic",
Enhanced: "enhanced",
Standard: "standard",
Turbo: "turbo",
} as const;
/**
* Machine type that was used for the build.
*/
export type GetDeploymentResponseBodyDeploymentsPurchaseType = ClosedEnum<
typeof GetDeploymentResponseBodyDeploymentsPurchaseType
>;
export type GetDeploymentResponseBodyDeploymentsBuildMachine = {
/**
* Machine type that was used for the build.
*/
purchaseType?:
| GetDeploymentResponseBodyDeploymentsPurchaseType
| null
| undefined;
};
/**
* Build resource configuration snapshot for this deployment.
*/
export type GetDeploymentResponseBodyDeploymentsResourceConfig = {
/**
* Build resource configuration snapshot for this deployment.
*/
buildQueue?: GetDeploymentResponseBodyBuildQueue | undefined;
/**
* When elastic concurrency is used for this deployment, a value is set. The value tells the reason where the setting was coming from. - TEAM_SETTING: Inherited from team settings - PROJECT_SETTING: Inherited from project settings - SKIP_QUEUE: Manually triggered by user to skip the queues
*/
elasticConcurrency?: GetDeploymentResponseBodyElasticConcurrency | undefined;
buildMachine?: GetDeploymentResponseBodyDeploymentsBuildMachine | undefined;
};
/**
* Since February 2025 the configuration must include snapshot data at the time of deployment creation to capture properties for the /deployments/:id/config endpoint utilized for displaying Deployment Configuration on the frontend This is optional because older deployments may not have this data captured
*/
export type GetDeploymentResponseBodyConfig = {
version?: number | undefined;
functionType: GetDeploymentResponseBodyFunctionType;
functionMemoryType: GetDeploymentResponseBodyFunctionMemoryType;
functionTimeout: number | null;
secureComputePrimaryRegion: string | null;
secureComputeFallbackRegion: string | null;
isUsingActiveCPU?: boolean | undefined;
/**
* Build resource configuration snapshot for this deployment.
*/
resourceConfig?:
| GetDeploymentResponseBodyDeploymentsResourceConfig
| undefined;
};
export const GetDeploymentResponseBodyDeploymentsResponseState = {
Failed: "failed",
Pending: "pending",
Succeeded: "succeeded",
} as const;
export type GetDeploymentResponseBodyDeploymentsResponseState = ClosedEnum<
typeof GetDeploymentResponseBodyDeploymentsResponseState
>;
/**
* Condensed check data. Retrieve individual check and check run data using api-checks v2 routes.
*/
export type GetDeploymentResponseBodyDeploymentAlias = {
state: GetDeploymentResponseBodyDeploymentsResponseState;
startedAt: number;
completedAt?: number | undefined;
};
export type ResponseBodyChecks = {
/**
* Condensed check data. Retrieve individual check and check run data using api-checks v2 routes.
*/
deploymentAlias: GetDeploymentResponseBodyDeploymentAlias;
};
/**
* The NSNB decision code for the seat block. TODO: We should consolidate block types.
*/
export const GetDeploymentResponseBodyBlockCode = {
CommitAuthorRequired: "COMMIT_AUTHOR_REQUIRED",
TeamAccessRequired: "TEAM_ACCESS_REQUIRED",
} as const;
/**
* The NSNB decision code for the seat block. TODO: We should consolidate block types.
*/
export type GetDeploymentResponseBodyBlockCode = ClosedEnum<
typeof GetDeploymentResponseBodyBlockCode
>;
export type GetDeploymentResponseBodyGitUserId = string | number;
/**
* The git provider type associated with gitUserId.
*/
export const GetDeploymentResponseBodyGitProvider = {
Bitbucket: "bitbucket",
Github: "github",
Gitlab: "gitlab",
} as const;
/**
* The git provider type associated with gitUserId.
*/
export type GetDeploymentResponseBodyGitProvider = ClosedEnum<
typeof GetDeploymentResponseBodyGitProvider
>;
/**
* NSNB Blocked metadata
*/
export type GetDeploymentResponseBodySeatBlock = {
/**
* The NSNB decision code for the seat block. TODO: We should consolidate block types.
*/
blockCode: GetDeploymentResponseBodyBlockCode;
/**
* The blocked vercel user ID.
*/
userId?: string | undefined;
/**
* Determines if the user was verified during the block. In the git integration case, the commit sender was the author.
*/
isVerified?: boolean | undefined;
gitUserId?: string | number | undefined;
/**
* The git provider type associated with gitUserId.
*/
gitProvider?: GetDeploymentResponseBodyGitProvider | undefined;
};
/**
* Commit metadata from the git commit author
*/
export type GetDeploymentResponseBodyCommitMeta = {
/**
* Email from git commit author
*/
email?: string | undefined;
/**
* Name from git commit author
*/
name?: string | undefined;
/**
* Whether the commit was signed/verified (GitHub only, others return undefined)
*/
isVerified?: boolean | undefined;
};
export type GetDeploymentResponseBodyId = string | number;
/**
* Git provider user associated with the commit author email (only set if resolved)
*/
export type GetDeploymentResponseBodyGitUser = {
id: string | number;
/**
* Git provider username/login
*/
login: string;
/**
* User type
*/
type?: string | undefined;
/**
* The git provider (github, gitlab, bitbucket)
*/
provider?: string | undefined;
};
/**
* Vercel user linked to the git provider account (only set if resolved)
*/
export type GetDeploymentResponseBodyVercelUser = {
/**
* Vercel user ID
*/
id: string;
/**
* Vercel username
*/
username: string;
/**
* Team roles at time of deployment
*/
teamRoles?: Array<string> | undefined;
};
/**
* Attribution metadata for the deployment, linking commit author to git and Vercel users. Only populated when the `enable-deployment-attribution` flag is enabled.
*/
export type GetDeploymentResponseBodyAttribution = {
/**
* Commit metadata from the git commit author
*/
commitMeta?: GetDeploymentResponseBodyCommitMeta | undefined;
/**
* Git provider user associated with the commit author email (only set if resolved)
*/
gitUser?: GetDeploymentResponseBodyGitUser | undefined;
/**
* Vercel user linked to the git provider account (only set if resolved)
*/
vercelUser?: GetDeploymentResponseBodyVercelUser | undefined;
};
/**
* Returns the deployment object for the authenticated owner, including private fields such as environment variables, build log URLs, and internal metadata.
*/
export type GetDeploymentResponseBody2 = {
aliasAssignedAt?: GetDeploymentResponseBodyAliasAssignedAt | null | undefined;
alwaysRefuseToBuild?: boolean | undefined;
build: GetDeploymentResponseBodyBuild;
buildArtifactUrls?: Array<string> | undefined;
builds?: Array<GetDeploymentResponseBodyBuilds> | undefined;
env: Array<string>;
resourceConfig?: GetDeploymentResponseBodyResourceConfig | undefined;
inspectorUrl: string | null;
isInConcurrentBuildsQueue: boolean;
isInSystemBuildsQueue: boolean;
projectSettings: ResponseBodyProjectSettings;
integrations?: GetDeploymentResponseBodyIntegrations | undefined;
images?: GetDeploymentResponseBodyImages | undefined;
/**
* A list of all the aliases (default aliases, staging aliases and production aliases) that were assigned upon deployment creation
*/
alias?: Array<string> | undefined;
/**
* A boolean that will be true when the aliases from the alias property were assigned successfully
*/
aliasAssigned: boolean;
bootedAt: number;
buildingAt: number;
/**
* Since April 2025 it necessary for On-Demand Concurrency Minutes calculation
*/
buildContainerFinishedAt?: number | undefined;
buildSkipped: boolean;
/**
* Information about the deployment creator
*/
creator: GetDeploymentResponseBodyCreator;
initReadyAt?: number | undefined;
isFirstBranchDeployment?: boolean | undefined;
lambdas?: Array<GetDeploymentResponseBodyLambdas> | undefined;
/**
* A boolean representing if the deployment is public or not. By default this is `false`
*/
public: boolean;
ready?: number | undefined;
status: GetDeploymentResponseBodyStatus;
/**
* The team that owns the deployment if any
*/
team?: GetDeploymentResponseBodyTeam | undefined;
/**
* An array of domains that were provided by the user when creating the Deployment.
*/
userAliases?: Array<string> | undefined;
/**
* Whether or not preview comments are enabled for the deployment
*/
previewCommentsEnabled?: boolean | undefined;
ttyBuildLogs?: boolean | undefined;
customEnvironment?: ResponseBodyCustomEnvironment | undefined;
oomReport?: GetDeploymentResponseBodyOomReport | undefined;
readyStateReason?: string | undefined;
/**
* A string holding the unique ID of the deployment
*/
id: string;
/**
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
*/
target?: ResponseBodyTarget | null | undefined;
/**
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
*/
readyState: ResponseBodyReadyState;
/**
* An object that will contain a `code` and a `message` when the aliasing fails, otherwise the value will be `null`
*/
aliasError?: ResponseBodyAliasError | null | undefined;
aliasWarning?: ResponseBodyAliasWarning | null | undefined;
errorCode?: string | undefined;
errorMessage?: string | null | undefined;
/**
* A number containing the date when the deployment was created in milliseconds
*/
createdAt: number;
/**
* The name of the project associated with the deployment at the time that the deployment was created
*/
name: string;
type: GetDeploymentResponseBodyType;
aliasFinal?: string | null | undefined;
/**
* applies to custom domains only, defaults to `true`
*/
autoAssignCustomDomains?: boolean | undefined;
automaticAliases?: Array<string> | undefined;
buildErrorAt?: number | undefined;
checksState?: GetDeploymentResponseBodyChecksState | undefined;
checksConclusion?: GetDeploymentResponseBodyChecksConclusion | undefined;
/**
* A number containing the date when the deployment was deleted at milliseconds
*/
deletedAt?: number | null | undefined;
/**
* Computed field that is only available for deployments with a microfrontend configuration.
*/
defaultRoute?: string | undefined;
canceledAt?: number | undefined;
errorLink?: string | undefined;
errorStep?: string | undefined;
/**
* Since November 2023 this field defines a set of regions that we will deploy the lambda to passively Lambdas will be deployed to these regions but only invoked if all of the primary `regions` are marked as out of service
*/
passiveRegions?: Array<string> | undefined;
gitSource?: GetDeploymentResponseBodyGitSource | undefined;
/**
* Present when deployment was created with manual provisioning enabled, either explicitly or via the experimental BYOC git flow. The deployment stays in INITIALIZING until /continue is called.
*/
manualProvisioning?: GetDeploymentResponseBodyManualProvisioning | undefined;
meta: { [k: string]: string };
originCacheRegion?: string | undefined;
/**
* If set it overrides the `projectSettings.nodeVersion` for this deployment.
*/
nodeVersion?: GetDeploymentResponseBodyNodeVersion | undefined;
/**
* The public project information associated with the deployment.
*/
project?: ResponseBodyProject | undefined;
prebuilt?: boolean | undefined;
/**
* Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic
*/
readySubstate?: GetDeploymentResponseBodyReadySubstate | undefined;
/**
* The regions the deployment exists in
*/
regions: Array<string>;
/**
* flag to indicate if the deployment was deleted by retention policy
*/
softDeletedByRetention?: boolean | undefined;
/**
* Where was the deployment created from. Best-effort guess for metrics only — not authoritative; do not gate behavior on it.
*/
source?: GetDeploymentResponseBodySource | undefined;
/**
* A number containing the date when the deployment was undeleted at milliseconds
*/
undeletedAt?: number | undefined;
/**
* A string with the unique URL of the deployment
*/
url: string;
/**
* Since January 2025 User-configured deployment ID for skew protection with pre-built deployments. This is set when users configure a custom deploymentId in their next.config.js file. This allows Next.js to use skew protection even when deployments are pre-built outside of Vercel's build system.
*/
userConfiguredDeploymentId?: string | undefined;
/**
* The platform version that was used to create the deployment.
*/
version: number;
oidcTokenClaims?: GetDeploymentResponseBodyOidcTokenClaims | undefined;
projectId: string;
plan: GetDeploymentResponseBodyPlan;
connectBuildsEnabled?: boolean | undefined;
connectConfigurationId?: string | undefined;
createdIn: string;
crons?: Array<GetDeploymentResponseBodyCrons> | undefined;
atproto?: GetDeploymentResponseBodyAtproto | undefined;
functions?:
| { [k: string]: GetDeploymentResponseBodyFunctions }
| null
| undefined;
/**
* Whether this deployment completed through the instant static fast path.
*/
isInstantStatic?: boolean | undefined;
monorepoManager?: string | null | undefined;
ownerId: string;
/**
* Since November 2023 this field defines a Secure Compute network that will only be used to deploy passive lambdas to (as in passiveRegions)
*/
passiveConnectConfigurationId?: string | undefined;
routes: Array<GetDeploymentResponseBodyRoutes> | null;
/**
* Services detected during build from vercel.json experimentalServices or auto-detected from project structure. Used to inject service URLs as environment variables at runtime.
*/
services?: Array<GetDeploymentServices1 | GetDeploymentServices2> | undefined;
gitRepo?:
| GetDeploymentGitRepo1
| GetDeploymentGitRepo2
| GetDeploymentGitRepo3
| GetDeploymentGitRepo4
| GetDeploymentGitRepo5
| null
| undefined;
flags?: GetDeploymentFlags1 | Array<GetDeploymentFlags2> | undefined;
microfrontends?:
| GetDeploymentMicrofrontends2
| GetDeploymentMicrofrontends1
| undefined;
/**
* Metadata about the source platform that triggered the deployment. Allows us to map a deployment back to a platform (e.g. the chat that created it)
*/
platform?: GetDeploymentResponseBodyPlatform | undefined;
/**
* Since February 2025 the configuration must include snapshot data at the time of deployment creation to capture properties for the /deployments/:id/config endpoint utilized for displaying Deployment Configuration on the frontend This is optional because older deployments may not have this data captured
*/
config?: GetDeploymentResponseBodyConfig | undefined;
checks?: ResponseBodyChecks | undefined;
/**
* NSNB Blocked metadata
*/
seatBlock?: GetDeploymentResponseBodySeatBlock | undefined;
/**
* Attribution metadata for the deployment, linking commit author to git and Vercel users. Only populated when the `enable-deployment-attribution` flag is enabled.
*/
attribution?: GetDeploymentResponseBodyAttribution | undefined;
};
/**
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
*/
export const GetDeploymentResponseBodyDeploymentsTarget = {
Production: "production",
Staging: "staging",
} as const;
/**
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
*/
export type GetDeploymentResponseBodyDeploymentsTarget = ClosedEnum<
typeof GetDeploymentResponseBodyDeploymentsTarget
>;
/**
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
*/
export const GetDeploymentResponseBodyDeploymentsReadyState = {
Blocked: "BLOCKED",
Building: "BUILDING",
Canceled: "CANCELED",
Error: "ERROR",
Initializing: "INITIALIZING",
Queued: "QUEUED",
Ready: "READY",
} as const;
/**
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
*/
export type GetDeploymentResponseBodyDeploymentsReadyState = ClosedEnum<
typeof GetDeploymentResponseBodyDeploymentsReadyState
>;
/**
* An object that will contain a `code` and a `message` when the aliasing fails, otherwise the value will be `null`
*/
export type GetDeploymentResponseBodyDeploymentsAliasError = {
code: string;
message: string;
};
export type GetDeploymentResponseBodyDeploymentsAliasWarning = {
code: string;
message: string;
link?: string | undefined;
action?: string | undefined;
};
/**
* Returns the reduced deployment view for anonymous (`vcn_`) callers. Pool-team details are withheld.
*/
export type GetDeploymentResponseBody1 = {
alias?: Array<string> | undefined;
aliasAssigned: boolean;
/**
* A string holding the unique ID of the deployment
*/
id: string;
/**
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
*/
target?: GetDeploymentResponseBodyDeploymentsTarget | null | undefined;
/**
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
*/
readyState: GetDeploymentResponseBodyDeploymentsReadyState;
/**
* An object that will contain a `code` and a `message` when the aliasing fails, otherwise the value will be `null`
*/
aliasError?:
| GetDeploymentResponseBodyDeploymentsAliasError
| null
| undefined;
aliasWarning?:
| GetDeploymentResponseBodyDeploymentsAliasWarning
| null
| undefined;
errorCode?: string | undefined;
errorMessage?: string | null | undefined;
};
/** @internal */
export const GetDeploymentServicesMissing$inboundSchema: z.ZodType<
GetDeploymentServicesMissing,
z.ZodTypeDef,
unknown
> = z.union([
GetDeploymentMissingDeployments1$inboundSchema,
GetDeploymentMissingDeployments2$inboundSchema.and(
z.object({ type: z.literal("cookie") }),
),
GetDeploymentMissingDeployments2$inboundSchema.and(
z.object({ type: z.literal("header") }),
),
GetDeploymentMissingDeployments2$inboundSchema.and(
z.object({ type: z.literal("query") }),
),
]);
export function getDeploymentServicesMissingFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesMissing, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesMissing$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesMissing' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesRedirects$inboundSchema: z.ZodType<
GetDeploymentServicesRedirects,
z.ZodTypeDef,
unknown
> = z.object({
source: types.string(),
destination: types.string(),
permanent: types.optional(types.boolean()),
statusCode: types.optional(types.number()),
has: types.optional(z.array(GetDeploymentServicesHas$inboundSchema)),
missing: types.optional(
z.array(
z.union([
GetDeploymentMissingDeployments1$inboundSchema,
GetDeploymentMissingDeployments2$inboundSchema.and(
z.object({ type: z.literal("cookie") }),
),
GetDeploymentMissingDeployments2$inboundSchema.and(
z.object({ type: z.literal("header") }),
),
GetDeploymentMissingDeployments2$inboundSchema.and(
z.object({ type: z.literal("query") }),
),
]),
),
),
env: types.optional(z.array(types.string())),
});
export function getDeploymentServicesRedirectsFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesRedirects, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesRedirects$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesRedirects' from JSON`,
);
}
/** @internal */
export const GetDeploymentDestinationDeploymentsType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentDestinationDeploymentsType> = z
.nativeEnum(GetDeploymentDestinationDeploymentsType);
/** @internal */
export const GetDeploymentDestinationDeployments2$inboundSchema: z.ZodType<
GetDeploymentDestinationDeployments2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.optional(GetDeploymentDestinationDeploymentsType$inboundSchema),
service: types.string(),
path: types.optional(types.string()),
});
export function getDeploymentDestinationDeployments2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentDestinationDeployments2, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentDestinationDeployments2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentDestinationDeployments2' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDestination$inboundSchema: z.ZodType<
GetDeploymentServicesDestination,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetDeploymentDestinationDeployments2$inboundSchema),
types.string(),
]);
export function getDeploymentServicesDestinationFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesDestination, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesDestination$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesDestination' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsResponse200Type$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentServicesDeploymentsResponse200Type> = z
.nativeEnum(GetDeploymentServicesDeploymentsResponse200Type);
/** @internal */
export const GetDeploymentServicesOp$inboundSchema: z.ZodNativeEnum<
typeof GetDeploymentServicesOp
> = z.nativeEnum(GetDeploymentServicesOp);
/** @internal */
export const GetDeploymentServicesTransforms$inboundSchema: z.ZodType<
GetDeploymentServicesTransforms,
z.ZodTypeDef,
unknown
> = z.object({
type: GetDeploymentServicesDeploymentsResponse200Type$inboundSchema,
op: GetDeploymentServicesOp$inboundSchema,
args: types.string(),
env: types.optional(z.array(types.string())),
});
export function getDeploymentServicesTransformsFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesTransforms, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesTransforms$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesTransforms' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Type$inboundSchema:
z.ZodNativeEnum<
typeof GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Type
> = z.nativeEnum(
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Type,
);
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHasEq$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHasEq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHasEqFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHasEq,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHasEq$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHasEq' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
re: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBodyValue$inboundSchema:
z.ZodType<
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBodyValue,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2$inboundSchema
),
]);
export function getDeploymentHasDeploymentsResponse200ApplicationJSONResponseBodyValueFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBodyValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBodyValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBodyValue' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse2$inboundSchema: z.ZodType<
GetDeploymentHasDeploymentsResponse2,
z.ZodTypeDef,
unknown
> = z.object({
type:
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Type$inboundSchema,
key: types.string(),
value: types.optional(
smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesHas2$inboundSchema
),
]),
),
});
export function getDeploymentHasDeploymentsResponse2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentHasDeploymentsResponse2, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentHasDeploymentsResponse2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentHasDeploymentsResponse2' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesEq$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesEq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesEqFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesEq,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesEq$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesEq' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
re: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse200ApplicationJSONValue$inboundSchema:
z.ZodType<
GetDeploymentHasDeploymentsResponse200ApplicationJSONValue,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2$inboundSchema
),
]);
export function getDeploymentHasDeploymentsResponse200ApplicationJSONValueFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentHasDeploymentsResponse200ApplicationJSONValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentHasDeploymentsResponse200ApplicationJSONValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentHasDeploymentsResponse200ApplicationJSONValue' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse1$inboundSchema: z.ZodType<
GetDeploymentHasDeploymentsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("host"),
value: smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Rewrites2$inboundSchema
),
]),
});
export function getDeploymentHasDeploymentsResponse1FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentHasDeploymentsResponse1, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentHasDeploymentsResponse1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentHasDeploymentsResponse1' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsHas$inboundSchema: z.ZodType<
GetDeploymentServicesDeploymentsHas,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetDeploymentHasDeploymentsResponse1$inboundSchema),
z.lazy(() => GetDeploymentHasDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("cookie") }),
),
z.lazy(() => GetDeploymentHasDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("header") }),
),
z.lazy(() => GetDeploymentHasDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("query") }),
),
]);
export function getDeploymentServicesDeploymentsHasFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesDeploymentsHas, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentServicesDeploymentsHas$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesDeploymentsHas' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Type$inboundSchema:
z.ZodNativeEnum<
typeof GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Type
> = z.nativeEnum(
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Type,
);
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2Eq$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2Eq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2EqFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2Eq,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2Eq$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2Eq' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
re: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Value$inboundSchema:
z.ZodType<
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Value,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22$inboundSchema
),
]);
export function getDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2ValueFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Value,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Value$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Value' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse2$inboundSchema: z.ZodType<
GetDeploymentMissingDeploymentsResponse2,
z.ZodTypeDef,
unknown
> = z.object({
type:
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Type$inboundSchema,
key: types.string(),
value: types.optional(
smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing22$inboundSchema
),
]),
),
});
export function getDeploymentMissingDeploymentsResponse2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentMissingDeploymentsResponse2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentMissingDeploymentsResponse2$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentMissingDeploymentsResponse2' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissingEq$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissingEq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissingEqFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissingEq,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissingEq$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissingEq' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
re: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBodyValue$inboundSchema:
z.ZodType<
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBodyValue,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2$inboundSchema
),
]);
export function getDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBodyValueFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBodyValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBodyValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBodyValue' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse1$inboundSchema: z.ZodType<
GetDeploymentMissingDeploymentsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("host"),
value: smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RewritesMissing2$inboundSchema
),
]),
});
export function getDeploymentMissingDeploymentsResponse1FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentMissingDeploymentsResponse1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentMissingDeploymentsResponse1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentMissingDeploymentsResponse1' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsMissing$inboundSchema: z.ZodType<
GetDeploymentServicesDeploymentsMissing,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetDeploymentMissingDeploymentsResponse1$inboundSchema),
z.lazy(() => GetDeploymentMissingDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("cookie") }),
),
z.lazy(() => GetDeploymentMissingDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("header") }),
),
z.lazy(() => GetDeploymentMissingDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("query") }),
),
]);
export function getDeploymentServicesDeploymentsMissingFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentServicesDeploymentsMissing,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentServicesDeploymentsMissing$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentServicesDeploymentsMissing' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesRewrites$inboundSchema: z.ZodType<
GetDeploymentServicesRewrites,
z.ZodTypeDef,
unknown
> = z.object({
source: types.string(),
destination: smartUnion([
z.lazy(() => GetDeploymentDestinationDeployments2$inboundSchema),
types.string(),
]),
transforms: types.optional(
z.array(z.lazy(() => GetDeploymentServicesTransforms$inboundSchema)),
),
has: types.optional(
z.array(z.union([
z.lazy(() => GetDeploymentHasDeploymentsResponse1$inboundSchema),
z.lazy(() =>
GetDeploymentHasDeploymentsResponse2$inboundSchema
).and(z.object({ type: z.literal("cookie") })),
z.lazy(() => GetDeploymentHasDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("header") }),
),
z.lazy(() => GetDeploymentHasDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("query") }),
),
])),
),
missing: types.optional(
z.array(z.union([
z.lazy(() => GetDeploymentMissingDeploymentsResponse1$inboundSchema),
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse2$inboundSchema
).and(z.object({ type: z.literal("cookie") })),
z.lazy(() => GetDeploymentMissingDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("header") }),
),
z.lazy(() => GetDeploymentMissingDeploymentsResponse2$inboundSchema).and(
z.object({ type: z.literal("query") }),
),
])),
),
statusCode: types.optional(types.number()),
env: types.optional(z.array(types.string())),
respectOriginCacheControl: types.optional(types.boolean()),
});
export function getDeploymentServicesRewritesFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesRewrites, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesRewrites$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesRewrites' from JSON`,
);
}
/** @internal */
export const GetDeploymentRoutesDeploymentsHandle$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentRoutesDeploymentsHandle> = z.nativeEnum(
GetDeploymentRoutesDeploymentsHandle,
);
/** @internal */
export const GetDeploymentRoutesDeployments2$inboundSchema: z.ZodType<
GetDeploymentRoutesDeployments2,
z.ZodTypeDef,
unknown
> = z.object({
handle: GetDeploymentRoutesDeploymentsHandle$inboundSchema,
src: types.optional(types.string()),
dest: types.optional(types.string()),
status: types.optional(types.number()),
});
export function getDeploymentRoutesDeployments2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentRoutesDeployments2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentRoutesDeployments2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentRoutesDeployments2' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Type$inboundSchema:
z.ZodNativeEnum<
typeof GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Type
> = z.nativeEnum(
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Type,
);
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Eq$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Eq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1EqFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Eq,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Eq$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Eq' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
re: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue$inboundSchema:
z.ZodType<
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12$inboundSchema
),
]);
export function getDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValueFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse200ApplicationJson2$inboundSchema:
z.ZodType<
GetDeploymentHasDeploymentsResponse200ApplicationJson2,
z.ZodTypeDef,
unknown
> = z.object({
type:
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Type$inboundSchema,
key: types.string(),
value: types.optional(
smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes12$inboundSchema
),
]),
),
});
export function getDeploymentHasDeploymentsResponse200ApplicationJSON2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentHasDeploymentsResponse200ApplicationJson2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentHasDeploymentsResponse200ApplicationJson2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentHasDeploymentsResponse200ApplicationJson2' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesEq$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesEq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesEqFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesEq,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesEq$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesEq' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
re: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Value$inboundSchema:
z.ZodType<
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Value,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2$inboundSchema
),
]);
export function getDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2ValueFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Value,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Value$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentHasDeploymentsResponse200ApplicationJSONResponseBody2Services2Value' from JSON`,
);
}
/** @internal */
export const GetDeploymentHasDeploymentsResponse200ApplicationJson1$inboundSchema:
z.ZodType<
GetDeploymentHasDeploymentsResponse200ApplicationJson1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("host"),
value: smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes2$inboundSchema
),
]),
});
export function getDeploymentHasDeploymentsResponse200ApplicationJSON1FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentHasDeploymentsResponse200ApplicationJson1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentHasDeploymentsResponse200ApplicationJson1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentHasDeploymentsResponse200ApplicationJson1' from JSON`,
);
}
/** @internal */
export const GetDeploymentRoutesDeploymentsHas$inboundSchema: z.ZodType<
GetDeploymentRoutesDeploymentsHas,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() =>
GetDeploymentHasDeploymentsResponse200ApplicationJson1$inboundSchema
),
z.lazy(() =>
GetDeploymentHasDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("cookie") })),
z.lazy(() =>
GetDeploymentHasDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("header") })),
z.lazy(() =>
GetDeploymentHasDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("query") })),
]);
export function getDeploymentRoutesDeploymentsHasFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentRoutesDeploymentsHas, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentRoutesDeploymentsHas$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentRoutesDeploymentsHas' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Type$inboundSchema:
z.ZodNativeEnum<
typeof GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Type
> = z.nativeEnum(
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Type,
);
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2Eq$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2Eq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2EqFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2Eq,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2Eq$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2Eq' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
re: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Value$inboundSchema:
z.ZodType<
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Value,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22$inboundSchema
),
]);
export function getDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2ValueFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Value,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Value$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Value' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse200ApplicationJson2$inboundSchema:
z.ZodType<
GetDeploymentMissingDeploymentsResponse200ApplicationJson2,
z.ZodTypeDef,
unknown
> = z.object({
type:
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2Type$inboundSchema,
key: types.string(),
value: types.optional(
smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing22$inboundSchema
),
]),
),
});
export function getDeploymentMissingDeploymentsResponse200ApplicationJSON2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentMissingDeploymentsResponse200ApplicationJson2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentMissingDeploymentsResponse200ApplicationJson2' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1MissingEq$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1MissingEq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1MissingEqFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1MissingEq,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1MissingEq$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1MissingEq' from JSON`,
);
}
/** @internal */
export const GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2$inboundSchema:
z.ZodType<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
re: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue$inboundSchema:
z.ZodType<
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2$inboundSchema
),
]);
export function getDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValueFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentMissingDeploymentsResponse200ApplicationJSONResponseBody2Services2RoutesValue' from JSON`,
);
}
/** @internal */
export const GetDeploymentMissingDeploymentsResponse200ApplicationJson1$inboundSchema:
z.ZodType<
GetDeploymentMissingDeploymentsResponse200ApplicationJson1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("host"),
value: smartUnion([
types.string(),
z.lazy(() =>
GetDeploymentValueDeploymentsResponse200ApplicationJSONResponseBody2Services2Routes1Missing2$inboundSchema
),
]),
});
export function getDeploymentMissingDeploymentsResponse200ApplicationJSON1FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentMissingDeploymentsResponse200ApplicationJson1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson1$inboundSchema
.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentMissingDeploymentsResponse200ApplicationJson1' from JSON`,
);
}
/** @internal */
export const GetDeploymentRoutesDeploymentsMissing$inboundSchema: z.ZodType<
GetDeploymentRoutesDeploymentsMissing,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson1$inboundSchema
),
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("cookie") })),
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("header") })),
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("query") })),
]);
export function getDeploymentRoutesDeploymentsMissingFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentRoutesDeploymentsMissing, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentRoutesDeploymentsMissing$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentRoutesDeploymentsMissing' from JSON`,
);
}
/** @internal */
export const GetDeploymentRoutesDeploymentsAction$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentRoutesDeploymentsAction> = z.nativeEnum(
GetDeploymentRoutesDeploymentsAction,
);
/** @internal */
export const GetDeploymentRoutesDeploymentsMitigate$inboundSchema: z.ZodType<
GetDeploymentRoutesDeploymentsMitigate,
z.ZodTypeDef,
unknown
> = z.object({
action: GetDeploymentRoutesDeploymentsAction$inboundSchema,
});
export function getDeploymentRoutesDeploymentsMitigateFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentRoutesDeploymentsMitigate, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentRoutesDeploymentsMitigate$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentRoutesDeploymentsMitigate' from JSON`,
);
}
/** @internal */
export const GetDeploymentTransformsDeploymentsResponse200Op$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentTransformsDeploymentsResponse200Op> = z
.nativeEnum(GetDeploymentTransformsDeploymentsResponse200Op);
/** @internal */
export const GetDeploymentTransformsDeployments2$inboundSchema: z.ZodType<
GetDeploymentTransformsDeployments2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("request.path"),
op: GetDeploymentTransformsDeploymentsResponse200Op$inboundSchema,
args: types.string(),
env: types.optional(z.array(types.string())),
});
export function getDeploymentTransformsDeployments2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentTransformsDeployments2, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentTransformsDeployments2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentTransformsDeployments2' from JSON`,
);
}
/** @internal */
export const GetDeploymentTransformsDeploymentsResponse200Type$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentTransformsDeploymentsResponse200Type> = z
.nativeEnum(GetDeploymentTransformsDeploymentsResponse200Type);
/** @internal */
export const GetDeploymentTransformsDeploymentsResponseOp$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentTransformsDeploymentsResponseOp> = z
.nativeEnum(GetDeploymentTransformsDeploymentsResponseOp);
/** @internal */
export const GetDeploymentKeyDeploymentsEq$inboundSchema: z.ZodType<
GetDeploymentKeyDeploymentsEq,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentKeyDeploymentsEqFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentKeyDeploymentsEq, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentKeyDeploymentsEq$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentKeyDeploymentsEq' from JSON`,
);
}
/** @internal */
export const GetDeploymentKeyDeployments2$inboundSchema: z.ZodType<
GetDeploymentKeyDeployments2,
z.ZodTypeDef,
unknown
> = z.object({
eq: types.optional(smartUnion([types.string(), types.number()])),
neq: types.optional(types.string()),
inc: types.optional(z.array(types.string())),
ninc: types.optional(z.array(types.string())),
pre: types.optional(types.string()),
suf: types.optional(types.string()),
gt: types.optional(types.number()),
gte: types.optional(types.number()),
lt: types.optional(types.number()),
lte: types.optional(types.number()),
});
export function getDeploymentKeyDeployments2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentKeyDeployments2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentKeyDeployments2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentKeyDeployments2' from JSON`,
);
}
/** @internal */
export const GetDeploymentTransformsDeploymentsKey$inboundSchema: z.ZodType<
GetDeploymentTransformsDeploymentsKey,
z.ZodTypeDef,
unknown
> = smartUnion([
types.string(),
z.lazy(() => GetDeploymentKeyDeployments2$inboundSchema),
]);
export function getDeploymentTransformsDeploymentsKeyFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentTransformsDeploymentsKey, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentTransformsDeploymentsKey$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentTransformsDeploymentsKey' from JSON`,
);
}
/** @internal */
export const GetDeploymentTransformsDeploymentsTarget$inboundSchema: z.ZodType<
GetDeploymentTransformsDeploymentsTarget,
z.ZodTypeDef,
unknown
> = z.object({
key: smartUnion([
types.string(),
z.lazy(() => GetDeploymentKeyDeployments2$inboundSchema),
]),
});
export function getDeploymentTransformsDeploymentsTargetFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentTransformsDeploymentsTarget,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentTransformsDeploymentsTarget$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentTransformsDeploymentsTarget' from JSON`,
);
}
/** @internal */
export const GetDeploymentTransformsDeploymentsArgs$inboundSchema: z.ZodType<
GetDeploymentTransformsDeploymentsArgs,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), z.array(types.string())]);
export function getDeploymentTransformsDeploymentsArgsFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentTransformsDeploymentsArgs, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentTransformsDeploymentsArgs$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentTransformsDeploymentsArgs' from JSON`,
);
}
/** @internal */
export const GetDeploymentTransformsDeployments1$inboundSchema: z.ZodType<
GetDeploymentTransformsDeployments1,
z.ZodTypeDef,
unknown
> = z.object({
type: GetDeploymentTransformsDeploymentsResponse200Type$inboundSchema,
op: GetDeploymentTransformsDeploymentsResponseOp$inboundSchema,
target: z.lazy(() => GetDeploymentTransformsDeploymentsTarget$inboundSchema),
args: types.optional(smartUnion([types.string(), z.array(types.string())])),
env: types.optional(z.array(types.string())),
});
export function getDeploymentTransformsDeployments1FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentTransformsDeployments1, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentTransformsDeployments1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentTransformsDeployments1' from JSON`,
);
}
/** @internal */
export const GetDeploymentRoutesDeploymentsTransforms$inboundSchema: z.ZodType<
GetDeploymentRoutesDeploymentsTransforms,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetDeploymentTransformsDeployments1$inboundSchema).and(
z.object({ type: z.literal("request.headers") }),
),
z.lazy(() => GetDeploymentTransformsDeployments1$inboundSchema).and(
z.object({ type: z.literal("request.query") }),
),
z.lazy(() => GetDeploymentTransformsDeployments1$inboundSchema).and(
z.object({ type: z.literal("response.headers") }),
),
z.lazy(() => GetDeploymentTransformsDeployments2$inboundSchema),
]);
export function getDeploymentRoutesDeploymentsTransformsFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentRoutesDeploymentsTransforms,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentRoutesDeploymentsTransforms$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentRoutesDeploymentsTransforms' from JSON`,
);
}
/** @internal */
export const GetDeploymentRoutesDeploymentsLocale$inboundSchema: z.ZodType<
GetDeploymentRoutesDeploymentsLocale,
z.ZodTypeDef,
unknown
> = z.object({
redirect: types.optional(z.record(types.string())),
cookie: types.optional(types.string()),
});
export function getDeploymentRoutesDeploymentsLocaleFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentRoutesDeploymentsLocale, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentRoutesDeploymentsLocale$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentRoutesDeploymentsLocale' from JSON`,
);
}
/** @internal */
export const GetDeploymentDestinationDeploymentsResponseType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentDestinationDeploymentsResponseType> = z
.nativeEnum(GetDeploymentDestinationDeploymentsResponseType);
/** @internal */
export const GetDeploymentDestinationDeploymentsResponse2$inboundSchema:
z.ZodType<
GetDeploymentDestinationDeploymentsResponse2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.optional(
GetDeploymentDestinationDeploymentsResponseType$inboundSchema,
),
service: types.string(),
path: types.optional(types.string()),
});
export function getDeploymentDestinationDeploymentsResponse2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentDestinationDeploymentsResponse2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentDestinationDeploymentsResponse2$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentDestinationDeploymentsResponse2' from JSON`,
);
}
/** @internal */
export const GetDeploymentRoutesDeploymentsDestination$inboundSchema: z.ZodType<
GetDeploymentRoutesDeploymentsDestination,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetDeploymentDestinationDeploymentsResponse2$inboundSchema),
types.string(),
]);
export function getDeploymentRoutesDeploymentsDestinationFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentRoutesDeploymentsDestination,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentRoutesDeploymentsDestination$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentRoutesDeploymentsDestination' from JSON`,
);
}
/** @internal */
export const GetDeploymentRoutesDeployments1$inboundSchema: z.ZodType<
GetDeploymentRoutesDeployments1,
z.ZodTypeDef,
unknown
> = z.object({
src: types.string(),
dest: types.optional(types.string()),
headers: types.optional(z.record(types.string())),
methods: types.optional(z.array(types.string())),
continue: types.optional(types.boolean()),
override: types.optional(types.boolean()),
caseSensitive: types.optional(types.boolean()),
check: types.optional(types.boolean()),
important: types.optional(types.boolean()),
status: types.optional(types.number()),
has: types.optional(
z.array(z.union([
z.lazy(() =>
GetDeploymentHasDeploymentsResponse200ApplicationJson1$inboundSchema
),
z.lazy(() =>
GetDeploymentHasDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("cookie") })),
z.lazy(() =>
GetDeploymentHasDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("header") })),
z.lazy(() =>
GetDeploymentHasDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("query") })),
])),
),
missing: types.optional(
z.array(z.union([
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson1$inboundSchema
),
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("cookie") })),
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("header") })),
z.lazy(() =>
GetDeploymentMissingDeploymentsResponse200ApplicationJson2$inboundSchema
).and(z.object({ type: z.literal("query") })),
])),
),
mitigate: types.optional(
z.lazy(() => GetDeploymentRoutesDeploymentsMitigate$inboundSchema),
),
transforms: types.optional(
z.array(z.union([
z.lazy(() => GetDeploymentTransformsDeployments1$inboundSchema).and(
z.object({ type: z.literal("request.headers") }),
),
z.lazy(() => GetDeploymentTransformsDeployments1$inboundSchema).and(
z.object({ type: z.literal("request.query") }),
),
z.lazy(() => GetDeploymentTransformsDeployments1$inboundSchema).and(
z.object({ type: z.literal("response.headers") }),
),
z.lazy(() => GetDeploymentTransformsDeployments2$inboundSchema),
])),
),
env: types.optional(z.array(types.string())),
locale: types.optional(
z.lazy(() => GetDeploymentRoutesDeploymentsLocale$inboundSchema),
),
source: types.optional(types.string()),
destination: types.optional(
smartUnion([
z.lazy(() => GetDeploymentDestinationDeploymentsResponse2$inboundSchema),
types.string(),
]),
),
statusCode: types.optional(types.number()),
middlewarePath: types.optional(types.string()),
middlewareRawSrc: types.optional(z.array(types.string())),
middleware: types.optional(types.number()),
respectOriginCacheControl: types.optional(types.boolean()),
});
export function getDeploymentRoutesDeployments1FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentRoutesDeployments1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentRoutesDeployments1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentRoutesDeployments1' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesRoutes$inboundSchema: z.ZodType<
GetDeploymentServicesRoutes,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetDeploymentRoutesDeployments1$inboundSchema),
z.lazy(() => GetDeploymentRoutesDeployments2$inboundSchema),
]);
export function getDeploymentServicesRoutesFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesRoutes, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesRoutes$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesRoutes' from JSON`,
);
}
/** @internal */
export const GetDeploymentServices2$inboundSchema: z.ZodType<
GetDeploymentServices2,
z.ZodTypeDef,
unknown
> = z.object({
schema: types.literal("experimentalServicesV2"),
name: types.string(),
root: types.string(),
framework: types.optional(types.string()),
runtime: types.optional(types.string()),
entrypoint: types.optional(types.string()),
command: types.optional(z.array(types.string())),
builder: GetDeploymentServicesDeploymentsBuilder$inboundSchema,
installCommand: types.optional(types.string()),
buildCommand: types.optional(types.string()),
devCommand: types.optional(types.string()),
ignoreCommand: types.optional(types.string()),
outputDirectory: types.optional(types.string()),
bindings: types.optional(
z.array(GetDeploymentServicesBindings$inboundSchema),
),
functions: types.optional(
z.record(GetDeploymentServicesFunctions$inboundSchema),
),
headers: types.optional(z.array(GetDeploymentServicesHeaders$inboundSchema)),
redirects: types.optional(
z.array(z.lazy(() => GetDeploymentServicesRedirects$inboundSchema)),
),
rewrites: types.optional(
z.array(z.lazy(() => GetDeploymentServicesRewrites$inboundSchema)),
),
routes: types.optional(
z.array(smartUnion([
z.lazy(() => GetDeploymentRoutesDeployments1$inboundSchema),
z.lazy(() =>
GetDeploymentRoutesDeployments2$inboundSchema
),
])),
),
cleanUrls: types.optional(types.boolean()),
trailingSlash: types.optional(types.boolean()),
});
export function getDeploymentServices2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServices2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServices2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServices2' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesType$inboundSchema: z.ZodNativeEnum<
typeof GetDeploymentServicesType
> = z.nativeEnum(GetDeploymentServicesType);
/** @internal */
export const GetDeploymentServicesTrigger$inboundSchema: z.ZodNativeEnum<
typeof GetDeploymentServicesTrigger
> = z.nativeEnum(GetDeploymentServicesTrigger);
/** @internal */
export const GetDeploymentServicesIncludeFiles$inboundSchema: z.ZodType<
GetDeploymentServicesIncludeFiles,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), z.array(types.string())]);
export function getDeploymentServicesIncludeFilesFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesIncludeFiles, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesIncludeFiles$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesIncludeFiles' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesExcludeFiles$inboundSchema: z.ZodType<
GetDeploymentServicesExcludeFiles,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), z.array(types.string())]);
export function getDeploymentServicesExcludeFilesFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesExcludeFiles, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesExcludeFiles$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesExcludeFiles' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsArchitecture$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentServicesDeploymentsArchitecture> = z
.nativeEnum(GetDeploymentServicesDeploymentsArchitecture);
/** @internal */
export const GetDeploymentMaxDurationDeploymentsResponse2$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentMaxDurationDeploymentsResponse2> = z
.nativeEnum(GetDeploymentMaxDurationDeploymentsResponse2);
/** @internal */
export const GetDeploymentServicesDeploymentsMaxDuration$inboundSchema:
z.ZodType<
GetDeploymentServicesDeploymentsMaxDuration,
z.ZodTypeDef,
unknown
> = smartUnion([
types.number(),
GetDeploymentMaxDurationDeploymentsResponse2$inboundSchema,
]);
export function getDeploymentServicesDeploymentsMaxDurationFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentServicesDeploymentsMaxDuration,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentServicesDeploymentsMaxDuration$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentServicesDeploymentsMaxDuration' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsMode$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentServicesDeploymentsMode> = z.nativeEnum(
GetDeploymentServicesDeploymentsMode,
);
/** @internal */
export const GetDeploymentServicesDeploymentsAffinity$inboundSchema: z.ZodType<
GetDeploymentServicesDeploymentsAffinity,
z.ZodTypeDef,
unknown
> = z.object({
mode: GetDeploymentServicesDeploymentsMode$inboundSchema,
});
export function getDeploymentServicesDeploymentsAffinityFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentServicesDeploymentsAffinity,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentServicesDeploymentsAffinity$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentServicesDeploymentsAffinity' from JSON`,
);
}
/** @internal */
export const GetDeploymentExperimentalTriggersDeploymentsResponse3$inboundSchema:
z.ZodType<
GetDeploymentExperimentalTriggersDeploymentsResponse3,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("schedule/v1beta"),
});
export function getDeploymentExperimentalTriggersDeploymentsResponse3FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentExperimentalTriggersDeploymentsResponse3,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentExperimentalTriggersDeploymentsResponse3$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentExperimentalTriggersDeploymentsResponse3' from JSON`,
);
}
/** @internal */
export const GetDeploymentExperimentalTriggersDeploymentsResponse2$inboundSchema:
z.ZodType<
GetDeploymentExperimentalTriggersDeploymentsResponse2,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("queue/v2beta"),
topic: types.string(),
maxDeliveries: types.optional(types.number()),
retryAfterSeconds: types.optional(types.number()),
initialDelaySeconds: types.optional(types.number()),
maxConcurrency: types.optional(types.number()),
});
export function getDeploymentExperimentalTriggersDeploymentsResponse2FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentExperimentalTriggersDeploymentsResponse2,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentExperimentalTriggersDeploymentsResponse2$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentExperimentalTriggersDeploymentsResponse2' from JSON`,
);
}
/** @internal */
export const GetDeploymentExperimentalTriggersDeploymentsResponse1$inboundSchema:
z.ZodType<
GetDeploymentExperimentalTriggersDeploymentsResponse1,
z.ZodTypeDef,
unknown
> = z.object({
type: types.literal("queue/v1beta"),
consumer: types.string(),
topic: types.string(),
maxDeliveries: types.optional(types.number()),
retryAfterSeconds: types.optional(types.number()),
initialDelaySeconds: types.optional(types.number()),
maxConcurrency: types.optional(types.number()),
});
export function getDeploymentExperimentalTriggersDeploymentsResponse1FromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentExperimentalTriggersDeploymentsResponse1,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentExperimentalTriggersDeploymentsResponse1$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentExperimentalTriggersDeploymentsResponse1' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsExperimentalTriggers$inboundSchema:
z.ZodType<
GetDeploymentServicesDeploymentsExperimentalTriggers,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() =>
GetDeploymentExperimentalTriggersDeploymentsResponse1$inboundSchema
),
z.lazy(() =>
GetDeploymentExperimentalTriggersDeploymentsResponse2$inboundSchema
),
z.lazy(() =>
GetDeploymentExperimentalTriggersDeploymentsResponse3$inboundSchema
),
]);
export function getDeploymentServicesDeploymentsExperimentalTriggersFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentServicesDeploymentsExperimentalTriggers,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentServicesDeploymentsExperimentalTriggers$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentServicesDeploymentsExperimentalTriggers' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsFunctions$inboundSchema: z.ZodType<
GetDeploymentServicesDeploymentsFunctions,
z.ZodTypeDef,
unknown
> = z.object({
architecture: types.optional(
GetDeploymentServicesDeploymentsArchitecture$inboundSchema,
),
memory: types.optional(types.number()),
maxDuration: types.optional(
smartUnion([
types.number(),
GetDeploymentMaxDurationDeploymentsResponse2$inboundSchema,
]),
),
affinity: types.optional(
z.lazy(() => GetDeploymentServicesDeploymentsAffinity$inboundSchema),
),
maxConcurrency: types.optional(types.number()),
regions: types.optional(z.array(types.string())),
functionFailoverRegions: types.optional(z.array(types.string())),
runtime: types.optional(types.string()),
includeFiles: types.optional(types.string()),
excludeFiles: types.optional(types.string()),
experimentalTriggers: types.optional(
z.array(z.union([
z.lazy(() =>
GetDeploymentExperimentalTriggersDeploymentsResponse1$inboundSchema
),
z.lazy(() =>
GetDeploymentExperimentalTriggersDeploymentsResponse2$inboundSchema
),
z.lazy(() =>
GetDeploymentExperimentalTriggersDeploymentsResponse3$inboundSchema
),
])),
),
supportsCancellation: types.optional(types.boolean()),
});
export function getDeploymentServicesDeploymentsFunctionsFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentServicesDeploymentsFunctions,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentServicesDeploymentsFunctions$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentServicesDeploymentsFunctions' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsProjectSettings$inboundSchema:
z.ZodType<
GetDeploymentServicesDeploymentsProjectSettings,
z.ZodTypeDef,
unknown
> = z.object({
framework: z.nullable(types.string()).optional(),
devCommand: z.nullable(types.string()).optional(),
installCommand: z.nullable(types.string()).optional(),
buildCommand: z.nullable(types.string()).optional(),
outputDirectory: z.nullable(types.string()).optional(),
rootDirectory: z.nullable(types.string()).optional(),
nodeVersion: types.optional(types.string()),
monorepoManager: z.nullable(types.string()).optional(),
createdAt: types.optional(types.number()),
autoExposeSystemEnvs: types.optional(types.boolean()),
sourceFilesOutsideRootDirectory: types.optional(types.boolean()),
directoryListing: types.optional(types.boolean()),
gitForkProtection: types.optional(types.boolean()),
commandForIgnoringBuildStep: z.nullable(types.string()).optional(),
});
export function getDeploymentServicesDeploymentsProjectSettingsFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentServicesDeploymentsProjectSettings,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentServicesDeploymentsProjectSettings$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentServicesDeploymentsProjectSettings' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesMiddlewareRuntime$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentServicesMiddlewareRuntime> = z.nativeEnum(
GetDeploymentServicesMiddlewareRuntime,
);
/** @internal */
export const GetDeploymentServicesMiddlewareMatcher$inboundSchema: z.ZodType<
GetDeploymentServicesMiddlewareMatcher,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), z.array(types.string())]);
export function getDeploymentServicesMiddlewareMatcherFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesMiddlewareMatcher, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentServicesMiddlewareMatcher$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesMiddlewareMatcher' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesConfig$inboundSchema: z.ZodType<
GetDeploymentServicesConfig,
z.ZodTypeDef,
unknown
> = z.object({
bunVersion: types.optional(types.string()),
maxLambdaSize: types.optional(types.string()),
includeFiles: types.optional(
smartUnion([types.string(), z.array(types.string())]),
),
excludeFiles: types.optional(
smartUnion([types.string(), z.array(types.string())]),
),
bundle: types.optional(types.boolean()),
ldsflags: types.optional(types.string()),
helpers: types.optional(types.boolean()),
rust: types.optional(types.string()),
debug: types.optional(types.boolean()),
zeroConfig: types.optional(types.boolean()),
import: types.optional(z.record(types.string())),
functions: types.optional(
z.record(z.lazy(() =>
GetDeploymentServicesDeploymentsFunctions$inboundSchema
)),
),
projectSettings: types.optional(
z.lazy(() => GetDeploymentServicesDeploymentsProjectSettings$inboundSchema),
),
outputDirectory: types.optional(types.string()),
installCommand: types.optional(types.string()),
buildCommand: types.optional(types.string()),
devCommand: types.optional(types.string()),
framework: z.nullable(types.string()).optional(),
nodeVersion: types.optional(types.string()),
middleware: types.optional(types.boolean()),
middlewareRuntime: types.optional(
GetDeploymentServicesMiddlewareRuntime$inboundSchema,
),
middlewareMatcher: types.optional(
smartUnion([types.string(), z.array(types.string())]),
),
serviceName: types.optional(types.string()),
});
export function getDeploymentServicesConfigFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesConfig, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesConfig$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesConfig' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesBuilder$inboundSchema: z.ZodType<
GetDeploymentServicesBuilder,
z.ZodTypeDef,
unknown
> = z.object({
use: types.string(),
src: types.optional(types.string()),
config: types.optional(
z.lazy(() => GetDeploymentServicesConfig$inboundSchema),
),
});
export function getDeploymentServicesBuilderFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesBuilder, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesBuilder$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesBuilder' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesRoutePrefixSource$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentServicesRoutePrefixSource> = z.nativeEnum(
GetDeploymentServicesRoutePrefixSource,
);
/** @internal */
export const GetDeploymentServicesSchedule$inboundSchema: z.ZodType<
GetDeploymentServicesSchedule,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), z.array(types.string())]);
export function getDeploymentServicesScheduleFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesSchedule, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesSchedule$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesSchedule' from JSON`,
);
}
/** @internal */
export const GetDeploymentTopics2$inboundSchema: z.ZodType<
GetDeploymentTopics2,
z.ZodTypeDef,
unknown
> = z.object({
topic: types.string(),
retryAfterSeconds: types.optional(types.number()),
initialDelaySeconds: types.optional(types.number()),
});
export function getDeploymentTopics2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentTopics2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentTopics2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentTopics2' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesTopics$inboundSchema: z.ZodType<
GetDeploymentServicesTopics,
z.ZodTypeDef,
unknown
> = smartUnion([
z.array(types.string()),
z.array(z.lazy(() => GetDeploymentTopics2$inboundSchema)),
]);
export function getDeploymentServicesTopicsFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesTopics, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesTopics$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesTopics' from JSON`,
);
}
/** @internal */
export const GetDeploymentServicesDeploymentsResponseType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentServicesDeploymentsResponseType> = z
.nativeEnum(GetDeploymentServicesDeploymentsResponseType);
/** @internal */
export const GetDeploymentServicesEnv$inboundSchema: z.ZodType<
GetDeploymentServicesEnv,
z.ZodTypeDef,
unknown
> = z.object({
type: GetDeploymentServicesDeploymentsResponseType$inboundSchema,
service: types.string(),
});
export function getDeploymentServicesEnvFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServicesEnv, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServicesEnv$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServicesEnv' from JSON`,
);
}
/** @internal */
export const GetDeploymentServices1$inboundSchema: z.ZodType<
GetDeploymentServices1,
z.ZodTypeDef,
unknown
> = z.object({
schema: types.literal("experimentalServices"),
name: types.string(),
type: GetDeploymentServicesType$inboundSchema,
trigger: types.optional(GetDeploymentServicesTrigger$inboundSchema),
group: types.optional(types.string()),
workspace: types.string(),
entrypoint: types.optional(types.string()),
framework: types.optional(types.string()),
builder: z.lazy(() => GetDeploymentServicesBuilder$inboundSchema),
runtime: types.optional(types.string()),
buildCommand: types.optional(types.string()),
installCommand: types.optional(types.string()),
preDeployCommand: types.optional(types.string()),
routePrefix: types.optional(types.string()),
routePrefixSource: types.optional(
GetDeploymentServicesRoutePrefixSource$inboundSchema,
),
subdomain: types.optional(types.string()),
schedule: types.optional(
smartUnion([types.string(), z.array(types.string())]),
),
handlerFunction: types.optional(types.string()),
topics: types.optional(
smartUnion([
z.array(types.string()),
z.array(z.lazy(() => GetDeploymentTopics2$inboundSchema)),
]),
),
env: types.optional(
z.record(z.lazy(() => GetDeploymentServicesEnv$inboundSchema)),
),
});
export function getDeploymentServices1FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentServices1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentServices1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentServices1' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyServices$inboundSchema: z.ZodType<
GetDeploymentResponseBodyServices,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetDeploymentServices1$inboundSchema),
z.lazy(() => GetDeploymentServices2$inboundSchema),
]);
export function getDeploymentResponseBodyServicesFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyServices, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBodyServices$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyServices' from JSON`,
);
}
/** @internal */
export const GetDeploymentGitRepoDeploymentsResponseOwnerType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentGitRepoDeploymentsResponseOwnerType> = z
.nativeEnum(GetDeploymentGitRepoDeploymentsResponseOwnerType);
/** @internal */
export const GetDeploymentGitRepo5$inboundSchema: z.ZodType<
GetDeploymentGitRepo5,
z.ZodTypeDef,
unknown
> = z.object({
owner: types.string(),
repo: types.string(),
repoId: types.string(),
type: types.literal("cursor-origin"),
path: types.string(),
defaultBranch: types.string(),
name: types.string(),
private: types.boolean(),
ownerType: GetDeploymentGitRepoDeploymentsResponseOwnerType$inboundSchema,
});
export function getDeploymentGitRepo5FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentGitRepo5, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentGitRepo5$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentGitRepo5' from JSON`,
);
}
/** @internal */
export const GetDeploymentGitRepoDeploymentsOwnerType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentGitRepoDeploymentsOwnerType> = z
.nativeEnum(GetDeploymentGitRepoDeploymentsOwnerType);
/** @internal */
export const GetDeploymentGitRepo4$inboundSchema: z.ZodType<
GetDeploymentGitRepo4,
z.ZodTypeDef,
unknown
> = z.object({
org: types.string(),
repo: types.string(),
type: types.literal("vercel"),
path: types.string(),
defaultBranch: types.string(),
name: types.string(),
private: types.boolean(),
ownerType: GetDeploymentGitRepoDeploymentsOwnerType$inboundSchema,
});
export function getDeploymentGitRepo4FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentGitRepo4, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentGitRepo4$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentGitRepo4' from JSON`,
);
}
/** @internal */
export const GetDeploymentGitRepoOwnerType$inboundSchema: z.ZodNativeEnum<
typeof GetDeploymentGitRepoOwnerType
> = z.nativeEnum(GetDeploymentGitRepoOwnerType);
/** @internal */
export const GetDeploymentGitRepo3$inboundSchema: z.ZodType<
GetDeploymentGitRepo3,
z.ZodTypeDef,
unknown
> = z.object({
owner: types.string(),
repoUuid: types.string(),
slug: types.string(),
type: types.literal("bitbucket"),
workspaceUuid: types.string(),
path: types.string(),
defaultBranch: types.string(),
name: types.string(),
private: types.boolean(),
ownerType: GetDeploymentGitRepoOwnerType$inboundSchema,
});
export function getDeploymentGitRepo3FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentGitRepo3, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentGitRepo3$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentGitRepo3' from JSON`,
);
}
/** @internal */
export const GetDeploymentGitRepoDeploymentsResponse200ApplicationJSONOwnerType$inboundSchema:
z.ZodNativeEnum<
typeof GetDeploymentGitRepoDeploymentsResponse200ApplicationJSONOwnerType
> = z.nativeEnum(
GetDeploymentGitRepoDeploymentsResponse200ApplicationJSONOwnerType,
);
/** @internal */
export const GetDeploymentGitRepo2$inboundSchema: z.ZodType<
GetDeploymentGitRepo2,
z.ZodTypeDef,
unknown
> = z.object({
org: types.string(),
repo: types.string(),
repoId: types.number(),
type: types.literal("github"),
repoOwnerId: types.number(),
path: types.string(),
defaultBranch: types.string(),
name: types.string(),
private: types.boolean(),
ownerType:
GetDeploymentGitRepoDeploymentsResponse200ApplicationJSONOwnerType$inboundSchema,
});
export function getDeploymentGitRepo2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentGitRepo2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentGitRepo2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentGitRepo2' from JSON`,
);
}
/** @internal */
export const GetDeploymentGitRepoDeploymentsResponse200OwnerType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentGitRepoDeploymentsResponse200OwnerType> =
z.nativeEnum(GetDeploymentGitRepoDeploymentsResponse200OwnerType);
/** @internal */
export const GetDeploymentGitRepo1$inboundSchema: z.ZodType<
GetDeploymentGitRepo1,
z.ZodTypeDef,
unknown
> = z.object({
namespace: types.string(),
projectId: types.number(),
type: types.literal("gitlab"),
url: types.string(),
path: types.string(),
defaultBranch: types.string(),
name: types.string(),
private: types.boolean(),
ownerType: GetDeploymentGitRepoDeploymentsResponse200OwnerType$inboundSchema,
});
export function getDeploymentGitRepo1FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentGitRepo1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentGitRepo1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentGitRepo1' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyGitRepo$inboundSchema: z.ZodType<
GetDeploymentResponseBodyGitRepo,
z.ZodTypeDef,
unknown
> = z.union([
z.lazy(() => GetDeploymentGitRepo1$inboundSchema),
z.lazy(() => GetDeploymentGitRepo2$inboundSchema),
z.lazy(() => GetDeploymentGitRepo3$inboundSchema),
z.lazy(() => GetDeploymentGitRepo4$inboundSchema),
z.lazy(() => GetDeploymentGitRepo5$inboundSchema),
]);
export function getDeploymentResponseBodyGitRepoFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyGitRepo, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBodyGitRepo$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyGitRepo' from JSON`,
);
}
/** @internal */
export const GetDeploymentFlags2$inboundSchema: z.ZodType<
GetDeploymentFlags2,
z.ZodTypeDef,
unknown
> = z.object({});
export function getDeploymentFlags2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentFlags2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentFlags2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentFlags2' from JSON`,
);
}
/** @internal */
export const GetDeploymentFlagsOptions$inboundSchema: z.ZodType<
GetDeploymentFlagsOptions,
z.ZodTypeDef,
unknown
> = z.object({
value: types.nullable(FlagJSONValue$inboundSchema),
label: types.optional(types.string()),
});
export function getDeploymentFlagsOptionsFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentFlagsOptions, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentFlagsOptions$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentFlagsOptions' from JSON`,
);
}
/** @internal */
export const GetDeploymentFlagsDefinitions$inboundSchema: z.ZodType<
GetDeploymentFlagsDefinitions,
z.ZodTypeDef,
unknown
> = z.object({
options: types.optional(
z.array(z.lazy(() => GetDeploymentFlagsOptions$inboundSchema)),
),
url: types.optional(types.string()),
description: types.optional(types.string()),
});
export function getDeploymentFlagsDefinitionsFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentFlagsDefinitions, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentFlagsDefinitions$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentFlagsDefinitions' from JSON`,
);
}
/** @internal */
export const GetDeploymentFlags1$inboundSchema: z.ZodType<
GetDeploymentFlags1,
z.ZodTypeDef,
unknown
> = z.object({
definitions: z.record(
z.lazy(() => GetDeploymentFlagsDefinitions$inboundSchema),
),
});
export function getDeploymentFlags1FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentFlags1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentFlags1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentFlags1' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyFlags$inboundSchema: z.ZodType<
GetDeploymentResponseBodyFlags,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetDeploymentFlags1$inboundSchema),
z.array(z.lazy(() => GetDeploymentFlags2$inboundSchema)),
]);
export function getDeploymentResponseBodyFlagsFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyFlags, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBodyFlags$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyFlags' from JSON`,
);
}
/** @internal */
export const GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentMicrofrontendsMfeConfigUploadState> = z
.nativeEnum(GetDeploymentMicrofrontendsMfeConfigUploadState);
/** @internal */
export const GetDeploymentMicrofrontends2$inboundSchema: z.ZodType<
GetDeploymentMicrofrontends2,
z.ZodTypeDef,
unknown
> = z.object({
isDefaultApp: types.literal(true),
mfeConfigUploadState: types.optional(
GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema,
),
defaultAppProjectName: types.string(),
defaultRoute: types.optional(types.string()),
groupIds: z.array(types.string()),
});
export function getDeploymentMicrofrontends2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentMicrofrontends2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentMicrofrontends2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentMicrofrontends2' from JSON`,
);
}
/** @internal */
export const GetDeploymentMicrofrontends1$inboundSchema: z.ZodType<
GetDeploymentMicrofrontends1,
z.ZodTypeDef,
unknown
> = z.object({
isDefaultApp: types.optional(types.literal(false)),
defaultAppProjectName: types.string(),
defaultRoute: types.optional(types.string()),
groupIds: z.array(types.string()),
});
export function getDeploymentMicrofrontends1FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentMicrofrontends1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentMicrofrontends1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentMicrofrontends1' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyMicrofrontends$inboundSchema: z.ZodType<
GetDeploymentResponseBodyMicrofrontends,
z.ZodTypeDef,
unknown
> = smartUnion([
z.lazy(() => GetDeploymentMicrofrontends2$inboundSchema),
z.lazy(() => GetDeploymentMicrofrontends1$inboundSchema),
]);
export function getDeploymentResponseBodyMicrofrontendsFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentResponseBodyMicrofrontends,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyMicrofrontends$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentResponseBodyMicrofrontends' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyDeploymentsResponseSource$inboundSchema:
z.ZodType<
GetDeploymentResponseBodyDeploymentsResponseSource,
z.ZodTypeDef,
unknown
> = z.object({
name: types.string(),
});
export function getDeploymentResponseBodyDeploymentsResponseSourceFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentResponseBodyDeploymentsResponseSource,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyDeploymentsResponseSource$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentResponseBodyDeploymentsResponseSource' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyDeploymentsResponse200ApplicationJSONType$inboundSchema:
z.ZodNativeEnum<
typeof GetDeploymentResponseBodyDeploymentsResponse200ApplicationJSONType
> = z.nativeEnum(
GetDeploymentResponseBodyDeploymentsResponse200ApplicationJSONType,
);
/** @internal */
export const GetDeploymentResponseBodyOrigin$inboundSchema: z.ZodType<
GetDeploymentResponseBodyOrigin,
z.ZodTypeDef,
unknown
> = z.object({
type:
GetDeploymentResponseBodyDeploymentsResponse200ApplicationJSONType$inboundSchema,
value: types.string(),
});
export function getDeploymentResponseBodyOriginFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyOrigin, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBodyOrigin$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyOrigin' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyDeploymentsCreator$inboundSchema:
z.ZodType<
GetDeploymentResponseBodyDeploymentsCreator,
z.ZodTypeDef,
unknown
> = z.object({
name: types.string(),
avatar: types.optional(types.string()),
});
export function getDeploymentResponseBodyDeploymentsCreatorFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentResponseBodyDeploymentsCreator,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyDeploymentsCreator$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentResponseBodyDeploymentsCreator' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyPlatform$inboundSchema: z.ZodType<
GetDeploymentResponseBodyPlatform,
z.ZodTypeDef,
unknown
> = z.object({
source: z.lazy(() =>
GetDeploymentResponseBodyDeploymentsResponseSource$inboundSchema
),
origin: z.lazy(() => GetDeploymentResponseBodyOrigin$inboundSchema),
creator: z.lazy(() =>
GetDeploymentResponseBodyDeploymentsCreator$inboundSchema
),
meta: types.optional(z.record(types.string())),
});
export function getDeploymentResponseBodyPlatformFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyPlatform, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBodyPlatform$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyPlatform' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyFunctionType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyFunctionType> = z.nativeEnum(
GetDeploymentResponseBodyFunctionType,
);
/** @internal */
export const GetDeploymentResponseBodyFunctionMemoryType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyFunctionMemoryType> = z
.nativeEnum(GetDeploymentResponseBodyFunctionMemoryType);
/** @internal */
export const GetDeploymentResponseBodyConfiguration$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyConfiguration> = z.nativeEnum(
GetDeploymentResponseBodyConfiguration,
);
/** @internal */
export const GetDeploymentResponseBodyBuildQueue$inboundSchema: z.ZodType<
GetDeploymentResponseBodyBuildQueue,
z.ZodTypeDef,
unknown
> = z.object({
configuration: types.optional(
GetDeploymentResponseBodyConfiguration$inboundSchema,
),
});
export function getDeploymentResponseBodyBuildQueueFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyBuildQueue, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyBuildQueue$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyBuildQueue' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyElasticConcurrency$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyElasticConcurrency> = z
.nativeEnum(GetDeploymentResponseBodyElasticConcurrency);
/** @internal */
export const GetDeploymentResponseBodyDeploymentsPurchaseType$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyDeploymentsPurchaseType> = z
.nativeEnum(GetDeploymentResponseBodyDeploymentsPurchaseType);
/** @internal */
export const GetDeploymentResponseBodyDeploymentsBuildMachine$inboundSchema:
z.ZodType<
GetDeploymentResponseBodyDeploymentsBuildMachine,
z.ZodTypeDef,
unknown
> = z.object({
purchaseType: z.nullable(
GetDeploymentResponseBodyDeploymentsPurchaseType$inboundSchema,
).optional(),
});
export function getDeploymentResponseBodyDeploymentsBuildMachineFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentResponseBodyDeploymentsBuildMachine,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyDeploymentsBuildMachine$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentResponseBodyDeploymentsBuildMachine' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyDeploymentsResourceConfig$inboundSchema:
z.ZodType<
GetDeploymentResponseBodyDeploymentsResourceConfig,
z.ZodTypeDef,
unknown
> = z.object({
buildQueue: types.optional(
z.lazy(() => GetDeploymentResponseBodyBuildQueue$inboundSchema),
),
elasticConcurrency: types.optional(
GetDeploymentResponseBodyElasticConcurrency$inboundSchema,
),
buildMachine: types.optional(
z.lazy(() =>
GetDeploymentResponseBodyDeploymentsBuildMachine$inboundSchema
),
),
});
export function getDeploymentResponseBodyDeploymentsResourceConfigFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentResponseBodyDeploymentsResourceConfig,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyDeploymentsResourceConfig$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentResponseBodyDeploymentsResourceConfig' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyConfig$inboundSchema: z.ZodType<
GetDeploymentResponseBodyConfig,
z.ZodTypeDef,
unknown
> = z.object({
version: types.optional(types.number()),
functionType: GetDeploymentResponseBodyFunctionType$inboundSchema,
functionMemoryType: GetDeploymentResponseBodyFunctionMemoryType$inboundSchema,
functionTimeout: types.nullable(types.number()),
secureComputePrimaryRegion: types.nullable(types.string()),
secureComputeFallbackRegion: types.nullable(types.string()),
isUsingActiveCPU: types.optional(types.boolean()),
resourceConfig: types.optional(
z.lazy(() =>
GetDeploymentResponseBodyDeploymentsResourceConfig$inboundSchema
),
),
});
export function getDeploymentResponseBodyConfigFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyConfig, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBodyConfig$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyConfig' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyDeploymentsResponseState$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyDeploymentsResponseState> = z
.nativeEnum(GetDeploymentResponseBodyDeploymentsResponseState);
/** @internal */
export const GetDeploymentResponseBodyDeploymentAlias$inboundSchema: z.ZodType<
GetDeploymentResponseBodyDeploymentAlias,
z.ZodTypeDef,
unknown
> = z.object({
state: GetDeploymentResponseBodyDeploymentsResponseState$inboundSchema,
startedAt: types.number(),
completedAt: types.optional(types.number()),
});
export function getDeploymentResponseBodyDeploymentAliasFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentResponseBodyDeploymentAlias,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyDeploymentAlias$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentResponseBodyDeploymentAlias' from JSON`,
);
}
/** @internal */
export const ResponseBodyChecks$inboundSchema: z.ZodType<
ResponseBodyChecks,
z.ZodTypeDef,
unknown
> = z.object({
"deployment-alias": z.lazy(() =>
GetDeploymentResponseBodyDeploymentAlias$inboundSchema
),
}).transform((v) => {
return remap$(v, {
"deployment-alias": "deploymentAlias",
});
});
export function responseBodyChecksFromJSON(
jsonString: string,
): SafeParseResult<ResponseBodyChecks, SDKValidationError> {
return safeParse(
jsonString,
(x) => ResponseBodyChecks$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'ResponseBodyChecks' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyBlockCode$inboundSchema: z.ZodNativeEnum<
typeof GetDeploymentResponseBodyBlockCode
> = z.nativeEnum(GetDeploymentResponseBodyBlockCode);
/** @internal */
export const GetDeploymentResponseBodyGitUserId$inboundSchema: z.ZodType<
GetDeploymentResponseBodyGitUserId,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentResponseBodyGitUserIdFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyGitUserId, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyGitUserId$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyGitUserId' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyGitProvider$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyGitProvider> = z.nativeEnum(
GetDeploymentResponseBodyGitProvider,
);
/** @internal */
export const GetDeploymentResponseBodySeatBlock$inboundSchema: z.ZodType<
GetDeploymentResponseBodySeatBlock,
z.ZodTypeDef,
unknown
> = z.object({
blockCode: GetDeploymentResponseBodyBlockCode$inboundSchema,
userId: types.optional(types.string()),
isVerified: types.optional(types.boolean()),
gitUserId: types.optional(smartUnion([types.string(), types.number()])),
gitProvider: types.optional(
GetDeploymentResponseBodyGitProvider$inboundSchema,
),
});
export function getDeploymentResponseBodySeatBlockFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodySeatBlock, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodySeatBlock$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodySeatBlock' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyCommitMeta$inboundSchema: z.ZodType<
GetDeploymentResponseBodyCommitMeta,
z.ZodTypeDef,
unknown
> = z.object({
email: types.optional(types.string()),
name: types.optional(types.string()),
isVerified: types.optional(types.boolean()),
});
export function getDeploymentResponseBodyCommitMetaFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyCommitMeta, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyCommitMeta$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyCommitMeta' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyId$inboundSchema: z.ZodType<
GetDeploymentResponseBodyId,
z.ZodTypeDef,
unknown
> = smartUnion([types.string(), types.number()]);
export function getDeploymentResponseBodyIdFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyId, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBodyId$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyId' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyGitUser$inboundSchema: z.ZodType<
GetDeploymentResponseBodyGitUser,
z.ZodTypeDef,
unknown
> = z.object({
id: smartUnion([types.string(), types.number()]),
login: types.string(),
type: types.optional(types.string()),
provider: types.optional(types.string()),
});
export function getDeploymentResponseBodyGitUserFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyGitUser, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBodyGitUser$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyGitUser' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyVercelUser$inboundSchema: z.ZodType<
GetDeploymentResponseBodyVercelUser,
z.ZodTypeDef,
unknown
> = z.object({
id: types.string(),
username: types.string(),
teamRoles: types.optional(z.array(types.string())),
});
export function getDeploymentResponseBodyVercelUserFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyVercelUser, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyVercelUser$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyVercelUser' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyAttribution$inboundSchema: z.ZodType<
GetDeploymentResponseBodyAttribution,
z.ZodTypeDef,
unknown
> = z.object({
commitMeta: types.optional(
z.lazy(() => GetDeploymentResponseBodyCommitMeta$inboundSchema),
),
gitUser: types.optional(
z.lazy(() => GetDeploymentResponseBodyGitUser$inboundSchema),
),
vercelUser: types.optional(
z.lazy(() => GetDeploymentResponseBodyVercelUser$inboundSchema),
),
});
export function getDeploymentResponseBodyAttributionFromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBodyAttribution, SDKValidationError> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyAttribution$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBodyAttribution' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBody2$inboundSchema: z.ZodType<
GetDeploymentResponseBody2,
z.ZodTypeDef,
unknown
> = z.object({
aliasAssignedAt: z.nullable(
GetDeploymentResponseBodyAliasAssignedAt$inboundSchema,
).optional(),
alwaysRefuseToBuild: types.optional(types.boolean()),
build: GetDeploymentResponseBodyBuild$inboundSchema,
buildArtifactUrls: types.optional(z.array(types.string())),
builds: types.optional(
z.array(GetDeploymentResponseBodyBuilds$inboundSchema),
),
env: z.array(types.string()),
resourceConfig: types.optional(
GetDeploymentResponseBodyResourceConfig$inboundSchema,
),
inspectorUrl: types.nullable(types.string()),
isInConcurrentBuildsQueue: types.boolean(),
isInSystemBuildsQueue: types.boolean(),
projectSettings: ResponseBodyProjectSettings$inboundSchema,
integrations: types.optional(
GetDeploymentResponseBodyIntegrations$inboundSchema,
),
images: types.optional(GetDeploymentResponseBodyImages$inboundSchema),
alias: types.optional(z.array(types.string())),
aliasAssigned: types.boolean(),
bootedAt: types.number(),
buildingAt: types.number(),
buildContainerFinishedAt: types.optional(types.number()),
buildSkipped: types.boolean(),
creator: GetDeploymentResponseBodyCreator$inboundSchema,
initReadyAt: types.optional(types.number()),
isFirstBranchDeployment: types.optional(types.boolean()),
lambdas: types.optional(
z.array(GetDeploymentResponseBodyLambdas$inboundSchema),
),
public: types.boolean(),
ready: types.optional(types.number()),
status: GetDeploymentResponseBodyStatus$inboundSchema,
team: types.optional(GetDeploymentResponseBodyTeam$inboundSchema),
userAliases: types.optional(z.array(types.string())),
previewCommentsEnabled: types.optional(types.boolean()),
ttyBuildLogs: types.optional(types.boolean()),
customEnvironment: types.optional(
ResponseBodyCustomEnvironment$inboundSchema,
),
oomReport: types.optional(GetDeploymentResponseBodyOomReport$inboundSchema),
readyStateReason: types.optional(types.string()),
id: types.string(),
target: z.nullable(ResponseBodyTarget$inboundSchema).optional(),
readyState: ResponseBodyReadyState$inboundSchema,
aliasError: z.nullable(ResponseBodyAliasError$inboundSchema).optional(),
aliasWarning: z.nullable(ResponseBodyAliasWarning$inboundSchema).optional(),
errorCode: types.optional(types.string()),
errorMessage: z.nullable(types.string()).optional(),
createdAt: types.number(),
name: types.string(),
type: GetDeploymentResponseBodyType$inboundSchema,
aliasFinal: z.nullable(types.string()).optional(),
autoAssignCustomDomains: types.optional(types.boolean()),
automaticAliases: types.optional(z.array(types.string())),
buildErrorAt: types.optional(types.number()),
checksState: types.optional(
GetDeploymentResponseBodyChecksState$inboundSchema,
),
checksConclusion: types.optional(
GetDeploymentResponseBodyChecksConclusion$inboundSchema,
),
deletedAt: z.nullable(types.number()).optional(),
defaultRoute: types.optional(types.string()),
canceledAt: types.optional(types.number()),
errorLink: types.optional(types.string()),
errorStep: types.optional(types.string()),
passiveRegions: types.optional(z.array(types.string())),
gitSource: types.optional(GetDeploymentResponseBodyGitSource$inboundSchema),
manualProvisioning: types.optional(
GetDeploymentResponseBodyManualProvisioning$inboundSchema,
),
meta: z.record(types.string()),
originCacheRegion: types.optional(types.string()),
nodeVersion: types.optional(
GetDeploymentResponseBodyNodeVersion$inboundSchema,
),
project: types.optional(ResponseBodyProject$inboundSchema),
prebuilt: types.optional(types.boolean()),
readySubstate: types.optional(
GetDeploymentResponseBodyReadySubstate$inboundSchema,
),
regions: z.array(types.string()),
softDeletedByRetention: types.optional(types.boolean()),
source: types.optional(GetDeploymentResponseBodySource$inboundSchema),
undeletedAt: types.optional(types.number()),
url: types.string(),
userConfiguredDeploymentId: types.optional(types.string()),
version: types.number(),
oidcTokenClaims: types.optional(
GetDeploymentResponseBodyOidcTokenClaims$inboundSchema,
),
projectId: types.string(),
plan: GetDeploymentResponseBodyPlan$inboundSchema,
connectBuildsEnabled: types.optional(types.boolean()),
connectConfigurationId: types.optional(types.string()),
createdIn: types.string(),
crons: types.optional(z.array(GetDeploymentResponseBodyCrons$inboundSchema)),
atproto: types.optional(GetDeploymentResponseBodyAtproto$inboundSchema),
functions: z.nullable(
z.record(GetDeploymentResponseBodyFunctions$inboundSchema),
).optional(),
isInstantStatic: types.optional(types.boolean()),
monorepoManager: z.nullable(types.string()).optional(),
ownerId: types.string(),
passiveConnectConfigurationId: types.optional(types.string()),
routes: types.nullable(
z.array(GetDeploymentResponseBodyRoutes$inboundSchema),
),
services: types.optional(
z.array(z.union([
z.lazy(() => GetDeploymentServices1$inboundSchema),
z.lazy(() =>
GetDeploymentServices2$inboundSchema
),
])),
),
gitRepo: z.nullable(
z.union([
z.lazy(() => GetDeploymentGitRepo1$inboundSchema),
z.lazy(() => GetDeploymentGitRepo2$inboundSchema),
z.lazy(() => GetDeploymentGitRepo3$inboundSchema),
z.lazy(() => GetDeploymentGitRepo4$inboundSchema),
z.lazy(() => GetDeploymentGitRepo5$inboundSchema),
]),
).optional(),
flags: types.optional(
smartUnion([
z.lazy(() => GetDeploymentFlags1$inboundSchema),
z.array(z.lazy(() => GetDeploymentFlags2$inboundSchema)),
]),
),
microfrontends: types.optional(
smartUnion([
z.lazy(() => GetDeploymentMicrofrontends2$inboundSchema),
z.lazy(() => GetDeploymentMicrofrontends1$inboundSchema),
]),
),
platform: types.optional(
z.lazy(() => GetDeploymentResponseBodyPlatform$inboundSchema),
),
config: types.optional(
z.lazy(() => GetDeploymentResponseBodyConfig$inboundSchema),
),
checks: types.optional(z.lazy(() => ResponseBodyChecks$inboundSchema)),
seatBlock: types.optional(
z.lazy(() => GetDeploymentResponseBodySeatBlock$inboundSchema),
),
attribution: types.optional(
z.lazy(() => GetDeploymentResponseBodyAttribution$inboundSchema),
),
});
export function getDeploymentResponseBody2FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBody2, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBody2$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBody2' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyDeploymentsTarget$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyDeploymentsTarget> = z
.nativeEnum(GetDeploymentResponseBodyDeploymentsTarget);
/** @internal */
export const GetDeploymentResponseBodyDeploymentsReadyState$inboundSchema:
z.ZodNativeEnum<typeof GetDeploymentResponseBodyDeploymentsReadyState> = z
.nativeEnum(GetDeploymentResponseBodyDeploymentsReadyState);
/** @internal */
export const GetDeploymentResponseBodyDeploymentsAliasError$inboundSchema:
z.ZodType<
GetDeploymentResponseBodyDeploymentsAliasError,
z.ZodTypeDef,
unknown
> = z.object({
code: types.string(),
message: types.string(),
});
export function getDeploymentResponseBodyDeploymentsAliasErrorFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentResponseBodyDeploymentsAliasError,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyDeploymentsAliasError$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentResponseBodyDeploymentsAliasError' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBodyDeploymentsAliasWarning$inboundSchema:
z.ZodType<
GetDeploymentResponseBodyDeploymentsAliasWarning,
z.ZodTypeDef,
unknown
> = z.object({
code: types.string(),
message: types.string(),
link: types.optional(types.string()),
action: types.optional(types.string()),
});
export function getDeploymentResponseBodyDeploymentsAliasWarningFromJSON(
jsonString: string,
): SafeParseResult<
GetDeploymentResponseBodyDeploymentsAliasWarning,
SDKValidationError
> {
return safeParse(
jsonString,
(x) =>
GetDeploymentResponseBodyDeploymentsAliasWarning$inboundSchema.parse(
JSON.parse(x),
),
`Failed to parse 'GetDeploymentResponseBodyDeploymentsAliasWarning' from JSON`,
);
}
/** @internal */
export const GetDeploymentResponseBody1$inboundSchema: z.ZodType<
GetDeploymentResponseBody1,
z.ZodTypeDef,
unknown
> = z.object({
alias: types.optional(z.array(types.string())),
aliasAssigned: types.boolean(),
id: types.string(),
target: z.nullable(GetDeploymentResponseBodyDeploymentsTarget$inboundSchema)
.optional(),
readyState: GetDeploymentResponseBodyDeploymentsReadyState$inboundSchema,
aliasError: z.nullable(
z.lazy(() => GetDeploymentResponseBodyDeploymentsAliasError$inboundSchema),
).optional(),
aliasWarning: z.nullable(
z.lazy(() =>
GetDeploymentResponseBodyDeploymentsAliasWarning$inboundSchema
),
).optional(),
errorCode: types.optional(types.string()),
errorMessage: z.nullable(types.string()).optional(),
});
export function getDeploymentResponseBody1FromJSON(
jsonString: string,
): SafeParseResult<GetDeploymentResponseBody1, SDKValidationError> {
return safeParse(
jsonString,
(x) => GetDeploymentResponseBody1$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'GetDeploymentResponseBody1' from JSON`,
);
}