Create a new InvitationBuilder.
Context for invitation creation.
Add a commit to the invitation.
The commit to add.
The builder instance.
Build the XOInvitation object to be shared.
The built XOInvitation.
Creates an unsigned commit without adding it to the invitation. This allows for atomic commit creation with signature.
Parameters for creating the commit
OptionalexpiresAtTimestamp?: numberOptional expiration timestamp (defaults to now + DEFAULT_COMMIT_EXPIRATION_IN_MILLISECONDS)
Optionalinputs?: XOInvitationInput[]Optional array of inputs to add
Optionaloutputs?: XOInvitationOutput[]Optional array of outputs to add
OptionaltransactionLocktime?: numberOptional transaction locktime
OptionaltransactionVersion?: numberOptional transaction version
Optionalvariables?: XOInvitationVariable[]Optional array of variables to add
The unsigned commit (without signature)
Returns the last InvitationCommit in the invitation.
The last InvitationCommit object, or undefined if there are no commits.
Returns the commitIdentifier of the last commit in the invitation.
The commitIdentifier as a string, or undefined if there are no commits.
StaticfromCreate a builder from an existing invitation.
An existing XOInvitation.
The identifier of the action for the invitation.
The identifier of the current invitation.
TODO: Add validations and type checks to the identifier e.g length.
The identifier of the template for the invitation.
TODO: Add validations and type checks to the identifier e.g it should be a 32 byte hex string, etc.
Builder for the XOInvitation