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>

73 lines 4.21 kB
import * as z from "zod/v3"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type UpdateRollingReleaseConfigRequest = { /** * Project ID or project name (URL-encoded) */ idOrName: 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; }; /** * A stage object configured for a rolling release once a new deployment is triggered the first stage will be read in the proxy for first time visitors, and if a RNG < targetPercentage then it will serve the new deployment. Upon approval the next stage will be read, etc. */ export type UpdateRollingReleaseConfigResponseBodyStages = { /** * The percentage of traffic to serve to the canary deployment (0-100) */ targetPercentage: number; /** * Whether or not this stage requires manual approval to proceed */ requireApproval?: boolean | undefined; /** * Duration in minutes for automatic advancement to the next stage */ duration?: number | undefined; /** * Whether to linearly shift traffic over the duration of this stage */ linearShift?: boolean | undefined; }; export type UpdateRollingReleaseConfigResponseBodyRollingRelease = { stages?: Array<UpdateRollingReleaseConfigResponseBodyStages> | null | undefined; }; export type UpdateRollingReleaseConfigResponseBody2 = { rollingRelease: UpdateRollingReleaseConfigResponseBodyRollingRelease | null; }; export type UpdateRollingReleaseConfigResponseBody1 = { rollingRelease?: any | null | undefined; }; export type UpdateRollingReleaseConfigResponseBody = UpdateRollingReleaseConfigResponseBody1 | UpdateRollingReleaseConfigResponseBody2; /** @internal */ export type UpdateRollingReleaseConfigRequest$Outbound = { idOrName: string; teamId?: string | undefined; slug?: string | undefined; }; /** @internal */ export declare const UpdateRollingReleaseConfigRequest$outboundSchema: z.ZodType<UpdateRollingReleaseConfigRequest$Outbound, z.ZodTypeDef, UpdateRollingReleaseConfigRequest>; export declare function updateRollingReleaseConfigRequestToJSON(updateRollingReleaseConfigRequest: UpdateRollingReleaseConfigRequest): string; /** @internal */ export declare const UpdateRollingReleaseConfigResponseBodyStages$inboundSchema: z.ZodType<UpdateRollingReleaseConfigResponseBodyStages, z.ZodTypeDef, unknown>; export declare function updateRollingReleaseConfigResponseBodyStagesFromJSON(jsonString: string): SafeParseResult<UpdateRollingReleaseConfigResponseBodyStages, SDKValidationError>; /** @internal */ export declare const UpdateRollingReleaseConfigResponseBodyRollingRelease$inboundSchema: z.ZodType<UpdateRollingReleaseConfigResponseBodyRollingRelease, z.ZodTypeDef, unknown>; export declare function updateRollingReleaseConfigResponseBodyRollingReleaseFromJSON(jsonString: string): SafeParseResult<UpdateRollingReleaseConfigResponseBodyRollingRelease, SDKValidationError>; /** @internal */ export declare const UpdateRollingReleaseConfigResponseBody2$inboundSchema: z.ZodType<UpdateRollingReleaseConfigResponseBody2, z.ZodTypeDef, unknown>; export declare function updateRollingReleaseConfigResponseBody2FromJSON(jsonString: string): SafeParseResult<UpdateRollingReleaseConfigResponseBody2, SDKValidationError>; /** @internal */ export declare const UpdateRollingReleaseConfigResponseBody1$inboundSchema: z.ZodType<UpdateRollingReleaseConfigResponseBody1, z.ZodTypeDef, unknown>; export declare function updateRollingReleaseConfigResponseBody1FromJSON(jsonString: string): SafeParseResult<UpdateRollingReleaseConfigResponseBody1, SDKValidationError>; /** @internal */ export declare const UpdateRollingReleaseConfigResponseBody$inboundSchema: z.ZodType<UpdateRollingReleaseConfigResponseBody, z.ZodTypeDef, unknown>; export declare function updateRollingReleaseConfigResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateRollingReleaseConfigResponseBody, SDKValidationError>; //# sourceMappingURL=updaterollingreleaseconfigop.d.ts.map