breachesquerysince 0.1
Every time a secret was told to someone outside the circle it was shared with.
Request
umwelt call story.umw breaches '{
"projectId": "ball",
"owner": "bob"
}'Request
const result = await client.breaches({ projectId: 'ball', owner: 'bob' });Request
var result = engine.Breaches(new BreachesPayload { ProjectId = "ball", Owner = "bob" });Response
[
{
"eventId": "01a1cbd8-63e7-79a2-b499-79f2f92d2d0f",
"recordId": "ana-heard",
"position": { "tick": 5 },
"owner": "bob",
"recipient": "ana",
"secretRecordId": "bob-hid",
"toldBy": "bob"
}
]Payload
| Field | Type | Description |
|---|---|---|
projectIdrequired | string | The project to read. |
owner | string | Only the secrets kept by this holder. |
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 Breach, each with:
| Field | Type | Description |
|---|---|---|
secretRecordIdalways | string | The secret Holding. |
owneralways | string | Who keeps the secret. |
toldByalways | string | Who told it. |
recipientalways | string | Who heard it. |
recordIdalways | string | The recipient’s Holding, acquired by being told. |
positionalways | Position | Where it was told. |
eventIdalways | string | The event it was told in. |
Rules
Telling is never blocked. A secret told outside secrecy.sharedWith is recorded, and the write returns the warning SECRET_BREACH. The engine applies no policy.
Second-hand retelling. Someone who heard the secret and tells it again is reached through trace.
Errors
VALIDATION_FAILEDThe payload is malformed.NOT_FOUNDThe project 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?