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>

46 lines 1.75 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import * as types from "../types/primitives.js"; export const GetSDKKeysType = { Client: "client", Mobile: "mobile", Server: "server", }; /** @internal */ export const GetSDKKeysRequest$outboundSchema = z.object({ projectIdOrName: z.string(), teamId: z.string().optional(), slug: z.string().optional(), }); export function getSDKKeysRequestToJSON(getSDKKeysRequest) { return JSON.stringify(GetSDKKeysRequest$outboundSchema.parse(getSDKKeysRequest)); } /** @internal */ export const GetSDKKeysType$inboundSchema = z.nativeEnum(GetSDKKeysType); /** @internal */ export const GetSDKKeysData$inboundSchema = z.object({ hashKey: types.string(), projectId: types.string(), type: GetSDKKeysType$inboundSchema, environment: types.string(), createdBy: types.string(), createdAt: types.number(), updatedAt: types.number(), label: types.optional(types.string()), deletedAt: types.optional(types.number()), partialKeyValue: types.string(), }); export function getSDKKeysDataFromJSON(jsonString) { return safeParse(jsonString, (x) => GetSDKKeysData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSDKKeysData' from JSON`); } /** @internal */ export const GetSDKKeysResponseBody$inboundSchema = z.object({ data: z.array(z.lazy(() => GetSDKKeysData$inboundSchema)), }); export function getSDKKeysResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => GetSDKKeysResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSDKKeysResponseBody' from JSON`); } //# sourceMappingURL=getsdkkeysop.js.map