/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 3d96f9d2966b */ import * as z from "zod/v3"; import { TeamInfoDefinition, TeamInfoDefinition$Outbound, TeamInfoDefinition$outboundSchema, } from "./teaminfodefinition.js"; /** * Describes the request body of the /bulkindexteams API call */ export type BulkIndexTeamsRequest = { /** * Unique id that must be used for this bulk upload instance */ uploadId: string; /** * true if this is the first page of the upload. Defaults to false */ isFirstPage?: boolean | undefined; /** * true if this is the last page of the upload. Defaults to false */ isLastPage?: boolean | undefined; /** * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true */ forceRestartUpload?: boolean | undefined; /** * Batch of team information */ teams: Array; }; /** @internal */ export type BulkIndexTeamsRequest$Outbound = { uploadId: string; isFirstPage?: boolean | undefined; isLastPage?: boolean | undefined; forceRestartUpload?: boolean | undefined; teams: Array; }; /** @internal */ export const BulkIndexTeamsRequest$outboundSchema: z.ZodType< BulkIndexTeamsRequest$Outbound, z.ZodTypeDef, BulkIndexTeamsRequest > = z.object({ uploadId: z.string(), isFirstPage: z.boolean().optional(), isLastPage: z.boolean().optional(), forceRestartUpload: z.boolean().optional(), teams: z.array(TeamInfoDefinition$outboundSchema), }); export function bulkIndexTeamsRequestToJSON( bulkIndexTeamsRequest: BulkIndexTeamsRequest, ): string { return JSON.stringify( BulkIndexTeamsRequest$outboundSchema.parse(bulkIndexTeamsRequest), ); }