dispositionsquerysince 0.1
How a holder stands toward others at a position: their current Dispositions, optionally toward one target or along one dimension.
Request
umwelt call story.umw dispositions '{
"projectId": "ball",
"holder": "duchess",
"target": "bob",
"at": { "tick": 5 }
}'Request
const result = await client.dispositions({ projectId: 'ball', holder: 'duchess', target: 'bob', at: { tick: 5 } });Request
var result = engine.Dispositions(new DispositionsPayload
{
ProjectId = "ball",
Holder = "duchess",
Target = "bob",
At = new At { Tick = 5 },
});Response
[
{
"kind": "disposition",
"id": "01a1cbd8-63eb-7582-b85c-f6eb411602a1",
"projectId": "ball",
"timelineId": "main",
"eventId": "01a1cbd8-63eb-7582-b85c-f6d27a940591",
"holder": "duchess",
"target": "bob",
"dimension": "trust",
"value": 0.9,
"position": { "tick": 5 },
"provenance": { "origin": { "kind": "system", "name": "umwelt:disposition" } },
"recordedAt": 8
}
]Payload
| Field | Type | Description |
|---|---|---|
projectIdrequired | string | The project to read. |
holderrequired | string | The agent or group asked about. |
target | string | Only the Dispositions toward this entity. |
dimension | string | Only this dimension, such as trust. |
at | Atdefault {} | Where to read: tick, an optional axis, and asOfVersion. Defaults to the latest. |
timelineId | stringdefault "main" | The timeline to read. |
Result
A list of Record, each with:
| Field | Type | Description |
|---|---|---|
kindalways | "disposition" | Always a Disposition. |
holderalways | string | Who feels it: the holder asked about. |
targetalways | string | Toward whom. |
dimensionalways | string | Along which dimension, such as trust or fear. |
valuealways | any JSON | The current value, as your application set it. |
idalways | string | The record’s id. |
eventIdalways | string | The event it was written in. |
positionalways | Position | Where it was set in the story. |
recordedAtalways | integer | The version that wrote it. |
provenancealways | Provenance | Who or what set it. |
Ordered by target, then dimension. An empty list when the holder feels nothing toward the target asked about.
Rules
The current value only. For each target and dimension, the newest active Disposition at the position. Earlier values stay readable at earlier positions.
One direction. What a holder feels toward a target says nothing about what the target feels toward them.
The feelings of a perspective, alone. The same records perspective returns in dispositions, without its Holdings, awareness and memberships.
Errors
VALIDATION_FAILEDThe payload is malformed.NOT_FOUNDThe project, holder or timeline does not exist, or the draft read was purged.INVALID_STATEThe timeline read is a draft that was promoted. details.promotedInto names the timeline to read instead.HANDSHAKE_REQUIREDOver the protocol, hello was not sent first.Every code is listed in Errors.
See also
Was this page helpful?