/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 6b7754e380ca */ import * as z from "zod/v3"; import { Period, Period$Outbound, Period$outboundSchema } from "./period.js"; export type AgentsInsightsV2Request = { /** * IDs of the Agents for which Insights should be returned. An empty array signifies all. */ agentIds?: Array | undefined; /** * Departments for which Insights are requested. */ departments?: Array | undefined; dayRange?: Period | undefined; }; /** @internal */ export type AgentsInsightsV2Request$Outbound = { agentIds?: Array | undefined; departments?: Array | undefined; dayRange?: Period$Outbound | undefined; }; /** @internal */ export const AgentsInsightsV2Request$outboundSchema: z.ZodType< AgentsInsightsV2Request$Outbound, z.ZodTypeDef, AgentsInsightsV2Request > = z.object({ agentIds: z.array(z.string()).optional(), departments: z.array(z.string()).optional(), dayRange: Period$outboundSchema.optional(), }); export function agentsInsightsV2RequestToJSON( agentsInsightsV2Request: AgentsInsightsV2Request, ): string { return JSON.stringify( AgentsInsightsV2Request$outboundSchema.parse(agentsInsightsV2Request), ); }