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>

148 lines 7.44 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 declare const PatchEdgeConfigItems1Operation: { readonly Create: "create"; readonly Update: "update"; readonly Upsert: "upsert"; readonly Delete: "delete"; }; export type PatchEdgeConfigItems1Operation = ClosedEnum<typeof PatchEdgeConfigItems1Operation>; export type PatchEdgeConfigItems1Description = string | any; export type PatchEdgeConfigItems13 = { operation: PatchEdgeConfigItems1Operation; key: string; value?: any | null | undefined; description?: string | any | null | undefined; }; export declare const OneOperation: { readonly Create: "create"; readonly Update: "update"; readonly Upsert: "upsert"; readonly Delete: "delete"; }; export type OneOperation = ClosedEnum<typeof OneOperation>; export type OneDescription = string | any; export type PatchEdgeConfigItems12 = { operation: OneOperation; key: string; value?: any | null | undefined; description?: string | any | null | undefined; }; export declare const Operation: { readonly Create: "create"; readonly Update: "update"; readonly Upsert: "upsert"; readonly Delete: "delete"; }; export type Operation = ClosedEnum<typeof Operation>; export type Description = string | any; export type PatchEdgeConfigItems11 = { operation: Operation; key: string; value?: any | null | undefined; description?: string | any | null | undefined; }; export type PatchEdgeConfigItemsItems1 = PatchEdgeConfigItems11 | PatchEdgeConfigItems12 | PatchEdgeConfigItems13; export type PatchEdgeConfigItemsItems = PatchEdgeConfigItems11 | PatchEdgeConfigItems12 | PatchEdgeConfigItems13; export type PatchEdgeConfigItemsRequestBody = { items: Array<PatchEdgeConfigItems11 | PatchEdgeConfigItems12 | PatchEdgeConfigItems13>; }; export type PatchEdgeConfigItemsRequest = { edgeConfigId: 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?: PatchEdgeConfigItemsRequestBody | undefined; }; export type PatchEdgeConfigItemsResponseBody = { status: string; }; /** @internal */ export declare const PatchEdgeConfigItems1Operation$outboundSchema: z.ZodNativeEnum<typeof PatchEdgeConfigItems1Operation>; /** @internal */ export type PatchEdgeConfigItems1Description$Outbound = string | any; /** @internal */ export declare const PatchEdgeConfigItems1Description$outboundSchema: z.ZodType<PatchEdgeConfigItems1Description$Outbound, z.ZodTypeDef, PatchEdgeConfigItems1Description>; export declare function patchEdgeConfigItems1DescriptionToJSON(patchEdgeConfigItems1Description: PatchEdgeConfigItems1Description): string; /** @internal */ export type PatchEdgeConfigItems13$Outbound = { operation: string; key: string; value?: any | null | undefined; description?: string | any | null | undefined; }; /** @internal */ export declare const PatchEdgeConfigItems13$outboundSchema: z.ZodType<PatchEdgeConfigItems13$Outbound, z.ZodTypeDef, PatchEdgeConfigItems13>; export declare function patchEdgeConfigItems13ToJSON(patchEdgeConfigItems13: PatchEdgeConfigItems13): string; /** @internal */ export declare const OneOperation$outboundSchema: z.ZodNativeEnum<typeof OneOperation>; /** @internal */ export type OneDescription$Outbound = string | any; /** @internal */ export declare const OneDescription$outboundSchema: z.ZodType<OneDescription$Outbound, z.ZodTypeDef, OneDescription>; export declare function oneDescriptionToJSON(oneDescription: OneDescription): string; /** @internal */ export type PatchEdgeConfigItems12$Outbound = { operation: string; key: string; value?: any | null | undefined; description?: string | any | null | undefined; }; /** @internal */ export declare const PatchEdgeConfigItems12$outboundSchema: z.ZodType<PatchEdgeConfigItems12$Outbound, z.ZodTypeDef, PatchEdgeConfigItems12>; export declare function patchEdgeConfigItems12ToJSON(patchEdgeConfigItems12: PatchEdgeConfigItems12): string; /** @internal */ export declare const Operation$outboundSchema: z.ZodNativeEnum<typeof Operation>; /** @internal */ export type Description$Outbound = string | any; /** @internal */ export declare const Description$outboundSchema: z.ZodType<Description$Outbound, z.ZodTypeDef, Description>; export declare function descriptionToJSON(description: Description): string; /** @internal */ export type PatchEdgeConfigItems11$Outbound = { operation: string; key: string; value?: any | null | undefined; description?: string | any | null | undefined; }; /** @internal */ export declare const PatchEdgeConfigItems11$outboundSchema: z.ZodType<PatchEdgeConfigItems11$Outbound, z.ZodTypeDef, PatchEdgeConfigItems11>; export declare function patchEdgeConfigItems11ToJSON(patchEdgeConfigItems11: PatchEdgeConfigItems11): string; /** @internal */ export type PatchEdgeConfigItemsItems1$Outbound = PatchEdgeConfigItems11$Outbound | PatchEdgeConfigItems12$Outbound | PatchEdgeConfigItems13$Outbound; /** @internal */ export declare const PatchEdgeConfigItemsItems1$outboundSchema: z.ZodType<PatchEdgeConfigItemsItems1$Outbound, z.ZodTypeDef, PatchEdgeConfigItemsItems1>; export declare function patchEdgeConfigItemsItems1ToJSON(patchEdgeConfigItemsItems1: PatchEdgeConfigItemsItems1): string; /** @internal */ export type PatchEdgeConfigItemsItems$Outbound = PatchEdgeConfigItems11$Outbound | PatchEdgeConfigItems12$Outbound | PatchEdgeConfigItems13$Outbound; /** @internal */ export declare const PatchEdgeConfigItemsItems$outboundSchema: z.ZodType<PatchEdgeConfigItemsItems$Outbound, z.ZodTypeDef, PatchEdgeConfigItemsItems>; export declare function patchEdgeConfigItemsItemsToJSON(patchEdgeConfigItemsItems: PatchEdgeConfigItemsItems): string; /** @internal */ export type PatchEdgeConfigItemsRequestBody$Outbound = { items: Array<PatchEdgeConfigItems11$Outbound | PatchEdgeConfigItems12$Outbound | PatchEdgeConfigItems13$Outbound>; }; /** @internal */ export declare const PatchEdgeConfigItemsRequestBody$outboundSchema: z.ZodType<PatchEdgeConfigItemsRequestBody$Outbound, z.ZodTypeDef, PatchEdgeConfigItemsRequestBody>; export declare function patchEdgeConfigItemsRequestBodyToJSON(patchEdgeConfigItemsRequestBody: PatchEdgeConfigItemsRequestBody): string; /** @internal */ export type PatchEdgeConfigItemsRequest$Outbound = { edgeConfigId: string; teamId?: string | undefined; slug?: string | undefined; RequestBody?: PatchEdgeConfigItemsRequestBody$Outbound | undefined; }; /** @internal */ export declare const PatchEdgeConfigItemsRequest$outboundSchema: z.ZodType<PatchEdgeConfigItemsRequest$Outbound, z.ZodTypeDef, PatchEdgeConfigItemsRequest>; export declare function patchEdgeConfigItemsRequestToJSON(patchEdgeConfigItemsRequest: PatchEdgeConfigItemsRequest): string; /** @internal */ export declare const PatchEdgeConfigItemsResponseBody$inboundSchema: z.ZodType<PatchEdgeConfigItemsResponseBody, z.ZodTypeDef, unknown>; export declare function patchEdgeConfigItemsResponseBodyFromJSON(jsonString: string): SafeParseResult<PatchEdgeConfigItemsResponseBody, SDKValidationError>; //# sourceMappingURL=patchedgeconfigitemsop.d.ts.map