aries_cloudagent.protocols.issue_credential.v1_0 package¶
-
aries_cloudagent.protocols.issue_credential.v1_0.
problem_report_for_record
(record: Union[aries_cloudagent.connections.models.conn_record.ConnRecord, aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange], desc_en: str) → aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_problem_report.CredentialProblemReport[source]¶ Create problem report for record.
Parameters: - record – connection or exchange record
- desc_en – description text to include in problem report
-
aries_cloudagent.protocols.issue_credential.v1_0.
report_problem
(err: aries_cloudagent.core.error.BaseError, desc_en: str, http_error_class, record: Union[aries_cloudagent.connections.models.conn_record.ConnRecord, aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange], outbound_handler: Coroutine[T_co, T_contra, V_co])[source]¶ Send problem report response and raise corresponding HTTP error.
Parameters: - err – error for internal diagnostics
- desc_en – description text to include in problem report (response)
- http_error_class – HTTP error to raise
- record – record to cite by thread in problem report
- outbound_handler – outbound message handler
Subpackages¶
- aries_cloudagent.protocols.issue_credential.v1_0.handlers package
- Submodules
- aries_cloudagent.protocols.issue_credential.v1_0.handlers.credential_ack_handler module
- aries_cloudagent.protocols.issue_credential.v1_0.handlers.credential_issue_handler module
- aries_cloudagent.protocols.issue_credential.v1_0.handlers.credential_offer_handler module
- aries_cloudagent.protocols.issue_credential.v1_0.handlers.credential_proposal_handler module
- aries_cloudagent.protocols.issue_credential.v1_0.handlers.credential_request_handler module
- aries_cloudagent.protocols.issue_credential.v1_0.messages package
- Subpackages
- Submodules
- aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_ack module
- aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_issue module
- aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_offer module
- aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_proposal module
- aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_request module
- aries_cloudagent.protocols.issue_credential.v1_0.models package
Submodules¶
aries_cloudagent.protocols.issue_credential.v1_0.manager module¶
Classes to manage credentials.
-
class
aries_cloudagent.protocols.issue_credential.v1_0.manager.
CredentialManager
(profile: aries_cloudagent.core.profile.Profile)[source]¶ Bases:
object
Class for managing credentials.
-
create_offer
(cred_ex_record: aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, counter_proposal: aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_proposal.CredentialProposal = None, comment: str = None) → Tuple[aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_offer.CredentialOffer][source]¶ Create a credential offer, update credential exchange record.
Parameters: - cred_ex_record – Credential exchange to create offer for
- comment – optional human-readable comment to set in offer message
Returns: A tuple (credential exchange record, credential offer message)
-
create_proposal
(connection_id: str, *, auto_offer: bool = None, auto_remove: bool = None, comment: str = None, credential_preview: aries_cloudagent.protocols.issue_credential.v1_0.messages.inner.credential_preview.CredentialPreview = None, schema_id: str = None, schema_issuer_did: str = None, schema_name: str = None, schema_version: str = None, cred_def_id: str = None, issuer_did: str = None, trace: bool = False) → aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange[source]¶ Create a credential proposal.
Parameters: - connection_id – Connection to create proposal for
- auto_offer – Should this proposal request automatically be handled to offer a credential
- auto_remove – Should the record be automatically removed on completion
- comment – Optional human-readable comment to include in proposal
- credential_preview – The credential preview to use to create the credential proposal
- schema_id – Schema id for credential proposal
- schema_issuer_did – Schema issuer DID for credential proposal
- schema_name – Schema name for credential proposal
- schema_version – Schema version for credential proposal
- cred_def_id – Credential definition id for credential proposal
- issuer_did – Issuer DID for credential proposal
Returns: Resulting credential exchange record including credential proposal
-
create_request
(cred_ex_record: aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, holder_did: str) → Tuple[aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_request.CredentialRequest][source]¶ Create a credential request.
Parameters: - cred_ex_record – Credential exchange record for which to create request
- holder_did – holder DID
Returns: A tuple (credential exchange record, credential request message)
-
issue_credential
(cred_ex_record: aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, *, comment: str = None, retries: int = 5) → Tuple[aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_issue.CredentialIssue][source]¶ Issue a credential.
Parameters: - cred_ex_record – The credential exchange record for which to issue a credential
- comment – optional human-readable comment pertaining to credential issue
Returns: (Updated credential exchange record, credential message)
Return type: Tuple
-
prepare_send
(connection_id: str, credential_proposal: aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_proposal.CredentialProposal, auto_remove: bool = None, comment: str = None) → Tuple[aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_offer.CredentialOffer][source]¶ Set up a new credential exchange for an automated send.
Parameters: - connection_id – Connection to create offer for
- credential_proposal – The credential proposal with preview
- auto_remove – Flag to automatically remove the record on completion
Returns: A tuple of the new credential exchange record and credential offer message
-
profile
¶ Accessor for the current profile instance.
Returns: The profile instance for this credential manager
-
receive_credential
(message: aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_issue.CredentialIssue, connection_id: str) → aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange[source]¶ Receive a credential from an issuer.
Hold in storage potentially to be processed by controller before storing.
Returns: Credential exchange record, retrieved and updated
-
receive_credential_ack
(message: aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_ack.CredentialAck, connection_id: str) → aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange[source]¶ Receive credential ack from holder.
Returns: credential exchange record, retrieved and updated
-
receive_offer
(message: aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_offer.CredentialOffer, connection_id: str) → aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange[source]¶ Receive a credential offer.
Returns: The credential exchange record, updated
-
receive_problem_report
(message: aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_problem_report.CredentialProblemReport, connection_id: str)[source]¶ Receive problem report.
Returns: credential exchange record, retrieved and updated
-
receive_proposal
(message: aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_proposal.CredentialProposal, connection_id: str) → aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange[source]¶ Receive a credential proposal.
Returns: The resulting credential exchange record, created
-
receive_request
(message: aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_request.CredentialRequest, connection_id: str)[source]¶ Receive a credential request.
Parameters: credential_request_message – Credential request to receive Returns: credential exchange record, retrieved and updated
-
send_credential_ack
(cred_ex_record: aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange)[source]¶ Create, send, and return ack message for input credential exchange record.
Delete credential exchange record if set to auto-remove.
Returns: cred ex record, credential ack message for tracing. Return type: Tuple
-
store_credential
(cred_ex_record: aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, credential_id: str = None) → Tuple[aries_cloudagent.protocols.issue_credential.v1_0.models.credential_exchange.V10CredentialExchange, aries_cloudagent.protocols.issue_credential.v1_0.messages.credential_ack.CredentialAck][source]¶ Store a credential in holder wallet; send ack to issuer.
Parameters: - cred_ex_record – credential exchange record with credential to store and ack
- credential_id – optional credential identifier to override default on storage
Returns: Updated credential exchange record
-
-
exception
aries_cloudagent.protocols.issue_credential.v1_0.manager.
CredentialManagerError
(*args, error_code: str = None, **kwargs)[source]¶ Bases:
aries_cloudagent.core.error.BaseError
Credential error.
aries_cloudagent.protocols.issue_credential.v1_0.message_types module¶
Message and inner object type identifiers for Connections.
aries_cloudagent.protocols.issue_credential.v1_0.routes module¶
Credential exchange admin routes.
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
CredExIdMatchInfoSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Path parameters and validators for request taking credential exchange id.
-
cred_ex_id
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.UUIDFour object>, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
CredIdMatchInfoSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Path parameters and validators for request taking credential id.
-
credential_id
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
IssueCredentialModuleResponseSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Response schema for Issue Credential Module.
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CreateFreeOfferResultSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Result schema for creating free offer.
-
oob_url
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.Endpoint object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
response
= <fields.Nested(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'type': 'Invalid type.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialBoundOfferRequestSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Request schema for sending bound credential offer admin message.
-
counter_proposal
= <fields.Nested(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'type': 'Invalid type.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialCreateSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.utils.tracing.AdminAPIMessageTracingSchema
Base class for request schema for sending credential proposal admin message.
-
auto_remove
= <fields.Boolean(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid boolean.'})>¶
-
comment
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=True, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
cred_def_id
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyCredDefId object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
credential_proposal
= <fields.Nested(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'type': 'Invalid type.'})>¶
-
issuer_did
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyDID object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
schema_id
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndySchemaId object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
schema_issuer_did
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyDID object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
schema_name
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
schema_version
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyVersion object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialExchangeListQueryStringSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Parameters and validators for credential exchange list query.
-
connection_id
= <fields.UUID(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.', 'invalid_uuid': 'Not a valid UUID.'})>¶
-
role
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<OneOf(choices=['issuer', 'holder'], labels=[], error='Must be one of: {choices}.')>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
state
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<OneOf(choices=['proposal_sent', 'proposal_received', 'offer_sent', 'offer_received', 'request_sent', 'request_received', 'credential_issued', 'credential_received', 'credential_acked'], labels=[], error='Must be one of: {choices}.')>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
thread_id
= <fields.UUID(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.', 'invalid_uuid': 'Not a valid UUID.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialExchangeListResultSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Result schema for Aries#0036 v1.0 credential exchange query.
-
results
= <fields.List(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid list.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialFreeOfferRequestSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.utils.tracing.AdminAPIMessageTracingSchema
Request schema for sending free credential offer admin message.
-
auto_issue
= <fields.Boolean(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid boolean.'})>¶
-
auto_remove
= <fields.Boolean(default=True, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid boolean.'})>¶
-
comment
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=True, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
connection_id
= <fields.UUID(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.', 'invalid_uuid': 'Not a valid UUID.'})>¶
-
cred_def_id
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyCredDefId object>, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
credential_preview
= <fields.Nested(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'type': 'Invalid type.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialIssueRequestSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Request schema for sending credential issue admin message.
-
comment
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=True, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialProblemReportRequestSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Request schema for sending problem report.
-
description
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialProposalRequestMandSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.protocols.issue_credential.v1_0.routes.V10CredentialProposalRequestSchemaBase
Request schema for sending credential proposal on mandatory proposal preview.
-
credential_proposal
= <fields.Nested(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'type': 'Invalid type.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialProposalRequestOptSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.protocols.issue_credential.v1_0.routes.V10CredentialProposalRequestSchemaBase
Request schema for sending credential proposal on optional proposal preview.
-
credential_proposal
= <fields.Nested(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'type': 'Invalid type.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialProposalRequestSchemaBase
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.utils.tracing.AdminAPIMessageTracingSchema
Base class for request schema for sending credential proposal admin message.
-
auto_remove
= <fields.Boolean(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid boolean.'})>¶
-
comment
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=True, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
connection_id
= <fields.UUID(default=<marshmallow.missing>, attribute=None, validate=None, required=True, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.', 'invalid_uuid': 'Not a valid UUID.'})>¶
-
cred_def_id
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyCredDefId object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
issuer_did
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyDID object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
schema_id
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndySchemaId object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
schema_issuer_did
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyDID object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
schema_name
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
schema_version
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyVersion object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
class
aries_cloudagent.protocols.issue_credential.v1_0.routes.
V10CredentialStoreRequestSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.openapi.OpenAPISchema
Request schema for sending a credential store admin message.
-
credential_id
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_create
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for creating a credential from attr values.
The internal credential record will be created without the credential being sent to any connection. This can be used in conjunction with the oob protocols to bind messages to an out of band message.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_create_free_offer
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for creating free credential offer.
Unlike with send-offer, this credential exchange is not tied to a specific connection. It must be dispatched out-of-band by the controller.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_issue
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for sending credential.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_list
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for searching credential exchange records.
Parameters: request – aiohttp request object Returns: The connection list response
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_problem_report
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for sending problem report.
Parameters: request – aiohttp request object
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_remove
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for removing a credential exchange record.
Parameters: request – aiohttp request object
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_retrieve
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for fetching single credential exchange record.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_send
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for sending credential from issuer to holder from attr values.
If both issuer and holder are configured for automatic responses, the operation ultimately results in credential issue; otherwise, the result waits on the first response not automated; the credential exchange record retains state regardless.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_send_bound_offer
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for sending bound credential offer.
A holder initiates this sequence with a credential proposal; this message responds with an offer bound to the proposal.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_send_free_offer
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for sending free credential offer.
An issuer initiates a such a credential offer, free from any holder-initiated corresponding credential proposal with preview.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_send_proposal
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for sending credential proposal.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_send_request
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for sending credential request.
Parameters: request – aiohttp request object Returns: The credential exchange record
-
aries_cloudagent.protocols.issue_credential.v1_0.routes.
credential_exchange_store
(request: <sphinx.ext.autodoc.importer._MockObject object at 0x7fb0542b0890>)[source]¶ Request handler for storing credential.
Parameters: request – aiohttp request object Returns: The credential exchange record