/* * 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 AssetWebpropertyListInputBody = { /** * RFC3339 Timestamp to view all requested webproperties 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 web property identifiers. */ webpropertyIds: Array | null; }; /** @internal */ export type AssetWebpropertyListInputBody$Outbound = { at_time?: string | undefined; webproperty_ids: Array | null; }; /** @internal */ export const AssetWebpropertyListInputBody$outboundSchema: z.ZodType< AssetWebpropertyListInputBody$Outbound, z.ZodTypeDef, AssetWebpropertyListInputBody > = z.object({ atTime: z.date().transform(v => v.toISOString()).optional(), webpropertyIds: z.nullable(z.array(z.string())), }).transform((v) => { return remap$(v, { atTime: "at_time", webpropertyIds: "webproperty_ids", }); }); export function assetWebpropertyListInputBodyToJSON( assetWebpropertyListInputBody: AssetWebpropertyListInputBody, ): string { return JSON.stringify( AssetWebpropertyListInputBody$outboundSchema.parse( assetWebpropertyListInputBody, ), ); }