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>

89 lines 3.08 kB
import * as z from "zod/v3"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type DeleteRoutesRequestBody = { /** * The IDs of the routes to delete */ routeIds: Array<string>; }; export type DeleteRoutesRequest = { projectId: 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?: DeleteRoutesRequestBody | undefined; }; /** * A version of routing rules stored in S3. */ export type DeleteRoutesVersion = { /** * Unique identifier for the version. */ id: string; /** * The S3 key where the routing rules are stored. */ s3Key: string; /** * Timestamp of when this version was last modified. */ lastModified: number; /** * The user who created this version. */ createdBy: string; /** * Whether this version is staged and not yet promoted to production. */ isStaging?: boolean | undefined; /** * Whether this version is currently live in production. */ isLive?: boolean | undefined; /** * The number of routing rules in this version. */ ruleCount?: number | undefined; /** * The staging alias for previewing this version. */ alias?: string | undefined; }; export type DeleteRoutesResponseBody = { deletedCount: number; /** * A version of routing rules stored in S3. */ version: DeleteRoutesVersion; }; /** @internal */ export type DeleteRoutesRequestBody$Outbound = { routeIds: Array<string>; }; /** @internal */ export declare const DeleteRoutesRequestBody$outboundSchema: z.ZodType<DeleteRoutesRequestBody$Outbound, z.ZodTypeDef, DeleteRoutesRequestBody>; export declare function deleteRoutesRequestBodyToJSON(deleteRoutesRequestBody: DeleteRoutesRequestBody): string; /** @internal */ export type DeleteRoutesRequest$Outbound = { projectId: string; teamId?: string | undefined; slug?: string | undefined; RequestBody?: DeleteRoutesRequestBody$Outbound | undefined; }; /** @internal */ export declare const DeleteRoutesRequest$outboundSchema: z.ZodType<DeleteRoutesRequest$Outbound, z.ZodTypeDef, DeleteRoutesRequest>; export declare function deleteRoutesRequestToJSON(deleteRoutesRequest: DeleteRoutesRequest): string; /** @internal */ export declare const DeleteRoutesVersion$inboundSchema: z.ZodType<DeleteRoutesVersion, z.ZodTypeDef, unknown>; export declare function deleteRoutesVersionFromJSON(jsonString: string): SafeParseResult<DeleteRoutesVersion, SDKValidationError>; /** @internal */ export declare const DeleteRoutesResponseBody$inboundSchema: z.ZodType<DeleteRoutesResponseBody, z.ZodTypeDef, unknown>; export declare function deleteRoutesResponseBodyFromJSON(jsonString: string): SafeParseResult<DeleteRoutesResponseBody, SDKValidationError>; //# sourceMappingURL=deleteroutesop.d.ts.map