@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 • 1.82 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
export declare const SDKKeyType: {
readonly Server: "server";
readonly Mobile: "mobile";
readonly Client: "client";
};
export type SDKKeyType = ClosedEnum<typeof SDKKeyType>;
export type CreateSDKKeyRequestBody = {
sdkKeyType: SDKKeyType;
environment: string;
label?: string | undefined;
};
export type CreateSDKKeyRequest = {
/**
* The project id or name
*/
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?: CreateSDKKeyRequestBody | undefined;
};
/** @internal */
export declare const SDKKeyType$outboundSchema: z.ZodNativeEnum<typeof SDKKeyType>;
/** @internal */
export type CreateSDKKeyRequestBody$Outbound = {
sdkKeyType: string;
environment: string;
label?: string | undefined;
};
/** @internal */
export declare const CreateSDKKeyRequestBody$outboundSchema: z.ZodType<CreateSDKKeyRequestBody$Outbound, z.ZodTypeDef, CreateSDKKeyRequestBody>;
export declare function createSDKKeyRequestBodyToJSON(createSDKKeyRequestBody: CreateSDKKeyRequestBody): string;
/** @internal */
export type CreateSDKKeyRequest$Outbound = {
projectIdOrName: string;
teamId?: string | undefined;
slug?: string | undefined;
RequestBody?: CreateSDKKeyRequestBody$Outbound | undefined;
};
/** @internal */
export declare const CreateSDKKeyRequest$outboundSchema: z.ZodType<CreateSDKKeyRequest$Outbound, z.ZodTypeDef, CreateSDKKeyRequest>;
export declare function createSDKKeyRequestToJSON(createSDKKeyRequest: CreateSDKKeyRequest): string;
//# sourceMappingURL=createsdkkeyop.d.ts.map