aries_cloudagent.protocols.out_of_band.v1_0.models package

Submodules

aries_cloudagent.protocols.out_of_band.v1_0.models.invitation module

Record for out of band invitations.

class aries_cloudagent.protocols.out_of_band.v1_0.models.invitation.InvitationRecord(*, invitation_id: Optional[str] = None, state: Optional[str] = None, invi_msg_id: Optional[str] = None, invitation: Optional[Union[InvitationMessage, Mapping]] = None, invitation_url: Optional[str] = None, oob_id: Optional[str] = None, public_did: Optional[str] = None, trace: bool = False, **kwargs)[source]

Bases: BaseExchangeRecord

Represents an out of band invitation record.

class Meta[source]

Bases: object

InvitationRecord metadata.

schema_class = 'InvitationRecordSchema'
RECORD_ID_NAME = 'invitation_id'
RECORD_TOPIC: Optional[str] = 'oob_invitation'
RECORD_TYPE = 'oob_invitation'
STATE_AWAIT_RESPONSE = 'await_response'
STATE_DONE = 'done'
STATE_INITIAL = 'initial'
TAG_NAMES = {'invi_msg_id'}
property invitation: InvitationMessage

Accessor; get deserialized view.

property invitation_id: str

Accessor for the ID associated with this exchange.

property record_value: dict

Accessor for the JSON record value generated for this invitation.

class aries_cloudagent.protocols.out_of_band.v1_0.models.invitation.InvitationRecordSchema(*args: Any, **kwargs: Any)[source]

Bases: BaseExchangeSchema

Schema to allow serialization/deserialization of invitation records.

class Meta[source]

Bases: object

InvitationRecordSchema metadata.

model_class

alias of InvitationRecord

aries_cloudagent.protocols.out_of_band.v1_0.models.oob_record module

Record for out of band invitations.

class aries_cloudagent.protocols.out_of_band.v1_0.models.oob_record.OobRecord(*, state: str, invi_msg_id: str, role: str, invitation: Union[InvitationMessage, Mapping[str, Any]], their_service: Optional[ServiceDecorator] = None, connection_id: Optional[str] = None, reuse_msg_id: Optional[str] = None, oob_id: Optional[str] = None, attach_thread_id: Optional[str] = None, our_recipient_key: Optional[str] = None, our_service: Optional[ServiceDecorator] = None, multi_use: bool = False, trace: bool = False, **kwargs)[source]

Bases: BaseExchangeRecord

Represents an out of band record.

class Meta[source]

Bases: object

OobRecord metadata.

schema_class = 'OobRecordSchema'
RECORD_ID_NAME = 'oob_id'
RECORD_TOPIC: Optional[str] = 'out_of_band'
RECORD_TYPE = 'oob_record'
RECORD_TYPE_METADATA = 'connection_metadata'
ROLE_RECEIVER = 'receiver'
ROLE_SENDER = 'sender'
STATE_ACCEPTED = 'reuse-accepted'
STATE_AWAIT_RESPONSE = 'await-response'
STATE_DONE = 'done'
STATE_INITIAL = 'initial'
STATE_NOT_ACCEPTED = 'reuse-not-accepted'
STATE_PREPARE_RESPONSE = 'prepare-response'
TAG_NAMES = {'attach_thread_id', 'connection_id', 'invi_msg_id', 'our_recipient_key', 'reuse_msg_id'}
async delete_record(session: ProfileSession)[source]

Perform connection record deletion actions.

Parameters

session (ProfileSession) – session

property invitation: InvitationMessage

Accessor; get deserialized view.

async metadata_delete(session: ProfileSession, key: str)[source]

Delete custom metadata associated with this connection.

Parameters
  • session (ProfileSession) – session used for storage

  • key (str) – key of metadata to delete

async metadata_get(session: ProfileSession, key: str, default: Optional[Any] = None) Any[source]

Retrieve arbitrary metadata associated with this connection.

Parameters
  • session (ProfileSession) – session used for storage

  • key (str) – key identifying metadata

  • default (Any) – default value to get; type should be a JSON compatible value.

Returns

metadata stored by key

Return type

Any

async metadata_get_all(session: ProfileSession) dict[source]

Return all custom metadata associated with this connection.

Parameters

session (ProfileSession) – session used for storage

Returns

dictionary representation of all metadata values

Return type

dict

async metadata_set(session: ProfileSession, key: str, value: Any)[source]

Set arbitrary metadata associated with this connection.

Parameters
  • session (ProfileSession) – session used for storage

  • key (str) – key identifying metadata

  • value (Any) – value to set

property oob_id: str

Accessor for the ID associated with this exchange.

property record_value: dict

Accessor for the JSON record value generated for this invitation.

class aries_cloudagent.protocols.out_of_band.v1_0.models.oob_record.OobRecordSchema(*args: Any, **kwargs: Any)[source]

Bases: BaseExchangeSchema

Schema to allow serialization/deserialization of invitation records.

class Meta[source]

Bases: object

OobRecordSchema metadata.

model_class

alias of OobRecord