/* * 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"; import { SmbHeaderLog, SmbHeaderLog$inboundSchema } from "./smbheaderlog.js"; export type SmbNegotiationLog = { authenticationTypes?: Array | null | undefined; capabilities?: number | undefined; dialectRevision?: number | undefined; headerLog?: SmbHeaderLog | undefined; securityMode?: number | undefined; serverGuid?: string | undefined; serverStartTime?: number | undefined; systemTime?: number | undefined; }; /** @internal */ export const SmbNegotiationLog$inboundSchema: z.ZodType< SmbNegotiationLog, z.ZodTypeDef, unknown > = z.object({ authentication_types: z.nullable(z.array(z.string())).optional(), capabilities: z.number().int().optional(), dialect_revision: z.number().int().optional(), header_log: SmbHeaderLog$inboundSchema.optional(), security_mode: z.number().int().optional(), server_guid: z.string().optional(), server_start_time: z.number().int().optional(), system_time: z.number().int().optional(), }).transform((v) => { return remap$(v, { "authentication_types": "authenticationTypes", "dialect_revision": "dialectRevision", "header_log": "headerLog", "security_mode": "securityMode", "server_guid": "serverGuid", "server_start_time": "serverStartTime", "system_time": "systemTime", }); }); export function smbNegotiationLogFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SmbNegotiationLog$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SmbNegotiationLog' from JSON`, ); }