RedactParams
Defined in: src/types/index.ts:1003
What a RedactCallback is being asked about.
Properties
Section titled “Properties”kind: "state" | "payload";Defined in: src/types/index.ts:1009
Which of the two inlined blobs the value came from: 'state' for a state’s raw
ASL in #sfn-state-data, 'payload' for a run’s input, output, failure cause or
error name on #sfn-timeline-data.
path: string;Defined in: src/types/index.ts:1020
Where the value sits. For a state, the node id followed by the dotted path
within its ASL - 'ProcessOrder' for the state itself, then
'ProcessOrder.Parameters', 'ProcessOrder.Retry[0].MaxAttempts'. For a
payload, '<stateId>.' and one of input, output, cause or error.
For matching, not identity: the path is built by concatenation, so a key that
itself contains a dot or a bracket - 'Payload.$', which ASL uses constantly -
produces a path indistinguishable from one more level of nesting.
stateId?
Section titled “stateId?”stateId?: string;Defined in: src/types/index.ts:1031
The entry the value is inlined under, as the node id the renderer stamps as
data-state-id. Always present when the hook is called from a generator.
Not always the state the value describes: a Parallel or Map container’s own ASL
contains its children whole, so a nested state’s ASL is offered twice - once
under its own scoped id, and again inside its container’s entry under the
container’s id. A hook that must catch every copy keys on path or on the
value, not on stateId alone.
value: unknown;Defined in: src/types/index.ts:1036
The value as it would otherwise be inlined: any JSON value for a state, the payload text (already capped) for a payload.