Member Junction
    Preparing search index...

    Type Alias UserPayload

    type UserPayload = {
        apiKey?: string;
        apiKeyHash?: string;
        apiKeyId?: string;
        ElevatedFrom?: UserInfo;
        email: string;
        emailVerified?: boolean;
        isSystemUser?: boolean;
        sessionId: string;
        TimeZone?: string;
        userRecord: any;
    }
    Index

    Properties

    apiKey?: string
    apiKeyHash?: string

    SHA-256 hash of the MJ API key (used for scope authorization)

    apiKeyId?: string

    ID of the MJ API key used for authentication (when using mj_sk_* format keys)

    ElevatedFrom?: UserInfo

    Set only on a payload elevated by ElevateUserPayload: the principal the elevated user stands in for (a public widget guest). The run's own records are written as userRecord, but the guest's conversation is written as this user, because only a conversation's owner (or a grantee) may write its messages (MJ#4791).

    email: string
    emailVerified?: boolean

    The IdP's OIDC email_verified assertion from the verified JWT, when present. Three-state: true (IdP vouched for the email), false (IdP explicitly says the email is unverified — security-sensitive flows must not trust an email match), undefined (the IdP omits the claim, or auth was via API key / magic link). Consumed by identity-claim redemption; do not treat undefined as false.

    isSystemUser?: boolean
    sessionId: string
    TimeZone?: string

    The caller's IANA time zone, from the request's x-mj-timezone header, when it names a zone this runtime knows. Undefined when the header is absent or invalid; callers then use UTC. The view and query resolvers pass it on as RunViewParams.TimeZone / RunQueryParams.TimeZone.

    userRecord: any