aries_cloudagent.protocols.discovery.v1_0.models package

Package-wide code and data.

Submodules

aries_cloudagent.protocols.discovery.v1_0.models.discovery_record module

.

class aries_cloudagent.protocols.discovery.v1_0.models.discovery_record.V10DiscoveryExchangeRecord(*, state: Optional[str] = None, discovery_exchange_id: Optional[str] = None, connection_id: Optional[str] = None, thread_id: Optional[str] = None, query_msg: Optional[Union[Mapping, Query]] = None, disclose: Optional[Union[Mapping, Disclose]] = None, **kwargs)[source]

Bases: BaseExchangeRecord

Represents a Discover Feature (0031) exchange record.

class Meta[source]

Bases: object

V10DiscoveryExchangeRecord metadata.

schema_class = 'V10DiscoveryRecordSchema'
RECORD_ID_NAME = 'discovery_exchange_id'
RECORD_TOPIC: Optional[str] = 'discover_feature'
RECORD_TYPE = 'discovery_exchange_v10'
STATE_DISCLOSE_RECV = 'disclose-received'
STATE_QUERY_SENT = 'query-sent'
TAG_NAMES = {'connection_id', 'thread_id'}
property disclose: Disclose

Accessor; get deserialized view.

property discovery_exchange_id: str

Accessor for the ID.

async classmethod exists_for_connection_id(session: ProfileSession, connection_id: str) bool[source]

Return whether a discovery exchange record exists for the given connection.

Parameters:
  • session (ProfileSession) – session

  • connection_id (str) – connection_id

Returns:

whether record exists

Return type:

bool

property query_msg: Query

Accessor; get deserialized view.

property record_value: dict

Accessor for the JSON record value generated.

async classmethod retrieve_by_connection_id(session: ProfileSession, connection_id: str) V10DiscoveryExchangeRecord[source]

Retrieve a discovery exchange record by connection.

async classmethod retrieve_if_exists_by_connection_id(session: ProfileSession, connection_id: str) Optional[V10DiscoveryExchangeRecord][source]

Retrieve a discovery exchange record by connection.

class aries_cloudagent.protocols.discovery.v1_0.models.discovery_record.V10DiscoveryRecordSchema(*args: Any, **kwargs: Any)[source]

Bases: BaseExchangeSchema

Schema to allow ser/deser of Discover Feature (0031) records.

class Meta[source]

Bases: object

V10DiscoveryRecordSchema metadata.

model_class

alias of V10DiscoveryExchangeRecord