Principal
object type
A resolved session principal — what an authenticated call acts as.
Fields
| Field | Type | Notes |
|---|---|---|
sessionId | ID ID! | |
kind | String String! | The principal class — user | api | device. |
userId | ID | The User construct the session is a principal of — user kind only. |
accountId | ID | The acting Account — user + api kinds (the api kind's = the minter's Account); null on device. |
apiKeyId | ID | The ApiKey the session was exchanged from — api kind only. |
deviceId | ID | The Device the session belongs to — the device kind, AND the user kind on a composite POS session; null otherwise. |
deviceType | String | The device's canned hardware class — the device kind + the composite POS session's user kind; null otherwise. |
registerId | ID | The device's live 0..1 Register binding — the device kind + the composite POS session's user kind (null while unpaired / on pi_bridge / without a device facet). The register derives its till + selling location from this, never from a device(id) read (a cashier tier cannot make one). |
logicalFacilityId | ID | The device's parent LogicalFacility (the selling location) — the device kind + the composite POS session's user kind; null otherwise. |
orgId | ID ID! | The organization the session acts in (the attribution org). |
rootId | ID ID! | The org-group family root. |
capability | String | The live effective capability, re-derived from the account status every call — user/api kinds; null on device. |
groupCaption | String | The session’s organization group caption; read from the group record on every me — null only when the session names no group (never for a live session). |
roleCaptions | String [String!] | The captions of the roles the session acts with in its organization — user kind only; null on the api/device kinds (their authority is the key’s / the device’s, not a role’s). |
orgCreatedAt | String | The acting organization's creation instant (the Organization record's createdAt, ISO-8601): the office's What's new starts at the later of the platform's public launch day and this day, so a merchant never sees changes older than their own start; null only when the organization record is absent. |