@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias IdentityValidateError

    IdentityValidateError:
        | ServiceError<
            | "INVALID_COUNTRY"
            | "INVALID_PHONE"
            | "INVALID_EMAIL"
            | "INVALID_DATE_OF_BIRTH",
        >
        | ServiceError<"DUPLICATE", { duplicateIds: Identity["id"][] }>

    Errors returned by the private IdentityService.validate, and re-surfaced by create and update.

    Named and exported rather than derived via ErrorReturnedBy<typeof this.validate>: private members are emitted without their types, so that form degrades to unknown in the .d.ts and — with skipLibCheck masking it at the producer — surfaces only as result.error is of type unknown in consumers.