Payload class

A bridge asks the VTA whether an inbound conversation may reach an AI agent, prompting operator consent on first contact.

Constructors

Payload({required ConsentSubject subject, required Scope scope, required String challenge, String? displayHint, DigestMultibase? firstMessageDigest, String? contextHint, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

challenge → String
base64url-encoded nonce (≥128 bits entropy) echoed by the matching consent/decision, so the bridge can correlate the decision to this request.
final
contextHint → String?
Optional VTA context path the bridge runs under, to scope approver resolution.
final
displayHint → String?
Optional operator-facing label (e.g. "Signal group 'Family'"). MUST NOT contain a raw platform address.
final
ext → Ext?
final
firstMessageDigest → String?
Optional multibase-encoded multihash over the rfc 8785 (jcs) canonicalization of the held first message, binding the request to concrete content.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → Scope
The access the bridge seeks for the agent on this conversation.
final
subject → ConsentSubject
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited