Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 1.57 KB

instants.md

File metadata and controls

61 lines (52 loc) · 1.57 KB

Instants

Instants are built from the timeline and show the current state.

When requested, an Instant is returned in the following format:

{
  "entities": {
    "eid": { ... },
    ...
  }
}

The format for each individual Entity is described in Entities.

Entities

Each Entity's data within the Instant is returned in the following format:

{
  "lvl": 0,
  "name": "John Doe",
  "pubkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----...",
  "privkey": "-----BEGIN PGP PRIVATE KEY BLOCK-----...",
  "sessions": [
    { ... },
    ...
  ]
}

Note that name, pubkey, and privkey may be null if they have not been set. lvl will always be a valid numeric permission level. It defaults to zero if not set otherwise.

Sessions

Each Session's data within the Instant is returned in the following format:

{
  "start": 0,
  "end": 0,
  "valid": true,
  "location": "location-id",
  "approver": "eid",
}

Start

The UNIX timestamp, in seconds, of the time when the Character was signed in.

End

The UNIX timestamp, in seconds, of the time when the Character was signed out. This will be null if the Character is signed in without being signed out.

Valid

This will be considered true only if the Character is signed in, then signed out before their next sign-in event.

Only valid Sessions should be considered when computing any time totals.

Location

The ID of the location at which the meeting took place. See Sign In.

Approver

The EID of the Entity which approved the Session. See Sign Out.