UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

173 lines 7.5 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type RemoveCustomEnvironmentRequestBody = { /** * Delete Environment Variables that are not assigned to any environments. */ deleteUnassignedEnvironmentVariables?: boolean | undefined; }; export type RemoveCustomEnvironmentRequest = { /** * The unique project identifier or the project name */ idOrName: string; /** * The unique custom environment identifier within the project */ environmentSlugOrId: string; /** * The Team identifier to perform the request on behalf of. */ teamId?: string | undefined; /** * The Team slug to perform the request on behalf of. */ slug?: string | undefined; requestBody?: RemoveCustomEnvironmentRequestBody | undefined; }; /** * The type of environment (production, preview, or development) */ export declare const RemoveCustomEnvironmentType: { readonly Development: "development"; readonly Preview: "preview"; readonly Production: "production"; }; /** * The type of environment (production, preview, or development) */ export type RemoveCustomEnvironmentType = ClosedEnum<typeof RemoveCustomEnvironmentType>; /** * The type of matching to perform */ export declare const RemoveCustomEnvironmentEnvironmentType: { readonly EndsWith: "endsWith"; readonly Equals: "equals"; readonly StartsWith: "startsWith"; }; /** * The type of matching to perform */ export type RemoveCustomEnvironmentEnvironmentType = ClosedEnum<typeof RemoveCustomEnvironmentEnvironmentType>; /** * Configuration for matching git branches to this environment */ export type RemoveCustomEnvironmentBranchMatcher = { /** * The type of matching to perform */ type: RemoveCustomEnvironmentEnvironmentType; /** * The pattern to match against branch names */ pattern: string; }; /** * A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`. */ export type RemoveCustomEnvironmentVerification = { type: string; domain: string; value: string; reason: string; }; /** * List of domains associated with this environment */ export type RemoveCustomEnvironmentDomains = { name: string; apexName: string; projectId: string; redirect?: string | null | undefined; redirectStatusCode?: number | null | undefined; gitBranch?: string | null | undefined; customEnvironmentId?: string | null | undefined; updatedAt?: number | undefined; createdAt?: number | undefined; /** * `true` if the domain is verified for use with the project. If `false` it will not be used as an alias on this project until the challenge in `verification` is completed. */ verified: boolean; /** * A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`. */ verification?: Array<RemoveCustomEnvironmentVerification> | undefined; }; /** * Internal representation of a custom environment with all required properties */ export type RemoveCustomEnvironmentResponseBody = { /** * Unique identifier for the custom environment (format: env_*) */ id: string; /** * URL-friendly name of the environment */ slug: string; /** * The type of environment (production, preview, or development) */ type: RemoveCustomEnvironmentType; /** * Optional description of the environment's purpose */ description?: string | undefined; /** * Configuration for matching git branches to this environment */ branchMatcher?: RemoveCustomEnvironmentBranchMatcher | undefined; /** * List of domains associated with this environment */ domains?: Array<RemoveCustomEnvironmentDomains> | undefined; /** * List of aliases for the current deployment */ currentDeploymentAliases?: Array<string> | undefined; /** * Timestamp when the environment was created */ createdAt: number; /** * Timestamp when the environment was last updated */ updatedAt: number; }; /** @internal */ export type RemoveCustomEnvironmentRequestBody$Outbound = { deleteUnassignedEnvironmentVariables?: boolean | undefined; }; /** @internal */ export declare const RemoveCustomEnvironmentRequestBody$outboundSchema: z.ZodType<RemoveCustomEnvironmentRequestBody$Outbound, z.ZodTypeDef, RemoveCustomEnvironmentRequestBody>; export declare function removeCustomEnvironmentRequestBodyToJSON(removeCustomEnvironmentRequestBody: RemoveCustomEnvironmentRequestBody): string; /** @internal */ export type RemoveCustomEnvironmentRequest$Outbound = { idOrName: string; environmentSlugOrId: string; teamId?: string | undefined; slug?: string | undefined; RequestBody?: RemoveCustomEnvironmentRequestBody$Outbound | undefined; }; /** @internal */ export declare const RemoveCustomEnvironmentRequest$outboundSchema: z.ZodType<RemoveCustomEnvironmentRequest$Outbound, z.ZodTypeDef, RemoveCustomEnvironmentRequest>; export declare function removeCustomEnvironmentRequestToJSON(removeCustomEnvironmentRequest: RemoveCustomEnvironmentRequest): string; /** @internal */ export declare const RemoveCustomEnvironmentType$inboundSchema: z.ZodNativeEnum<typeof RemoveCustomEnvironmentType>; /** @internal */ export declare const RemoveCustomEnvironmentEnvironmentType$inboundSchema: z.ZodNativeEnum<typeof RemoveCustomEnvironmentEnvironmentType>; /** @internal */ export declare const RemoveCustomEnvironmentBranchMatcher$inboundSchema: z.ZodType<RemoveCustomEnvironmentBranchMatcher, z.ZodTypeDef, unknown>; export declare function removeCustomEnvironmentBranchMatcherFromJSON(jsonString: string): SafeParseResult<RemoveCustomEnvironmentBranchMatcher, SDKValidationError>; /** @internal */ export declare const RemoveCustomEnvironmentVerification$inboundSchema: z.ZodType<RemoveCustomEnvironmentVerification, z.ZodTypeDef, unknown>; export declare function removeCustomEnvironmentVerificationFromJSON(jsonString: string): SafeParseResult<RemoveCustomEnvironmentVerification, SDKValidationError>; /** @internal */ export declare const RemoveCustomEnvironmentDomains$inboundSchema: z.ZodType<RemoveCustomEnvironmentDomains, z.ZodTypeDef, unknown>; export declare function removeCustomEnvironmentDomainsFromJSON(jsonString: string): SafeParseResult<RemoveCustomEnvironmentDomains, SDKValidationError>; /** @internal */ export declare const RemoveCustomEnvironmentResponseBody$inboundSchema: z.ZodType<RemoveCustomEnvironmentResponseBody, z.ZodTypeDef, unknown>; export declare function removeCustomEnvironmentResponseBodyFromJSON(jsonString: string): SafeParseResult<RemoveCustomEnvironmentResponseBody, SDKValidationError>; //# sourceMappingURL=removecustomenvironmentop.d.ts.map