UNPKG

@unkey/api

Version:

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

17 lines 668 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { RatelimitResponse$inboundSchema, } from "./ratelimitresponse.js"; /** @internal */ export const Identity$inboundSchema = z.object({ id: z.string(), externalId: z.string(), meta: z.record(z.any()).optional(), ratelimits: z.array(RatelimitResponse$inboundSchema).optional(), }); export function identityFromJSON(jsonString) { return safeParse(jsonString, (x) => Identity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Identity' from JSON`); } //# sourceMappingURL=identity.js.map