@credo-ts/anoncreds 0.6.0-pr-2444-20251010162514 → 0.6.0-pr-2454-20251015095608
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/AnonCredsApi.d.mts +4 -4
- package/build/AnonCredsApi.d.mts.map +1 -1
- package/build/AnonCredsApi.d.ts +4 -4
- package/build/AnonCredsApi.d.ts.map +1 -1
- package/build/AnonCredsApi.js +14 -14
- package/build/AnonCredsApi.mjs +14 -14
- package/build/AnonCredsApi.mjs.map +1 -1
- package/build/AnonCredsModule.d.mts.map +1 -1
- package/build/AnonCredsModule.d.ts.map +1 -1
- package/build/AnonCredsModule.js +7 -7
- package/build/AnonCredsModule.mjs +7 -7
- package/build/AnonCredsModule.mjs.map +1 -1
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.js +1 -1
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.mjs +1 -1
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.mjs.map +1 -1
- package/build/anoncreds-rs/AnonCredsRsHolderService.js +6 -6
- package/build/anoncreds-rs/AnonCredsRsHolderService.mjs +6 -6
- package/build/anoncreds-rs/AnonCredsRsHolderService.mjs.map +1 -1
- package/build/anoncreds-rs/AnonCredsRsIssuerService.js +3 -3
- package/build/anoncreds-rs/AnonCredsRsIssuerService.mjs +3 -3
- package/build/anoncreds-rs/AnonCredsRsIssuerService.mjs.map +1 -1
- package/build/anoncreds-rs/AnonCredsRsVerifierService.mjs.map +1 -1
- package/build/anoncreds-rs/utils.js +1 -1
- package/build/anoncreds-rs/utils.mjs +1 -1
- package/build/anoncreds-rs/utils.mjs.map +1 -1
- package/build/error/index.js +1 -1
- package/build/error/index.mjs +1 -1
- package/build/formats/AnonCredsDidCommCredentialFormatService.d.mts.map +1 -1
- package/build/formats/AnonCredsDidCommCredentialFormatService.d.ts.map +1 -1
- package/build/formats/AnonCredsDidCommCredentialFormatService.js +5 -5
- package/build/formats/AnonCredsDidCommCredentialFormatService.mjs +5 -5
- package/build/formats/AnonCredsDidCommCredentialFormatService.mjs.map +1 -1
- package/build/formats/AnonCredsDidCommProofFormat.d.mts +1 -1
- package/build/formats/AnonCredsDidCommProofFormat.d.ts +1 -1
- package/build/formats/AnonCredsDidCommProofFormatService.d.mts.map +1 -1
- package/build/formats/AnonCredsDidCommProofFormatService.d.ts.map +1 -1
- package/build/formats/AnonCredsDidCommProofFormatService.js +5 -5
- package/build/formats/AnonCredsDidCommProofFormatService.mjs +5 -5
- package/build/formats/AnonCredsDidCommProofFormatService.mjs.map +1 -1
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.mts +4 -18
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.mts.map +1 -1
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.ts +4 -18
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.ts.map +1 -1
- package/build/formats/DataIntegrityDidCommCredentialFormatService.js +16 -16
- package/build/formats/DataIntegrityDidCommCredentialFormatService.mjs +16 -16
- package/build/formats/DataIntegrityDidCommCredentialFormatService.mjs.map +1 -1
- package/build/formats/LegacyIndyDidCommCredentialFormatService.d.mts.map +1 -1
- package/build/formats/LegacyIndyDidCommCredentialFormatService.d.ts.map +1 -1
- package/build/formats/LegacyIndyDidCommCredentialFormatService.js +3 -3
- package/build/formats/LegacyIndyDidCommCredentialFormatService.mjs +3 -3
- package/build/formats/LegacyIndyDidCommCredentialFormatService.mjs.map +1 -1
- package/build/formats/LegacyIndyDidCommProofFormat.d.mts +1 -1
- package/build/formats/LegacyIndyDidCommProofFormat.d.ts +1 -1
- package/build/formats/LegacyIndyDidCommProofFormatService.d.mts.map +1 -1
- package/build/formats/LegacyIndyDidCommProofFormatService.d.ts.map +1 -1
- package/build/formats/LegacyIndyDidCommProofFormatService.js +8 -8
- package/build/formats/LegacyIndyDidCommProofFormatService.mjs +8 -8
- package/build/formats/LegacyIndyDidCommProofFormatService.mjs.map +1 -1
- package/build/formats/index.js +1 -1
- package/build/formats/index.mjs +1 -1
- package/build/index.d.mts +30 -30
- package/build/index.d.ts +30 -30
- package/build/index.js +25 -25
- package/build/index.mjs +25 -25
- package/build/models/AnonCredsCredentialProposal.js +2 -2
- package/build/models/AnonCredsCredentialProposal.mjs +1 -1
- package/build/models/AnonCredsProofRequest.js +2 -2
- package/build/models/AnonCredsProofRequest.mjs +1 -1
- package/build/models/AnonCredsProofRequest.mjs.map +1 -1
- package/build/models/AnonCredsRequestedAttribute.js +2 -2
- package/build/models/AnonCredsRequestedAttribute.mjs +1 -1
- package/build/models/AnonCredsRequestedAttribute.mjs.map +1 -1
- package/build/models/AnonCredsRequestedPredicate.js +3 -3
- package/build/models/AnonCredsRequestedPredicate.mjs +2 -2
- package/build/models/AnonCredsRequestedPredicate.mjs.map +1 -1
- package/build/models/AnonCredsRestriction.js +2 -2
- package/build/models/AnonCredsRestriction.mjs +1 -1
- package/build/models/AnonCredsRestrictionWrapper.js +2 -2
- package/build/models/AnonCredsRestrictionWrapper.mjs +1 -1
- package/build/models/exchange.mjs.map +1 -1
- package/build/models/index.js +1 -1
- package/build/models/index.mjs +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.mts +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.mts.map +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.ts +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.ts.map +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.js +4 -4
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.mjs +4 -4
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/DidCommIssueCredentialV1Handler.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/DidCommOfferCredentialV1Handler.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/DidCommProposeCredentialV1Handler.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/DidCommRequestCredentialV1Handler.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/index.js +1 -1
- package/build/protocols/credentials/v1/handlers/index.mjs +1 -1
- package/build/protocols/credentials/v1/index.js +2 -2
- package/build/protocols/credentials/v1/index.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.ts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.mjs.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.ts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.mjs.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.ts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.mjs.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.ts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.mjs.map +1 -1
- package/build/protocols/credentials/v1/messages/index.js +2 -2
- package/build/protocols/credentials/v1/messages/index.mjs +2 -2
- package/build/protocols/index.js +5 -5
- package/build/protocols/index.mjs +5 -5
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.mts +2 -2
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.mts.map +1 -1
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.ts +2 -2
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.ts.map +1 -1
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.js +6 -6
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.mjs +6 -6
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.mjs.map +1 -1
- package/build/protocols/proofs/v1/handlers/DidCommPresentationV1Handler.mjs.map +1 -1
- package/build/protocols/proofs/v1/handlers/DidCommProposePresentationV1Handler.mjs.map +1 -1
- package/build/protocols/proofs/v1/handlers/DidCommRequestPresentationV1Handler.mjs.map +1 -1
- package/build/protocols/proofs/v1/handlers/index.js +1 -1
- package/build/protocols/proofs/v1/handlers/index.mjs +1 -1
- package/build/protocols/proofs/v1/index.js +4 -4
- package/build/protocols/proofs/v1/index.mjs +4 -4
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.ts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.mts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.ts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.ts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.js +4 -4
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.mjs +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.mjs.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.mts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.ts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.ts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.js +4 -4
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.mjs +2 -2
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.mts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.ts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.ts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.js +4 -4
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.mjs +2 -2
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.mjs.map +1 -1
- package/build/protocols/proofs/v1/messages/index.js +3 -3
- package/build/protocols/proofs/v1/messages/index.mjs +3 -3
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.mts +1 -1
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.mts.map +1 -1
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.ts +2 -2
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.ts.map +1 -1
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.js +6 -6
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.mjs +4 -4
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.js +2 -2
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.mjs +2 -2
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.d.mts.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.d.ts.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.js +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.mjs +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRepository.js +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRepository.mjs +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRepository.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialRecord.d.mts.map +1 -1
- package/build/repository/AnonCredsCredentialRecord.d.ts.map +1 -1
- package/build/repository/AnonCredsCredentialRecord.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialRepository.js +1 -1
- package/build/repository/AnonCredsCredentialRepository.mjs +1 -1
- package/build/repository/AnonCredsCredentialRepository.mjs.map +1 -1
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.js +1 -1
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.mjs +1 -1
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.mjs.map +1 -1
- package/build/repository/AnonCredsLinkSecretRepository.js +1 -1
- package/build/repository/AnonCredsLinkSecretRepository.mjs +1 -1
- package/build/repository/AnonCredsLinkSecretRepository.mjs.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.mts.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.ts.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.mts.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.ts.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.mjs.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.js +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.mjs +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.mjs.map +1 -1
- package/build/repository/AnonCredsSchemaRecord.d.mts.map +1 -1
- package/build/repository/AnonCredsSchemaRecord.d.ts.map +1 -1
- package/build/repository/AnonCredsSchemaRecord.js +1 -1
- package/build/repository/AnonCredsSchemaRecord.mjs +1 -1
- package/build/repository/AnonCredsSchemaRecord.mjs.map +1 -1
- package/build/repository/AnonCredsSchemaRepository.js +1 -1
- package/build/repository/AnonCredsSchemaRepository.mjs +1 -1
- package/build/repository/AnonCredsSchemaRepository.mjs.map +1 -1
- package/build/repository/index.js +6 -6
- package/build/repository/index.mjs +6 -6
- package/build/services/AnonCredsHolderService.d.mts +1 -1
- package/build/services/AnonCredsHolderService.d.ts +1 -1
- package/build/services/AnonCredsHolderServiceOptions.d.mts +1 -1
- package/build/services/AnonCredsHolderServiceOptions.d.ts +1 -1
- package/build/services/index.js +3 -3
- package/build/services/index.mjs +3 -3
- package/build/services/registry/AnonCredsRegistryService.d.mts.map +1 -1
- package/build/services/registry/AnonCredsRegistryService.d.ts.map +1 -1
- package/build/services/registry/AnonCredsRegistryService.js +1 -1
- package/build/services/registry/AnonCredsRegistryService.mjs +1 -1
- package/build/services/registry/AnonCredsRegistryService.mjs.map +1 -1
- package/build/services/tails/BasicTailsFileService.d.mts.map +1 -1
- package/build/services/tails/BasicTailsFileService.d.ts.map +1 -1
- package/build/services/tails/BasicTailsFileService.mjs.map +1 -1
- package/build/updates/0.3.1-0.4/credentialDefinition.js +1 -1
- package/build/updates/0.3.1-0.4/credentialDefinition.mjs +1 -1
- package/build/updates/0.3.1-0.4/credentialDefinition.mjs.map +1 -1
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.js +3 -3
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.mjs +3 -3
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.mjs.map +1 -1
- package/build/utils/anonCredsObjects.d.mts.map +1 -1
- package/build/utils/anonCredsObjects.d.ts.map +1 -1
- package/build/utils/anonCredsObjects.mjs.map +1 -1
- package/build/utils/areRequestsEqual.mjs.map +1 -1
- package/build/utils/bytesToBigint.mjs.map +1 -1
- package/build/utils/createRequestFromPreview.mjs.map +1 -1
- package/build/utils/credential.d.mts.map +1 -1
- package/build/utils/credential.d.ts.map +1 -1
- package/build/utils/credential.mjs.map +1 -1
- package/build/utils/getCredentialsForAnonCredsRequest.js +3 -3
- package/build/utils/getCredentialsForAnonCredsRequest.mjs +3 -3
- package/build/utils/getCredentialsForAnonCredsRequest.mjs.map +1 -1
- package/build/utils/getRevocationRegistries.mjs.map +1 -1
- package/build/utils/hasDuplicateGroupNames.mjs.map +1 -1
- package/build/utils/index.js +9 -9
- package/build/utils/index.mjs +9 -9
- package/build/utils/indyIdentifiers.d.mts.map +1 -1
- package/build/utils/indyIdentifiers.d.ts.map +1 -1
- package/build/utils/indyIdentifiers.mjs.map +1 -1
- package/build/utils/isMap.mjs.map +1 -1
- package/build/utils/revocationInterval.d.mts.map +1 -1
- package/build/utils/revocationInterval.d.ts.map +1 -1
- package/build/utils/revocationInterval.mjs.map +1 -1
- package/build/utils/w3cAnonCredsUtils.d.mts.map +1 -1
- package/build/utils/w3cAnonCredsUtils.d.ts.map +1 -1
- package/build/utils/w3cAnonCredsUtils.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -17,13 +17,8 @@ declare class DataIntegrityDidCommCredentialFormatService implements DidCommCred
|
|
|
17
17
|
* @returns object containing associated attachment, format and optionally the credential preview
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
createProposal(_agentContext: AgentContext,
|
|
21
|
-
|
|
22
|
-
credentialExchangeRecord
|
|
23
|
-
}: DidCommCredentialFormatCreateProposalOptions<DidCommDataIntegrityCredentialFormat>): Promise<DidCommCredentialFormatCreateProposalReturn>;
|
|
24
|
-
processProposal(_agentContext: AgentContext, {
|
|
25
|
-
attachment
|
|
26
|
-
}: DidCommCredentialFormatProcessOptions): Promise<void>;
|
|
20
|
+
createProposal(_agentContext: AgentContext, options: DidCommCredentialFormatCreateProposalOptions<DidCommDataIntegrityCredentialFormat>): Promise<DidCommCredentialFormatCreateProposalReturn>;
|
|
21
|
+
processProposal(_agentContext: AgentContext, options: DidCommCredentialFormatProcessOptions): Promise<void>;
|
|
27
22
|
acceptProposal(_agentContext: AgentContext, _input: DidCommCredentialFormatAcceptProposalOptions<DidCommDataIntegrityCredentialFormat>): Promise<DidCommCredentialFormatCreateOfferReturn>;
|
|
28
23
|
/**
|
|
29
24
|
* Create a credential attachment format for a credential request.
|
|
@@ -93,12 +88,7 @@ declare class DataIntegrityDidCommCredentialFormatService implements DidCommCred
|
|
|
93
88
|
*/
|
|
94
89
|
getAttachment(formats: DidCommCredentialFormatSpec[], messageAttachments: DidCommAttachment[]): DidCommAttachment | undefined;
|
|
95
90
|
deleteCredentialById(agentContext: AgentContext, credentialRecordId: string): Promise<void>;
|
|
96
|
-
shouldAutoRespondToProposal(_agentContext: AgentContext,
|
|
97
|
-
// biome-ignore lint/correctness/noUnusedVariables: <explanation>
|
|
98
|
-
{
|
|
99
|
-
offerAttachment,
|
|
100
|
-
proposalAttachment
|
|
101
|
-
}: DidCommCredentialFormatAutoRespondProposalOptions): Promise<boolean>;
|
|
91
|
+
shouldAutoRespondToProposal(_agentContext: AgentContext, options: DidCommCredentialFormatAutoRespondProposalOptions): Promise<boolean>;
|
|
102
92
|
shouldAutoRespondToOffer(_agentContext: AgentContext, {
|
|
103
93
|
offerAttachment
|
|
104
94
|
}: DidCommCredentialFormatAutoRespondOfferOptions): Promise<boolean>;
|
|
@@ -106,11 +96,7 @@ declare class DataIntegrityDidCommCredentialFormatService implements DidCommCred
|
|
|
106
96
|
offerAttachment,
|
|
107
97
|
requestAttachment
|
|
108
98
|
}: DidCommCredentialFormatAutoRespondRequestOptions): Promise<boolean>;
|
|
109
|
-
shouldAutoRespondToCredential(_agentContext: AgentContext,
|
|
110
|
-
credentialExchangeRecord,
|
|
111
|
-
requestAttachment,
|
|
112
|
-
credentialAttachment
|
|
113
|
-
}: DidCommCredentialFormatAutoRespondCredentialOptions): Promise<boolean>;
|
|
99
|
+
shouldAutoRespondToCredential(_agentContext: AgentContext, options: DidCommCredentialFormatAutoRespondCredentialOptions): Promise<boolean>;
|
|
114
100
|
private createDataIntegrityCredentialOffer;
|
|
115
101
|
private previewAttributesFromCredential;
|
|
116
102
|
private assertCredentialAttributesMatchSchemaAttributes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataIntegrityDidCommCredentialFormatService.d.mts","names":[],"sources":["../../src/formats/DataIntegrityDidCommCredentialFormatService.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"DataIntegrityDidCommCredentialFormatService.d.mts","names":[],"sources":["../../src/formats/DataIntegrityDidCommCredentialFormatService.ts"],"sourcesContent":[],"mappings":"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"}
|
|
@@ -17,13 +17,8 @@ declare class DataIntegrityDidCommCredentialFormatService implements DidCommCred
|
|
|
17
17
|
* @returns object containing associated attachment, format and optionally the credential preview
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
createProposal(_agentContext: AgentContext,
|
|
21
|
-
|
|
22
|
-
credentialExchangeRecord
|
|
23
|
-
}: DidCommCredentialFormatCreateProposalOptions<DidCommDataIntegrityCredentialFormat>): Promise<DidCommCredentialFormatCreateProposalReturn>;
|
|
24
|
-
processProposal(_agentContext: AgentContext, {
|
|
25
|
-
attachment
|
|
26
|
-
}: DidCommCredentialFormatProcessOptions): Promise<void>;
|
|
20
|
+
createProposal(_agentContext: AgentContext, options: DidCommCredentialFormatCreateProposalOptions<DidCommDataIntegrityCredentialFormat>): Promise<DidCommCredentialFormatCreateProposalReturn>;
|
|
21
|
+
processProposal(_agentContext: AgentContext, options: DidCommCredentialFormatProcessOptions): Promise<void>;
|
|
27
22
|
acceptProposal(_agentContext: AgentContext, _input: DidCommCredentialFormatAcceptProposalOptions<DidCommDataIntegrityCredentialFormat>): Promise<DidCommCredentialFormatCreateOfferReturn>;
|
|
28
23
|
/**
|
|
29
24
|
* Create a credential attachment format for a credential request.
|
|
@@ -93,12 +88,7 @@ declare class DataIntegrityDidCommCredentialFormatService implements DidCommCred
|
|
|
93
88
|
*/
|
|
94
89
|
getAttachment(formats: DidCommCredentialFormatSpec[], messageAttachments: DidCommAttachment[]): DidCommAttachment | undefined;
|
|
95
90
|
deleteCredentialById(agentContext: AgentContext, credentialRecordId: string): Promise<void>;
|
|
96
|
-
shouldAutoRespondToProposal(_agentContext: AgentContext,
|
|
97
|
-
// biome-ignore lint/correctness/noUnusedVariables: <explanation>
|
|
98
|
-
{
|
|
99
|
-
offerAttachment,
|
|
100
|
-
proposalAttachment
|
|
101
|
-
}: DidCommCredentialFormatAutoRespondProposalOptions): Promise<boolean>;
|
|
91
|
+
shouldAutoRespondToProposal(_agentContext: AgentContext, options: DidCommCredentialFormatAutoRespondProposalOptions): Promise<boolean>;
|
|
102
92
|
shouldAutoRespondToOffer(_agentContext: AgentContext, {
|
|
103
93
|
offerAttachment
|
|
104
94
|
}: DidCommCredentialFormatAutoRespondOfferOptions): Promise<boolean>;
|
|
@@ -106,11 +96,7 @@ declare class DataIntegrityDidCommCredentialFormatService implements DidCommCred
|
|
|
106
96
|
offerAttachment,
|
|
107
97
|
requestAttachment
|
|
108
98
|
}: DidCommCredentialFormatAutoRespondRequestOptions): Promise<boolean>;
|
|
109
|
-
shouldAutoRespondToCredential(_agentContext: AgentContext,
|
|
110
|
-
credentialExchangeRecord,
|
|
111
|
-
requestAttachment,
|
|
112
|
-
credentialAttachment
|
|
113
|
-
}: DidCommCredentialFormatAutoRespondCredentialOptions): Promise<boolean>;
|
|
99
|
+
shouldAutoRespondToCredential(_agentContext: AgentContext, options: DidCommCredentialFormatAutoRespondCredentialOptions): Promise<boolean>;
|
|
114
100
|
private createDataIntegrityCredentialOffer;
|
|
115
101
|
private previewAttributesFromCredential;
|
|
116
102
|
private assertCredentialAttributesMatchSchemaAttributes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataIntegrityDidCommCredentialFormatService.d.ts","names":[],"sources":["../../src/formats/DataIntegrityDidCommCredentialFormatService.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"DataIntegrityDidCommCredentialFormatService.d.ts","names":[],"sources":["../../src/formats/DataIntegrityDidCommCredentialFormatService.ts"],"sourcesContent":[],"mappings":"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"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_AnonCredsHolderService = require('../services/AnonCredsHolderService.js');
|
|
3
|
-
const require_AnonCredsIssuerService = require('../services/AnonCredsIssuerService.js');
|
|
4
|
-
require('../services/index.js');
|
|
5
2
|
const require_AnonCredsCredentialDefinitionRepository = require('../repository/AnonCredsCredentialDefinitionRepository.js');
|
|
6
3
|
const require_AnonCredsRevocationRegistryDefinitionPrivateRecord = require('../repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.js');
|
|
7
4
|
const require_AnonCredsRevocationRegistryDefinitionPrivateRepository = require('../repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js');
|
|
8
5
|
require('../repository/index.js');
|
|
6
|
+
const require_AnonCredsHolderService = require('../services/AnonCredsHolderService.js');
|
|
7
|
+
const require_AnonCredsIssuerService = require('../services/AnonCredsIssuerService.js');
|
|
8
|
+
require('../services/index.js');
|
|
9
|
+
const require_anonCredsObjects = require('../utils/anonCredsObjects.js');
|
|
9
10
|
const require_credential = require('../utils/credential.js');
|
|
10
11
|
const require_timestamp = require('../utils/timestamp.js');
|
|
11
|
-
const require_anonCredsObjects = require('../utils/anonCredsObjects.js');
|
|
12
12
|
const require_metadata = require('../utils/metadata.js');
|
|
13
13
|
const require_w3cAnonCredsUtils = require('../utils/w3cAnonCredsUtils.js');
|
|
14
14
|
require('../utils/index.js');
|
|
@@ -33,10 +33,10 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
33
33
|
* @returns object containing associated attachment, format and optionally the credential preview
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
|
-
async createProposal(_agentContext,
|
|
36
|
+
async createProposal(_agentContext, options) {
|
|
37
37
|
throw new __credo_ts_core.CredoError("Not defined");
|
|
38
38
|
}
|
|
39
|
-
async processProposal(_agentContext,
|
|
39
|
+
async processProposal(_agentContext, options) {
|
|
40
40
|
throw new __credo_ts_core.CredoError("Not defined");
|
|
41
41
|
}
|
|
42
42
|
async acceptProposal(_agentContext, _input) {
|
|
@@ -145,7 +145,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
145
145
|
async acceptOffer(agentContext, { credentialExchangeRecord, attachmentId, offerAttachment, credentialFormats }) {
|
|
146
146
|
const dataIntegrityFormat = credentialFormats?.dataIntegrity;
|
|
147
147
|
const credentialOffer = __credo_ts_core.JsonTransformer.fromJSON(offerAttachment.getDataAsJson(), __credo_ts_didcomm.DataIntegrityCredentialOffer);
|
|
148
|
-
let anonCredsLinkSecretDataIntegrityBindingProof
|
|
148
|
+
let anonCredsLinkSecretDataIntegrityBindingProof;
|
|
149
149
|
const autoAcceptOfferWithAnonCredsLinkSecretMethod = credentialOffer.bindingRequired && !dataIntegrityFormat?.didCommSignedAttachment && credentialOffer.bindingMethod?.anoncredsLinkSecret;
|
|
150
150
|
if (dataIntegrityFormat?.anonCredsLinkSecret || autoAcceptOfferWithAnonCredsLinkSecretMethod) {
|
|
151
151
|
if (!credentialOffer.bindingMethod?.anoncredsLinkSecret) throw new __credo_ts_core.CredoError("Cannot request credential with a binding method that was not offered.");
|
|
@@ -170,8 +170,8 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
170
170
|
});
|
|
171
171
|
credentialExchangeRecord.metadata.set(require_metadata.AnonCredsCredentialRequestMetadataKey, anonCredsCredentialRequestMetadata);
|
|
172
172
|
}
|
|
173
|
-
let didCommSignedAttachmentBindingProof
|
|
174
|
-
let didCommSignedAttachment
|
|
173
|
+
let didCommSignedAttachmentBindingProof;
|
|
174
|
+
let didCommSignedAttachment;
|
|
175
175
|
if (dataIntegrityFormat?.didCommSignedAttachment) {
|
|
176
176
|
if (!credentialOffer.bindingMethod?.didcommSignedAttachment) throw new __credo_ts_core.CredoError("Cannot request credential with a binding method that was not offered.");
|
|
177
177
|
didCommSignedAttachment = await this.createSignedAttachment(agentContext, { nonce: credentialOffer.bindingMethod.didcommSignedAttachment.nonce }, dataIntegrityFormat.didCommSignedAttachment, credentialOffer.bindingMethod.didcommSignedAttachment.algsSupported);
|
|
@@ -220,9 +220,9 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
220
220
|
}));
|
|
221
221
|
const anonCredsIssuerService = agentContext.dependencyManager.resolve(require_AnonCredsIssuerService.AnonCredsIssuerServiceSymbol);
|
|
222
222
|
const credentialDefinition = (await agentContext.dependencyManager.resolve(require_AnonCredsCredentialDefinitionRepository.AnonCredsCredentialDefinitionRepository).getByCredentialDefinitionId(agentContext, linkSecretMetadata.credentialDefinitionId)).credentialDefinition.value;
|
|
223
|
-
let revocationRegistryDefinitionId
|
|
224
|
-
let revocationRegistryIndex
|
|
225
|
-
let revocationStatusList
|
|
223
|
+
let revocationRegistryDefinitionId;
|
|
224
|
+
let revocationRegistryIndex;
|
|
225
|
+
let revocationStatusList;
|
|
226
226
|
if (credentialDefinition.revocation) {
|
|
227
227
|
const { credentialRevocationId, revocationRegistryId } = linkSecretMetadata;
|
|
228
228
|
if (!credentialRevocationId || !revocationRegistryId) throw new __credo_ts_core.CredoError("Revocation registry definition id and revocation index are mandatory to issue AnonCreds revocable credentials");
|
|
@@ -453,7 +453,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
453
453
|
async deleteCredentialById(agentContext, credentialRecordId) {
|
|
454
454
|
await agentContext.dependencyManager.resolve(require_AnonCredsHolderService.AnonCredsHolderServiceSymbol).deleteCredential(agentContext, credentialRecordId);
|
|
455
455
|
}
|
|
456
|
-
async shouldAutoRespondToProposal(_agentContext,
|
|
456
|
+
async shouldAutoRespondToProposal(_agentContext, options) {
|
|
457
457
|
throw new __credo_ts_core.CredoError("Not implemented");
|
|
458
458
|
}
|
|
459
459
|
async shouldAutoRespondToOffer(_agentContext, { offerAttachment }) {
|
|
@@ -475,7 +475,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
475
475
|
const validDidCommSignedAttachmetRequest = !credentialRequest.binding_proof?.didcomm_signed_attachment || credentialRequest.binding_proof?.didcomm_signed_attachment && credentialOffer.bindingMethod?.didcommSignedAttachment;
|
|
476
476
|
return Boolean(validLinkSecretRequest && validDidCommSignedAttachmetRequest);
|
|
477
477
|
}
|
|
478
|
-
async shouldAutoRespondToCredential(_agentContext,
|
|
478
|
+
async shouldAutoRespondToCredential(_agentContext, options) {
|
|
479
479
|
return true;
|
|
480
480
|
}
|
|
481
481
|
async createDataIntegrityCredentialOffer(agentContext, credentialExchangeRecord, options) {
|
|
@@ -484,7 +484,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
484
484
|
const credentialJson = credential instanceof __credo_ts_core.W3cCredential ? __credo_ts_core.JsonTransformer.toJSON(credential) : credential;
|
|
485
485
|
const validW3cCredential = __credo_ts_core.JsonTransformer.fromJSON(credentialJson, __credo_ts_core.W3cCredential);
|
|
486
486
|
const previewAttributes = this.previewAttributesFromCredential(validW3cCredential);
|
|
487
|
-
let anonCredsLinkSecretBindingMethod
|
|
487
|
+
let anonCredsLinkSecretBindingMethod;
|
|
488
488
|
if (anonCredsLinkSecretBindingMethodOptions) {
|
|
489
489
|
const { credentialDefinitionId, revocationRegistryDefinitionId, revocationRegistryIndex } = anonCredsLinkSecretBindingMethodOptions;
|
|
490
490
|
const anoncredsCredentialOffer = await agentContext.dependencyManager.resolve(require_AnonCredsIssuerService.AnonCredsIssuerServiceSymbol).createCredentialOffer(agentContext, { credentialDefinitionId });
|
|
@@ -509,7 +509,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
509
509
|
revocationRegistryId: revocationRegistryDefinitionId
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
|
-
let didCommSignedAttachmentBindingMethod
|
|
512
|
+
let didCommSignedAttachmentBindingMethod;
|
|
513
513
|
if (didCommSignedAttachmentBindingMethodOptions) {
|
|
514
514
|
const kms = agentContext.dependencyManager.resolve(__credo_ts_core.Kms.KeyManagementApi);
|
|
515
515
|
const { didMethodsSupported, algsSupported } = didCommSignedAttachmentBindingMethodOptions;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AnonCredsHolderServiceSymbol } from "../services/AnonCredsHolderService.mjs";
|
|
2
|
-
import { AnonCredsIssuerServiceSymbol } from "../services/AnonCredsIssuerService.mjs";
|
|
3
|
-
import "../services/index.mjs";
|
|
4
1
|
import { AnonCredsCredentialDefinitionRepository } from "../repository/AnonCredsCredentialDefinitionRepository.mjs";
|
|
5
2
|
import { AnonCredsRevocationRegistryState } from "../repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.mjs";
|
|
6
3
|
import { AnonCredsRevocationRegistryDefinitionPrivateRepository } from "../repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs";
|
|
7
4
|
import "../repository/index.mjs";
|
|
5
|
+
import { AnonCredsHolderServiceSymbol } from "../services/AnonCredsHolderService.mjs";
|
|
6
|
+
import { AnonCredsIssuerServiceSymbol } from "../services/AnonCredsIssuerService.mjs";
|
|
7
|
+
import "../services/index.mjs";
|
|
8
|
+
import { fetchCredentialDefinition, fetchRevocationRegistryDefinition, fetchRevocationStatusList, fetchSchema } from "../utils/anonCredsObjects.mjs";
|
|
8
9
|
import { assertAttributesMatch, convertAttributesToCredentialValues } from "../utils/credential.mjs";
|
|
9
10
|
import { dateToTimestamp } from "../utils/timestamp.mjs";
|
|
10
|
-
import { fetchCredentialDefinition, fetchRevocationRegistryDefinition, fetchRevocationStatusList, fetchSchema } from "../utils/anonCredsObjects.mjs";
|
|
11
11
|
import { AnonCredsCredentialMetadataKey, AnonCredsCredentialRequestMetadataKey } from "../utils/metadata.mjs";
|
|
12
12
|
import { getAnonCredsTagsFromRecord } from "../utils/w3cAnonCredsUtils.mjs";
|
|
13
13
|
import "../utils/index.mjs";
|
|
@@ -30,10 +30,10 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
30
30
|
* @returns object containing associated attachment, format and optionally the credential preview
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
|
-
async createProposal(_agentContext,
|
|
33
|
+
async createProposal(_agentContext, options) {
|
|
34
34
|
throw new CredoError("Not defined");
|
|
35
35
|
}
|
|
36
|
-
async processProposal(_agentContext,
|
|
36
|
+
async processProposal(_agentContext, options) {
|
|
37
37
|
throw new CredoError("Not defined");
|
|
38
38
|
}
|
|
39
39
|
async acceptProposal(_agentContext, _input) {
|
|
@@ -142,7 +142,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
142
142
|
async acceptOffer(agentContext, { credentialExchangeRecord, attachmentId, offerAttachment, credentialFormats }) {
|
|
143
143
|
const dataIntegrityFormat = credentialFormats?.dataIntegrity;
|
|
144
144
|
const credentialOffer = JsonTransformer.fromJSON(offerAttachment.getDataAsJson(), DataIntegrityCredentialOffer);
|
|
145
|
-
let anonCredsLinkSecretDataIntegrityBindingProof
|
|
145
|
+
let anonCredsLinkSecretDataIntegrityBindingProof;
|
|
146
146
|
const autoAcceptOfferWithAnonCredsLinkSecretMethod = credentialOffer.bindingRequired && !dataIntegrityFormat?.didCommSignedAttachment && credentialOffer.bindingMethod?.anoncredsLinkSecret;
|
|
147
147
|
if (dataIntegrityFormat?.anonCredsLinkSecret || autoAcceptOfferWithAnonCredsLinkSecretMethod) {
|
|
148
148
|
if (!credentialOffer.bindingMethod?.anoncredsLinkSecret) throw new CredoError("Cannot request credential with a binding method that was not offered.");
|
|
@@ -167,8 +167,8 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
167
167
|
});
|
|
168
168
|
credentialExchangeRecord.metadata.set(AnonCredsCredentialRequestMetadataKey, anonCredsCredentialRequestMetadata);
|
|
169
169
|
}
|
|
170
|
-
let didCommSignedAttachmentBindingProof
|
|
171
|
-
let didCommSignedAttachment
|
|
170
|
+
let didCommSignedAttachmentBindingProof;
|
|
171
|
+
let didCommSignedAttachment;
|
|
172
172
|
if (dataIntegrityFormat?.didCommSignedAttachment) {
|
|
173
173
|
if (!credentialOffer.bindingMethod?.didcommSignedAttachment) throw new CredoError("Cannot request credential with a binding method that was not offered.");
|
|
174
174
|
didCommSignedAttachment = await this.createSignedAttachment(agentContext, { nonce: credentialOffer.bindingMethod.didcommSignedAttachment.nonce }, dataIntegrityFormat.didCommSignedAttachment, credentialOffer.bindingMethod.didcommSignedAttachment.algsSupported);
|
|
@@ -217,9 +217,9 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
217
217
|
}));
|
|
218
218
|
const anonCredsIssuerService = agentContext.dependencyManager.resolve(AnonCredsIssuerServiceSymbol);
|
|
219
219
|
const credentialDefinition = (await agentContext.dependencyManager.resolve(AnonCredsCredentialDefinitionRepository).getByCredentialDefinitionId(agentContext, linkSecretMetadata.credentialDefinitionId)).credentialDefinition.value;
|
|
220
|
-
let revocationRegistryDefinitionId
|
|
221
|
-
let revocationRegistryIndex
|
|
222
|
-
let revocationStatusList
|
|
220
|
+
let revocationRegistryDefinitionId;
|
|
221
|
+
let revocationRegistryIndex;
|
|
222
|
+
let revocationStatusList;
|
|
223
223
|
if (credentialDefinition.revocation) {
|
|
224
224
|
const { credentialRevocationId, revocationRegistryId } = linkSecretMetadata;
|
|
225
225
|
if (!credentialRevocationId || !revocationRegistryId) throw new CredoError("Revocation registry definition id and revocation index are mandatory to issue AnonCreds revocable credentials");
|
|
@@ -450,7 +450,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
450
450
|
async deleteCredentialById(agentContext, credentialRecordId) {
|
|
451
451
|
await agentContext.dependencyManager.resolve(AnonCredsHolderServiceSymbol).deleteCredential(agentContext, credentialRecordId);
|
|
452
452
|
}
|
|
453
|
-
async shouldAutoRespondToProposal(_agentContext,
|
|
453
|
+
async shouldAutoRespondToProposal(_agentContext, options) {
|
|
454
454
|
throw new CredoError("Not implemented");
|
|
455
455
|
}
|
|
456
456
|
async shouldAutoRespondToOffer(_agentContext, { offerAttachment }) {
|
|
@@ -472,7 +472,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
472
472
|
const validDidCommSignedAttachmetRequest = !credentialRequest.binding_proof?.didcomm_signed_attachment || credentialRequest.binding_proof?.didcomm_signed_attachment && credentialOffer.bindingMethod?.didcommSignedAttachment;
|
|
473
473
|
return Boolean(validLinkSecretRequest && validDidCommSignedAttachmetRequest);
|
|
474
474
|
}
|
|
475
|
-
async shouldAutoRespondToCredential(_agentContext,
|
|
475
|
+
async shouldAutoRespondToCredential(_agentContext, options) {
|
|
476
476
|
return true;
|
|
477
477
|
}
|
|
478
478
|
async createDataIntegrityCredentialOffer(agentContext, credentialExchangeRecord, options) {
|
|
@@ -481,7 +481,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
481
481
|
const credentialJson = credential instanceof W3cCredential ? JsonTransformer.toJSON(credential) : credential;
|
|
482
482
|
const validW3cCredential = JsonTransformer.fromJSON(credentialJson, W3cCredential);
|
|
483
483
|
const previewAttributes = this.previewAttributesFromCredential(validW3cCredential);
|
|
484
|
-
let anonCredsLinkSecretBindingMethod
|
|
484
|
+
let anonCredsLinkSecretBindingMethod;
|
|
485
485
|
if (anonCredsLinkSecretBindingMethodOptions) {
|
|
486
486
|
const { credentialDefinitionId, revocationRegistryDefinitionId, revocationRegistryIndex } = anonCredsLinkSecretBindingMethodOptions;
|
|
487
487
|
const anoncredsCredentialOffer = await agentContext.dependencyManager.resolve(AnonCredsIssuerServiceSymbol).createCredentialOffer(agentContext, { credentialDefinitionId });
|
|
@@ -506,7 +506,7 @@ var DataIntegrityDidCommCredentialFormatService = class {
|
|
|
506
506
|
revocationRegistryId: revocationRegistryDefinitionId
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
let didCommSignedAttachmentBindingMethod
|
|
509
|
+
let didCommSignedAttachmentBindingMethod;
|
|
510
510
|
if (didCommSignedAttachmentBindingMethodOptions) {
|
|
511
511
|
const kms = agentContext.dependencyManager.resolve(Kms.KeyManagementApi);
|
|
512
512
|
const { didMethodsSupported, algsSupported } = didCommSignedAttachmentBindingMethodOptions;
|