js-bao-wss-client / FunctionRun
Interface: FunctionRun
A function run's row, with only the fields a function row has.
workflowId, workflowKey, revisionId, skipReason and the three failedStep* fields are DSL vocabulary the server never sets for a function row; they are not declared here and the reader does not pass them through, so this block is the same on both clients (Swift can only decode what it declares). The row's execution mode is left out for a different reason: it still stores the vocabulary that was retired when the caller became the one who picks a runtime, and renaming it belongs to the retirement phase.
Properties
contextDocId?
optionalcontextDocId?:string
createCallDurationMs?
optionalcreateCallDurationMs?:number|null
endedAt?
optionalendedAt?:string
errorCode?
optionalerrorCode?:FunctionRunErrorCode|null
errorMessage?
optionalerrorMessage?:string|null
errorTitle?
optionalerrorTitle?:string|null
executionPrincipal
executionPrincipal:
string|null
Who the run executed AS — sys:<appId> for a trigger-fired root.
executionStartedAt?
optionalexecutionStartedAt?:string|null
functionId
functionId:
string|null
The function this run belongs to. null for a DSL run read through this surface.
functionKey
functionKey:
string|null
instanceId?
optionalinstanceId?:string
meta?
optionalmeta?:Record<string,unknown>
nestDepth
nestDepth:
number
How deep in a nested-start tree this run is. 0 for a root.
parentFunctionKey
parentFunctionKey:
string|null
The function that started this one, for a nested start.
parentRunId
parentRunId:
string|null
queueDelayMs?
optionalqueueDelayMs?:number|null
runId
runId:
string
runKey
runKey:
string
startedAt?
optionalstartedAt?:string
status
status:
FunctionRunStatusValue