/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 71714e61c615 */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Person, Person$inboundSchema } from "./person.js"; export type AgentUsersInsight = { person?: Person | undefined; /** * Department name */ departmentName?: string | undefined; /** * Total number of agents used by this user over the specified time period. */ agentsUsedCount?: number | undefined; /** * Average number of runs per day for this user over the specified time period. */ averageRunsPerDayCount?: number | undefined; /** * Total number of agents created by this user over the specified time period. */ agentsCreatedCount?: number | undefined; /** * Total number of agent runs for this user over the specified time period. */ runCount?: number | undefined; }; /** @internal */ export const AgentUsersInsight$inboundSchema: z.ZodType< AgentUsersInsight, z.ZodTypeDef, unknown > = z.object({ person: Person$inboundSchema.optional(), departmentName: z.string().optional(), agentsUsedCount: z.number().int().optional(), averageRunsPerDayCount: z.number().optional(), agentsCreatedCount: z.number().int().optional(), runCount: z.number().int().optional(), }); export function agentUsersInsightFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => AgentUsersInsight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentUsersInsight' from JSON`, ); }