aries_cloudagent.protocols.issue_credential.v1_0.messages.inner package

Submodules

aries_cloudagent.protocols.issue_credential.v1_0.messages.inner.credential_preview module

A credential preview inner object.

class aries_cloudagent.protocols.issue_credential.v1_0.messages.inner.credential_preview.CredAttrSpec(*, name: str, value: str, mime_type: Optional[str] = None, **kwargs)[source]

Bases: BaseModel

Class representing a preview of an attibute.

class Meta[source]

Bases: object

Attribute preview metadata.

schema_class = 'CredAttrSpecSchema'
b64_decoded_value() str[source]

Value, base64-decoded if applicable.

static list_plain(plain: dict)[source]

Return a list of CredAttrSpec without MIME types from names/values.

Parameters

plain – dict mapping names to values

Returns

List of CredAttrSpecs with no MIME types

class aries_cloudagent.protocols.issue_credential.v1_0.messages.inner.credential_preview.CredAttrSpecSchema(*args: Any, **kwargs: Any)[source]

Bases: BaseModelSchema

Attribute preview schema.

class Meta[source]

Bases: object

Attribute preview schema metadata.

model_class

alias of CredAttrSpec

class aries_cloudagent.protocols.issue_credential.v1_0.messages.inner.credential_preview.CredentialPreview(*, _type: Optional[str] = None, attributes: Optional[Sequence[CredAttrSpec]] = None, **kwargs)[source]

Bases: BaseModel

Class representing a credential preview inner object.

class Meta[source]

Bases: object

Credential preview metadata.

message_type = 'issue-credential/1.0/credential-preview'
schema_class = 'CredentialPreviewSchema'
attr_dict(decode: bool = False)[source]

Return name:value pair per attribute.

Parameters

decode – whether first to decode attributes with MIME type

mime_types()[source]

Return per-attribute mapping from name to MIME type.

Return empty dict if no attribute has MIME type.

class aries_cloudagent.protocols.issue_credential.v1_0.messages.inner.credential_preview.CredentialPreviewSchema(*args: Any, **kwargs: Any)[source]

Bases: BaseModelSchema

Credential preview schema.

class Meta[source]

Bases: object

Credential preview schema metadata.

model_class

alias of CredentialPreview

attributes

alias of CredAttrSpecSchema