/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type Report = { /** * A unique identifier of the report request */ requestUuid?: string | undefined; /** * Current status of the report, possible values are 'succeeded', 'pending', or 'failed' */ status?: string | undefined; /** * The array of urls to access the report */ reportUrls?: Array | undefined; }; /** @internal */ export const Report$inboundSchema: z.ZodType = z .object({ request_uuid: z.string().optional(), status: z.string().optional(), report_urls: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { "request_uuid": "requestUuid", "report_urls": "reportUrls", }); }); export function reportFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Report$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Report' from JSON`, ); }