StaticnewCreates a new sealed request with the given function, ID, and sender.
The function to call (string name or Function object)
The request ID
The sender's XID document
StaticnewCreates a new sealed request with an expression body.
The expression body
The request ID
The sender's XID document
Adds a parameter to the request.
Adds an optional parameter to the request.
Returns the function of the request.
Returns the expression envelope of the request.
Returns the object for a parameter.
Returns all objects for a parameter.
Extracts an object for a parameter as a specific type.
Extracts an optional object for a parameter.
Extracts all objects for a parameter as a specific type.
Returns the body of the request.
Returns the ID of the request.
Returns the note of the request.
Returns the date of the request.
Adds state to the request that the receiver must return in the response.
Adds a continuation previously received from the recipient.
Adds an optional continuation previously received from the recipient.
Returns the underlying request.
Returns the sender of the request.
Returns the state to be sent to the recipient.
Returns the continuation received from the recipient.
Converts the sealed request to a Request.
Converts the sealed request to an Expression.
Creates an envelope that can be decrypted by zero or one recipient.
OptionalvalidUntil: DateOptional expiration date for the continuation
Optionalsigner: SignerOptional signer for the envelope
Optionalrecipient: XIDDocumentOptional recipient XID document for encryption
The sealed request as an envelope
Creates an envelope that can be decrypted by zero or more recipients.
OptionalvalidUntil: DateOptional expiration date for the continuation
Optionalsigner: SignerOptional signer for the envelope
Optionalrecipients: XIDDocument[]Array of recipient XID documents for encryption
The sealed request as an envelope
StatictryParses a sealed request from an encrypted envelope.
The encrypted envelope to parse
Optional expected request ID for validation
Optional current time for continuation validation
The recipient's private keys for decryption
The parsed sealed request
Returns a string representation of the sealed request.
A sealed request that combines a Request with sender information and state continuations for secure communication.
Example