/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 3f0a128fed55 */ import * as z from "zod/v3"; import { ExternalShortcut, ExternalShortcut$Outbound, ExternalShortcut$outboundSchema, } from "./externalshortcut.js"; /** * Describes the request body of the /bulkindexshortcuts API call */ export type BulkIndexShortcutsRequest = { /** * 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 shortcuts information */ shortcuts: Array; }; /** @internal */ export type BulkIndexShortcutsRequest$Outbound = { uploadId: string; isFirstPage?: boolean | undefined; isLastPage?: boolean | undefined; forceRestartUpload?: boolean | undefined; shortcuts: Array; }; /** @internal */ export const BulkIndexShortcutsRequest$outboundSchema: z.ZodType< BulkIndexShortcutsRequest$Outbound, z.ZodTypeDef, BulkIndexShortcutsRequest > = z.object({ uploadId: z.string(), isFirstPage: z.boolean().optional(), isLastPage: z.boolean().optional(), forceRestartUpload: z.boolean().optional(), shortcuts: z.array(ExternalShortcut$outboundSchema), }); export function bulkIndexShortcutsRequestToJSON( bulkIndexShortcutsRequest: BulkIndexShortcutsRequest, ): string { return JSON.stringify( BulkIndexShortcutsRequest$outboundSchema.parse(bulkIndexShortcutsRequest), ); }