@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>
50 lines • 2.15 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
export type Tags = Array<string> | string;
export declare const InvalidateByTagsTarget: {
readonly Production: "production";
readonly Preview: "preview";
};
export type InvalidateByTagsTarget = ClosedEnum<typeof InvalidateByTagsTarget>;
export type InvalidateByTagsRequestBody = {
tags: Array<string> | string;
target?: InvalidateByTagsTarget | undefined;
};
export type InvalidateByTagsRequest = {
projectIdOrName: 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?: InvalidateByTagsRequestBody | undefined;
};
/** @internal */
export type Tags$Outbound = Array<string> | string;
/** @internal */
export declare const Tags$outboundSchema: z.ZodType<Tags$Outbound, z.ZodTypeDef, Tags>;
export declare function tagsToJSON(tags: Tags): string;
/** @internal */
export declare const InvalidateByTagsTarget$outboundSchema: z.ZodNativeEnum<typeof InvalidateByTagsTarget>;
/** @internal */
export type InvalidateByTagsRequestBody$Outbound = {
tags: Array<string> | string;
target?: string | undefined;
};
/** @internal */
export declare const InvalidateByTagsRequestBody$outboundSchema: z.ZodType<InvalidateByTagsRequestBody$Outbound, z.ZodTypeDef, InvalidateByTagsRequestBody>;
export declare function invalidateByTagsRequestBodyToJSON(invalidateByTagsRequestBody: InvalidateByTagsRequestBody): string;
/** @internal */
export type InvalidateByTagsRequest$Outbound = {
projectIdOrName: string;
teamId?: string | undefined;
slug?: string | undefined;
RequestBody?: InvalidateByTagsRequestBody$Outbound | undefined;
};
/** @internal */
export declare const InvalidateByTagsRequest$outboundSchema: z.ZodType<InvalidateByTagsRequest$Outbound, z.ZodTypeDef, InvalidateByTagsRequest>;
export declare function invalidateByTagsRequestToJSON(invalidateByTagsRequest: InvalidateByTagsRequest): string;
//# sourceMappingURL=invalidatebytagsop.d.ts.map