Actor

Principal attributed to a mutation. Polymorphic envelope discriminated by method; the matching nested field (user, personal_key, org_key) is populated.

  • object
    Type: string

    Resource type identifier

  • method
    Type: string

    Principal class. One of session, personal_key, org_key, system.

  • user
    Type: object · User

    Full user profile. Populated for session and personal_key (the key owner) when the user row is resolvable; null for org_key and system, and also null when the user row was deleted after the attribution was recorded.

    • object
      Type: string

      Resource type identifier

    • id
      Type: string

      Unique identifier for the user

    • email
      Type: string

      User's email address

    • first_name
      Type: string

      User's first name

    • last_name
      Type: string

      User's last name

    • avatar_url
      Type: string

      URL to user's avatar image

    • mfa_enabled
      Type: boolean

      Whether MFA is enabled for this user

    • created_at
      Type: string

      When the user was created

    • updated_at
      Type: string

      When the user was last updated

    • last_login_at
      Type: string

      When the user last successfully authenticated anywhere (global across all orgs; nil if never). For per-org login recency, see the membership resource's last_login_at.

    • last_active_at
      Type: string

      When the user last made an authenticated request anywhere (global across all orgs; debounced ~1 minute, nil if never). For per-org activity recency, see the membership resource's last_active_at.

  • personal_key
    Type: object · ActorPersonalKey

    Personal API key pointer. Populated only for personal_key.

    • object
      Type: string

      Resource type identifier

    • id
      Type: string

      Personal API key typeid (prefix pkey_)

  • org_key
    Type: object · ActorOrgKey

    Org API key pointer. Populated only for org_key.

    • object
      Type: string

      Resource type identifier

    • id
      Type: string

      Org API key typeid (prefix okey_)