UNPKG

@unkey/api

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.

16 lines 757 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Meta$inboundSchema } from "./meta.js"; import { V2KeysCreateKeyResponseData$inboundSchema, } from "./v2keyscreatekeyresponsedata.js"; /** @internal */ export const V2KeysCreateKeyResponseBody$inboundSchema = z.object({ meta: Meta$inboundSchema, data: V2KeysCreateKeyResponseData$inboundSchema, }); export function v2KeysCreateKeyResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => V2KeysCreateKeyResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V2KeysCreateKeyResponseBody' from JSON`); } //# sourceMappingURL=v2keyscreatekeyresponsebody.js.map