@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>
37 lines • 1.26 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
export const SDKKeyType = {
Server: "server",
Mobile: "mobile",
Client: "client",
};
/** @internal */
export const SDKKeyType$outboundSchema = z
.nativeEnum(SDKKeyType);
/** @internal */
export const CreateSDKKeyRequestBody$outboundSchema = z.object({
sdkKeyType: SDKKeyType$outboundSchema,
environment: z.string(),
label: z.string().optional(),
});
export function createSDKKeyRequestBodyToJSON(createSDKKeyRequestBody) {
return JSON.stringify(CreateSDKKeyRequestBody$outboundSchema.parse(createSDKKeyRequestBody));
}
/** @internal */
export const CreateSDKKeyRequest$outboundSchema = z.object({
projectIdOrName: z.string(),
teamId: z.string().optional(),
slug: z.string().optional(),
requestBody: z.lazy(() => CreateSDKKeyRequestBody$outboundSchema).optional(),
}).transform((v) => {
return remap$(v, {
requestBody: "RequestBody",
});
});
export function createSDKKeyRequestToJSON(createSDKKeyRequest) {
return JSON.stringify(CreateSDKKeyRequest$outboundSchema.parse(createSDKKeyRequest));
}
//# sourceMappingURL=createsdkkeyop.js.map