Token actions¶
Token actions return new plain token-shaped values. Tokens are immutable domain values: these actions do not mutate an existing token in place.
| Type | Payload | Result |
|---|---|---|
token:transform |
{ token, properties? } |
Token copy with properties and _transformedFrom |
token:attach |
{ host, attachment, attachmentType? } |
Host copy with an attachment |
token:detach |
{ host, attachmentId } |
Host copy without that attachment |
token:merge |
{ tokens, properties?, keepOriginals? } |
{ merged, originals? } |
token:split |
{ token, count?, propertiesArray? } |
Array of token parts |
Merge and split results carry provenance (_mergedFrom and _splitFrom). The
caller is responsible for placing returned values into a CRDT-backed container.