/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type AssetHostListInputBody = { /** * RFC3339 Timestamp to view all requested hosts at a specific point in time. Must be a valid RFC3339 string. Ensure that you suffix the date with T00:00:00Z or a specific time. */ atTime?: Date | undefined; /** * A list of host IP addresses. */ hostIds: Array | null; }; /** @internal */ export type AssetHostListInputBody$Outbound = { at_time?: string | undefined; host_ids: Array | null; }; /** @internal */ export const AssetHostListInputBody$outboundSchema: z.ZodType< AssetHostListInputBody$Outbound, z.ZodTypeDef, AssetHostListInputBody > = z.object({ atTime: z.date().transform(v => v.toISOString()).optional(), hostIds: z.nullable(z.array(z.string())), }).transform((v) => { return remap$(v, { atTime: "at_time", hostIds: "host_ids", }); }); export function assetHostListInputBodyToJSON( assetHostListInputBody: AssetHostListInputBody, ): string { return JSON.stringify( AssetHostListInputBody$outboundSchema.parse(assetHostListInputBody), ); }