five-on-it / apps/api/src/store / Run
Interface: Run
Defined in: apps/api/src/store.ts:362
A run (runs.ts, TECHNICAL_SPECS §9.5): one play of one mission in a room of its own, for a roster (RunPlayer). It is open until its game server reports how it ended (complete, failed, abandoned; won or a draw in versus) or the sweep finds it lost (no result in time, or its room gone): a lost run counts for nothing. The token its server reports with is kept as its SHA-256 alone, and the result it took as the hash of its body, so the same result sent again is taken once and a different one refused.
Properties
createdAt
createdAt:
string
Defined in: apps/api/src/store.ts:390
ISO times.
endedAt?
optionalendedAt?:string
Defined in: apps/api/src/store.ts:391
game
game:
string
Defined in: apps/api/src/store.ts:366
The game: a published game's id (g-…), or a curated bundled level's name.
id
id:
string
Defined in: apps/api/src/store.ts:364
run-….
lostAfter
lostAfter:
string
Defined in: apps/api/src/store.ts:377
When it counts as lost if no result came and its room is out of sight (ISO): its mission's attempts and a margin.
mission
mission:
string
Defined in: apps/api/src/store.ts:370
The mission's id and title.
owner
owner:
string
Defined in: apps/api/src/store.ts:379
The account that opened it.
paidAt?
optionalpaidAt?:string
Defined in: apps/api/src/store.ts:393
ISO time its seats' standing was paid (respect.ts): a settled run without it is paid by the sweep.
playtest
playtest:
boolean
Defined in: apps/api/src/store.ts:381
A creator's playtest: its minimum of players relaxed, counting for nothing.
reportHash
reportHash:
string
Defined in: apps/api/src/store.ts:385
The SHA-256 of the token its game server reports with.
result?
optionalresult?:object
Defined in: apps/api/src/store.ts:388
debug?
optionaldebug?:boolean
forfeit?
optionalforfeit?:boolean
missionHash
missionHash:
string
outcome
outcome:
"complete"|"failed"|"abandoned"|"won"|"draw"
runId
runId:
string
seats
seats:
object[]
seconds
seconds:
number
winner?
optionalwinner?:string
resultHash?
optionalresultHash?:string
Defined in: apps/api/src/store.ts:387
The SHA-256 of the result's body it took, and the result.
room
room:
string
Defined in: apps/api/src/store.ts:373
The room it was opened in (room-…).
server
server:
string
Defined in: apps/api/src/store.ts:375
Where the API reaches the game server its room is on (its internal address): what the sweep asks.
state
state:
"open"|"complete"|"failed"|"abandoned"|"won"|"draw"|"lost"
Defined in: apps/api/src/store.ts:383
Where it stands: a versus run ends won (its result names the winner) or a draw.
title
title:
string
Defined in: apps/api/src/store.ts:371
version?
optionalversion?:number
Defined in: apps/api/src/store.ts:368
The published version played; none for a bundled game.