import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The current status of the batch processing. */ export declare const PeopleBatchResultsStatus: { readonly Pending: "pending"; readonly Processing: "processing"; readonly Completed: "completed"; readonly Failed: "failed"; readonly PartialSuccess: "partial_success"; }; /** * The current status of the batch processing. */ export type PeopleBatchResultsStatus = ClosedEnum; /** * The type of person created. */ export declare const Role: { readonly Employee: "employee"; }; /** * The type of person created. */ export type Role = ClosedEnum; /** * The status of this batch item. */ export declare const PeopleBatchResultsResultsStatus: { readonly Success: "success"; readonly PartialSuccess: "partial_success"; readonly Failed: "failed"; }; /** * The status of this batch item. */ export type PeopleBatchResultsResultsStatus = ClosedEnum; export type PeopleBatchResultsResultsErrors = {}; export type PeopleBatchResultsErrors = { /** * The key identifying the error source. */ errorKey?: string | undefined; /** * The error category. */ category?: string | undefined; /** * Human-readable error message. */ message?: string | null | undefined; /** * Nested errors for sub-operations. */ errors?: Array | null | undefined; }; export type Results = { /** * The external ID provided in the batch request. */ externalId?: string | undefined; /** * The type of person created. */ role?: Role | undefined; /** * The status of this batch item. */ status?: PeopleBatchResultsResultsStatus | undefined; /** * The index of this item in the original batch request. */ idx?: number | undefined; /** * The UUID of the created person. */ uuid?: string | undefined; /** * The UUID of the created employee (if role is employee). */ employeeUuid?: string | undefined; /** * Errors encountered while processing this batch item. */ errors?: Array | null | undefined; }; export type Exclusions = { /** * The external ID of the excluded item(s). */ externalId?: string | undefined; /** * The exclusion category. */ category?: string | undefined; /** * Human-readable explanation for exclusion. */ message?: string | undefined; /** * Number of items affected by this exclusion. */ itemCount?: number | undefined; }; /** * A people batch with processing results. */ export type PeopleBatchResults = { /** * The unique identifier of the people batch. */ uuid: string; /** * The idempotency key provided when creating the batch. */ idempotencyKey: string; /** * The current status of the batch processing. */ status: PeopleBatchResultsStatus; /** * The timestamp when the batch was submitted. */ submittedAt?: Date | undefined; /** * The timestamp when the batch processing completed. */ completedAt?: Date | null | undefined; /** * The number of items submitted in the batch. */ submittedItems?: number | null | undefined; /** * The number of items successfully processed. */ processedItems?: number | undefined; /** * The number of items excluded from processing. */ excludedItems?: number | undefined; /** * The results for each batch item. */ results?: Array | undefined; /** * Items excluded from processing due to validation errors. */ exclusions?: Array | null | undefined; }; /** @internal */ export declare const PeopleBatchResultsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Role$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PeopleBatchResultsResultsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PeopleBatchResultsResultsErrors$inboundSchema: z.ZodType; export declare function peopleBatchResultsResultsErrorsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PeopleBatchResultsErrors$inboundSchema: z.ZodType; export declare function peopleBatchResultsErrorsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Results$inboundSchema: z.ZodType; export declare function resultsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Exclusions$inboundSchema: z.ZodType; export declare function exclusionsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PeopleBatchResults$inboundSchema: z.ZodType; export declare function peopleBatchResultsFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=peoplebatchresults.d.ts.map