/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 62a39c999621 */ import * as z from "zod/v3"; import { TeamInfoDefinition, TeamInfoDefinition$Outbound, TeamInfoDefinition$outboundSchema, } from "./teaminfodefinition.js"; /** * Info about a team and optional version for that info */ export type IndexTeamRequest = { /** * Information about an employee's team */ team: TeamInfoDefinition; /** * Version number for the team object. If absent or 0 then no version checks are done */ version?: number | undefined; }; /** @internal */ export type IndexTeamRequest$Outbound = { team: TeamInfoDefinition$Outbound; version?: number | undefined; }; /** @internal */ export const IndexTeamRequest$outboundSchema: z.ZodType< IndexTeamRequest$Outbound, z.ZodTypeDef, IndexTeamRequest > = z.object({ team: TeamInfoDefinition$outboundSchema, version: z.number().int().optional(), }); export function indexTeamRequestToJSON( indexTeamRequest: IndexTeamRequest, ): string { return JSON.stringify( IndexTeamRequest$outboundSchema.parse(indexTeamRequest), ); }