/* * 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 SmbHeaderLog = { command?: number | undefined; credits?: number | undefined; flags?: number | undefined; protocolId?: string | undefined; status?: number | undefined; }; /** @internal */ export const SmbHeaderLog$inboundSchema: z.ZodType< SmbHeaderLog, z.ZodTypeDef, unknown > = z.object({ command: z.number().int().optional(), credits: z.number().int().optional(), flags: z.number().int().optional(), protocol_id: z.string().optional(), status: z.number().int().optional(), }).transform((v) => { return remap$(v, { "protocol_id": "protocolId", }); }); export function smbHeaderLogFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SmbHeaderLog$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SmbHeaderLog' from JSON`, ); }