@cfxlabsinc/b2b-services
    Preparing search index...
    CachedIdentity: Omit<Identity, "createdAt" | "updatedAt" | "deletedAt"> & {
        createdAt: string;
        deletedAt?: string;
        updatedAt: string;
    }

    JSON-safe projection of Identity.

    Two callers need it and they need the same one:

    • The L2 cache, which round-trips through JSON, so Date fields would arrive as strings on cross-process / post-L1 reads.
    • Next.js, where a server component or server action hands an Identity across the RSC → client boundary.

    createdAt / updatedAt / deletedAt are the only Date-typed fields.