aries_cloudagent.protocols.issue_credential.v2_0.messages.inner package

Submodules

aries_cloudagent.protocols.issue_credential.v2_0.messages.inner.cred_preview module

Credential preview inner object.

class aries_cloudagent.protocols.issue_credential.v2_0.messages.inner.cred_preview.V20CredAttrSpec(*, name: str, value: str, mime_type: Optional[str] = None, **kwargs)[source]

Bases: BaseModel

Attribute preview.

class Meta[source]

Bases: object

Attribute preview metadata.

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

Value, base64-decoded if applicable.

static list_plain(plain: dict) Sequence[V20CredAttrSpec][source]

Return a list of V20CredAttrSpec (copies), absent any MIME types.

Parameters

plain – dict mapping names to values

Returns

List of V20CredAttrSpec (copies), absent any MIME types

class aries_cloudagent.protocols.issue_credential.v2_0.messages.inner.cred_preview.V20CredAttrSpecSchema(*args: Any, **kwargs: Any)[source]

Bases: BaseModelSchema

Attribute preview schema.

class Meta[source]

Bases: object

Attribute preview schema metadata.

model_class

alias of V20CredAttrSpec

class aries_cloudagent.protocols.issue_credential.v2_0.messages.inner.cred_preview.V20CredPreview(*, _type: Optional[str] = None, attributes: Optional[Sequence[V20CredAttrSpec]] = None, **kwargs)[source]

Bases: BaseModel

Credential preview.

class Meta[source]

Bases: object

Credential preview metadata.

message_type = 'issue-credential/2.0/credential-preview'
schema_class = 'V20CredPreviewSchema'
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.v2_0.messages.inner.cred_preview.V20CredPreviewSchema(*args: Any, **kwargs: Any)[source]

Bases: BaseModelSchema

Credential preview schema.

class Meta[source]

Bases: object

Credential preview schema metadata.

model_class

alias of V20CredPreview

attributes

alias of V20CredAttrSpecSchema