Skip to content

CollectionAddOp

Builder collection add operation. ADR 0004 requires an explicit name.

readonly operation: "add"

Operation discriminator. Always add.


readonly optional kind?: "collection"

Optional kind override. Collection add inputs may omit this when type and members are present.


readonly name: string

Explicit collection name. ADR 0004 treats collections as ordinary named things, so collection adds cannot be nameless.


readonly type: CollectionAddType

Collection type.


readonly members: string[]

Collection member wrefs.


readonly optional skipExisting?: boolean

When true, an existing target returns noop instead of failing.