UNPKG

@unkey/api

Version:

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

16 lines 540 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; /** @internal */ export const BaseError$inboundSchema = z.object({ detail: z.string(), status: z.number().int(), title: z.string(), type: z.string(), }); export function baseErrorFromJSON(jsonString) { return safeParse(jsonString, (x) => BaseError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BaseError' from JSON`); } //# sourceMappingURL=baseerror.js.map