@credo-ts/anoncreds 0.6.1-pr-2091-20241119140918 → 0.6.1
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 +113 -0
- package/build/AnonCredsApi.d.mts.map +1 -0
- package/build/AnonCredsApi.mjs +439 -0
- package/build/AnonCredsApi.mjs.map +1 -0
- package/build/AnonCredsApiOptions.d.mts +28 -0
- package/build/AnonCredsApiOptions.d.mts.map +1 -0
- package/build/AnonCredsModule.d.mts +29 -0
- package/build/AnonCredsModule.d.mts.map +1 -0
- package/build/AnonCredsModule.mjs +62 -0
- package/build/AnonCredsModule.mjs.map +1 -0
- package/build/AnonCredsModuleConfig.d.mts +79 -0
- package/build/AnonCredsModuleConfig.d.mts.map +1 -0
- package/build/AnonCredsModuleConfig.mjs +31 -0
- package/build/AnonCredsModuleConfig.mjs.map +1 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorate.mjs +10 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateMetadata.mjs +7 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateParam.mjs +9 -0
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.mjs +203 -0
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.mjs.map +1 -0
- package/build/anoncreds-rs/AnonCredsRsHolderService.mjs +488 -0
- package/build/anoncreds-rs/AnonCredsRsHolderService.mjs.map +1 -0
- package/build/anoncreds-rs/AnonCredsRsIssuerService.mjs +213 -0
- package/build/anoncreds-rs/AnonCredsRsIssuerService.mjs.map +1 -0
- package/build/anoncreds-rs/AnonCredsRsVerifierService.mjs +122 -0
- package/build/anoncreds-rs/AnonCredsRsVerifierService.mjs.map +1 -0
- package/build/anoncreds-rs/index.mjs +3 -0
- package/build/anoncreds-rs/utils.mjs +60 -0
- package/build/anoncreds-rs/utils.mjs.map +1 -0
- package/build/error/AnonCredsError.d.mts +13 -0
- package/build/error/AnonCredsError.d.mts.map +1 -0
- package/build/error/AnonCredsError.mjs +12 -0
- package/build/error/AnonCredsError.mjs.map +1 -0
- package/build/error/AnonCredsRsError.d.mts +13 -0
- package/build/error/AnonCredsRsError.d.mts.map +1 -0
- package/build/error/AnonCredsRsError.mjs +12 -0
- package/build/error/AnonCredsRsError.mjs.map +1 -0
- package/build/error/AnonCredsStoreRecordError.d.mts +13 -0
- package/build/error/AnonCredsStoreRecordError.d.mts.map +1 -0
- package/build/error/AnonCredsStoreRecordError.mjs +12 -0
- package/build/error/AnonCredsStoreRecordError.mjs.map +1 -0
- package/build/error/index.d.mts +3 -0
- package/build/error/index.mjs +3 -0
- package/build/formats/AnonCredsDidCommCredentialFormat.d.mts +82 -0
- package/build/formats/AnonCredsDidCommCredentialFormat.d.mts.map +1 -0
- package/build/formats/AnonCredsDidCommCredentialFormatService.d.mts +120 -0
- package/build/formats/AnonCredsDidCommCredentialFormatService.d.mts.map +1 -0
- package/build/formats/AnonCredsDidCommCredentialFormatService.mjs +331 -0
- package/build/formats/AnonCredsDidCommCredentialFormatService.mjs.map +1 -0
- package/build/formats/AnonCredsDidCommProofFormat.d.mts +77 -0
- package/build/formats/AnonCredsDidCommProofFormat.d.mts.map +1 -0
- package/build/formats/AnonCredsDidCommProofFormatService.d.mts +93 -0
- package/build/formats/AnonCredsDidCommProofFormatService.d.mts.map +1 -0
- package/build/formats/AnonCredsDidCommProofFormatService.mjs +250 -0
- package/build/formats/AnonCredsDidCommProofFormatService.mjs.map +1 -0
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.mts +118 -0
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.mts.map +1 -0
- package/build/formats/DataIntegrityDidCommCredentialFormatService.mjs +587 -0
- package/build/formats/DataIntegrityDidCommCredentialFormatService.mjs.map +1 -0
- package/build/formats/LegacyIndyDidCommCredentialFormat.d.mts +38 -0
- package/build/formats/LegacyIndyDidCommCredentialFormat.d.mts.map +1 -0
- package/build/formats/LegacyIndyDidCommCredentialFormatService.d.mts +122 -0
- package/build/formats/LegacyIndyDidCommCredentialFormatService.d.mts.map +1 -0
- package/build/formats/LegacyIndyDidCommCredentialFormatService.mjs +309 -0
- package/build/formats/LegacyIndyDidCommCredentialFormatService.mjs.map +1 -0
- package/build/formats/LegacyIndyDidCommProofFormat.d.mts +36 -0
- package/build/formats/LegacyIndyDidCommProofFormat.d.mts.map +1 -0
- package/build/formats/LegacyIndyDidCommProofFormatService.d.mts +98 -0
- package/build/formats/LegacyIndyDidCommProofFormatService.d.mts.map +1 -0
- package/build/formats/LegacyIndyDidCommProofFormatService.mjs +322 -0
- package/build/formats/LegacyIndyDidCommProofFormatService.mjs.map +1 -0
- package/build/formats/index.d.mts +9 -0
- package/build/formats/index.mjs +5 -0
- package/build/index.d.mts +86 -0
- package/build/index.mjs +69 -0
- package/build/models/AnonCredsCredentialProposal.mjs +75 -0
- package/build/models/AnonCredsCredentialProposal.mjs.map +1 -0
- package/build/models/AnonCredsProofRequest.mjs +62 -0
- package/build/models/AnonCredsProofRequest.mjs.map +1 -0
- package/build/models/AnonCredsRequestedAttribute.mjs +50 -0
- package/build/models/AnonCredsRequestedAttribute.mjs.map +1 -0
- package/build/models/AnonCredsRequestedPredicate.mjs +53 -0
- package/build/models/AnonCredsRequestedPredicate.mjs.map +1 -0
- package/build/models/AnonCredsRestriction.d.mts +29 -0
- package/build/models/AnonCredsRestriction.d.mts.map +1 -0
- package/build/models/AnonCredsRestriction.mjs +137 -0
- package/build/models/AnonCredsRestriction.mjs.map +1 -0
- package/build/models/AnonCredsRestrictionWrapper.d.mts +9 -0
- package/build/models/AnonCredsRestrictionWrapper.d.mts.map +1 -0
- package/build/models/AnonCredsRestrictionWrapper.mjs +18 -0
- package/build/models/AnonCredsRestrictionWrapper.mjs.map +1 -0
- package/build/models/AnonCredsRevocationInterval.mjs +27 -0
- package/build/models/AnonCredsRevocationInterval.mjs.map +1 -0
- package/build/models/exchange.d.mts +104 -0
- package/build/models/exchange.d.mts.map +1 -0
- package/build/models/exchange.mjs +11 -0
- package/build/models/exchange.mjs.map +1 -0
- package/build/models/index.d.mts +4 -0
- package/build/models/index.mjs +2 -0
- package/build/models/internal.d.mts +40 -0
- package/build/models/internal.d.mts.map +1 -0
- package/build/models/registry.d.mts +44 -0
- package/build/models/registry.d.mts.map +1 -0
- package/build/models/utils.d.mts +27 -0
- package/build/models/utils.d.mts.map +1 -0
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.mts +215 -0
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.mts.map +1 -0
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.mjs +827 -0
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.mjs.map +1 -0
- package/build/protocols/credentials/v1/handlers/DidCommCredentialV1AckHandler.mjs +17 -0
- package/build/protocols/credentials/v1/handlers/DidCommCredentialV1AckHandler.mjs.map +1 -0
- package/build/protocols/credentials/v1/handlers/DidCommCredentialV1ProblemReportHandler.mjs +17 -0
- package/build/protocols/credentials/v1/handlers/DidCommCredentialV1ProblemReportHandler.mjs.map +1 -0
- package/build/protocols/credentials/v1/handlers/DidCommIssueCredentialV1Handler.mjs +36 -0
- package/build/protocols/credentials/v1/handlers/DidCommIssueCredentialV1Handler.mjs.map +1 -0
- package/build/protocols/credentials/v1/handlers/DidCommOfferCredentialV1Handler.mjs +32 -0
- package/build/protocols/credentials/v1/handlers/DidCommOfferCredentialV1Handler.mjs.map +1 -0
- package/build/protocols/credentials/v1/handlers/DidCommProposeCredentialV1Handler.mjs +35 -0
- package/build/protocols/credentials/v1/handlers/DidCommProposeCredentialV1Handler.mjs.map +1 -0
- package/build/protocols/credentials/v1/handlers/DidCommRequestCredentialV1Handler.mjs +36 -0
- package/build/protocols/credentials/v1/handlers/DidCommRequestCredentialV1Handler.mjs.map +1 -0
- package/build/protocols/credentials/v1/handlers/index.mjs +6 -0
- package/build/protocols/credentials/v1/index.d.mts +9 -0
- package/build/protocols/credentials/v1/index.mjs +9 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.d.mts +16 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.d.mts.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.mjs +21 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.mjs.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.mts +32 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.mts.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.mjs +57 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.mjs.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.d.mts +16 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.d.mts.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.mjs +21 -0
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.mjs.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.mts +26 -0
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.mts.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.mjs +46 -0
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.mjs.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.mts +34 -0
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.mts.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.mjs +61 -0
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.mjs.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.mts +64 -0
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.mts.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.mjs +95 -0
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.mjs.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.mts +26 -0
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.mts.map +1 -0
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.mjs +46 -0
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.mjs.map +1 -0
- package/build/protocols/credentials/v1/messages/index.d.mts +7 -0
- package/build/protocols/credentials/v1/messages/index.mjs +7 -0
- package/build/protocols/index.d.mts +18 -0
- package/build/protocols/index.mjs +18 -0
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.mts +105 -0
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.mts.map +1 -0
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.mjs +723 -0
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.mjs.map +1 -0
- package/build/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.d.mts +18 -0
- package/build/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.d.mts.map +1 -0
- package/build/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.mjs +19 -0
- package/build/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.mjs.map +1 -0
- package/build/protocols/proofs/v1/errors/index.d.mts +1 -0
- package/build/protocols/proofs/v1/errors/index.mjs +1 -0
- package/build/protocols/proofs/v1/handlers/DidCommPresentationV1AckHandler.mjs +17 -0
- package/build/protocols/proofs/v1/handlers/DidCommPresentationV1AckHandler.mjs.map +1 -0
- package/build/protocols/proofs/v1/handlers/DidCommPresentationV1Handler.mjs +36 -0
- package/build/protocols/proofs/v1/handlers/DidCommPresentationV1Handler.mjs.map +1 -0
- package/build/protocols/proofs/v1/handlers/DidCommPresentationV1ProblemReportHandler.mjs +16 -0
- package/build/protocols/proofs/v1/handlers/DidCommPresentationV1ProblemReportHandler.mjs.map +1 -0
- package/build/protocols/proofs/v1/handlers/DidCommProposePresentationV1Handler.mjs +35 -0
- package/build/protocols/proofs/v1/handlers/DidCommProposePresentationV1Handler.mjs.map +1 -0
- package/build/protocols/proofs/v1/handlers/DidCommRequestPresentationV1Handler.mjs +32 -0
- package/build/protocols/proofs/v1/handlers/DidCommRequestPresentationV1Handler.mjs.map +1 -0
- package/build/protocols/proofs/v1/handlers/index.mjs +5 -0
- package/build/protocols/proofs/v1/index.d.mts +11 -0
- package/build/protocols/proofs/v1/index.mjs +11 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.mts +12 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.mts.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.mjs +18 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.mjs.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.mts +38 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.mts.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.mjs +52 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.mjs.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts +16 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.mjs +21 -0
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.mjs.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.mts +32 -0
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.mts.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.mjs +44 -0
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.mjs.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.mts +36 -0
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.mts.map +1 -0
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.mjs +50 -0
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.mjs.map +1 -0
- package/build/protocols/proofs/v1/messages/index.d.mts +5 -0
- package/build/protocols/proofs/v1/messages/index.mjs +5 -0
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.mts +57 -0
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.mts.map +1 -0
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.mjs +113 -0
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.mjs.map +1 -0
- package/build/protocols/proofs/v1/models/index.d.mts +1 -0
- package/build/protocols/proofs/v1/models/index.mjs +1 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.d.mts +25 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.d.mts.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.mjs +26 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.mjs.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.d.mts +12 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.d.mts.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.mjs +28 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.mjs.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionRecord.d.mts +44 -0
- package/build/repository/AnonCredsCredentialDefinitionRecord.d.mts.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionRecord.mjs +38 -0
- package/build/repository/AnonCredsCredentialDefinitionRecord.mjs.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionRepository.d.mts +12 -0
- package/build/repository/AnonCredsCredentialDefinitionRepository.d.mts.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionRepository.mjs +28 -0
- package/build/repository/AnonCredsCredentialDefinitionRepository.mjs.map +1 -0
- package/build/repository/AnonCredsCredentialRecord.d.mts +53 -0
- package/build/repository/AnonCredsCredentialRecord.d.mts.map +1 -0
- package/build/repository/AnonCredsCredentialRecord.mjs +46 -0
- package/build/repository/AnonCredsCredentialRecord.mjs.map +1 -0
- package/build/repository/AnonCredsCredentialRepository.d.mts +14 -0
- package/build/repository/AnonCredsCredentialRepository.d.mts.map +1 -0
- package/build/repository/AnonCredsCredentialRepository.mjs +34 -0
- package/build/repository/AnonCredsCredentialRepository.mjs.map +1 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.d.mts +25 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.d.mts.map +1 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.mjs +26 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.mjs.map +1 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.d.mts +12 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.d.mts.map +1 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.mjs +28 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.mjs.map +1 -0
- package/build/repository/AnonCredsLinkSecretRecord.d.mts +28 -0
- package/build/repository/AnonCredsLinkSecretRecord.d.mts.map +1 -0
- package/build/repository/AnonCredsLinkSecretRecord.mjs +25 -0
- package/build/repository/AnonCredsLinkSecretRecord.mjs.map +1 -0
- package/build/repository/AnonCredsLinkSecretRepository.d.mts +14 -0
- package/build/repository/AnonCredsLinkSecretRepository.d.mts.map +1 -0
- package/build/repository/AnonCredsLinkSecretRepository.mjs +34 -0
- package/build/repository/AnonCredsLinkSecretRepository.mjs.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.d.mts +37 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.d.mts.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.mjs +35 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.mjs.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.mts +13 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.mts.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs +34 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.mts +30 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.mts.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.mjs +27 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.mjs.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.d.mts +13 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.d.mts.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.mjs +31 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.mjs.map +1 -0
- package/build/repository/AnonCredsSchemaRecord.d.mts +44 -0
- package/build/repository/AnonCredsSchemaRecord.d.mts.map +1 -0
- package/build/repository/AnonCredsSchemaRecord.mjs +38 -0
- package/build/repository/AnonCredsSchemaRecord.mjs.map +1 -0
- package/build/repository/AnonCredsSchemaRepository.d.mts +12 -0
- package/build/repository/AnonCredsSchemaRepository.d.mts.map +1 -0
- package/build/repository/AnonCredsSchemaRepository.mjs +28 -0
- package/build/repository/AnonCredsSchemaRepository.mjs.map +1 -0
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.d.mts +14 -0
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.d.mts.map +1 -0
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.mjs +10 -0
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.mjs.map +1 -0
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.d.mts +14 -0
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.d.mts.map +1 -0
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.mjs +10 -0
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.mjs.map +1 -0
- package/build/repository/anonCredsSchemaRecordMetadataTypes.d.mts +14 -0
- package/build/repository/anonCredsSchemaRecordMetadataTypes.d.mts.map +1 -0
- package/build/repository/index.d.mts +16 -0
- package/build/repository/index.mjs +16 -0
- package/build/services/AnonCredsHolderService.d.mts +28 -0
- package/build/services/AnonCredsHolderService.d.mts.map +1 -0
- package/build/services/AnonCredsHolderService.mjs +6 -0
- package/build/services/AnonCredsHolderService.mjs.map +1 -0
- package/build/services/AnonCredsHolderServiceOptions.d.mts +107 -0
- package/build/services/AnonCredsHolderServiceOptions.d.mts.map +1 -0
- package/build/services/AnonCredsIssuerService.d.mts +19 -0
- package/build/services/AnonCredsIssuerService.d.mts.map +1 -0
- package/build/services/AnonCredsIssuerService.mjs +6 -0
- package/build/services/AnonCredsIssuerService.mjs.map +1 -0
- package/build/services/AnonCredsIssuerServiceOptions.d.mts +66 -0
- package/build/services/AnonCredsIssuerServiceOptions.d.mts.map +1 -0
- package/build/services/AnonCredsVerifierService.d.mts +12 -0
- package/build/services/AnonCredsVerifierService.d.mts.map +1 -0
- package/build/services/AnonCredsVerifierService.mjs +6 -0
- package/build/services/AnonCredsVerifierService.mjs.map +1 -0
- package/build/services/AnonCredsVerifierServiceOptions.d.mts +30 -0
- package/build/services/AnonCredsVerifierServiceOptions.d.mts.map +1 -0
- package/build/services/index.d.mts +17 -0
- package/build/services/index.mjs +7 -0
- package/build/services/registry/AnonCredsRegistry.d.mts +43 -0
- package/build/services/registry/AnonCredsRegistry.d.mts.map +1 -0
- package/build/services/registry/AnonCredsRegistryService.d.mts +27 -0
- package/build/services/registry/AnonCredsRegistryService.d.mts.map +1 -0
- package/build/services/registry/AnonCredsRegistryService.mjs +226 -0
- package/build/services/registry/AnonCredsRegistryService.mjs.map +1 -0
- package/build/services/registry/CredentialDefinitionOptions.d.mts +39 -0
- package/build/services/registry/CredentialDefinitionOptions.d.mts.map +1 -0
- package/build/services/registry/RevocationRegistryDefinitionOptions.d.mts +39 -0
- package/build/services/registry/RevocationRegistryDefinitionOptions.d.mts.map +1 -0
- package/build/services/registry/RevocationStatusListOptions.d.mts +37 -0
- package/build/services/registry/RevocationStatusListOptions.d.mts.map +1 -0
- package/build/services/registry/SchemaOptions.d.mts +39 -0
- package/build/services/registry/SchemaOptions.d.mts.map +1 -0
- package/build/services/registry/base.d.mts +65 -0
- package/build/services/registry/base.d.mts.map +1 -0
- package/build/services/registry/index.d.mts +7 -0
- package/build/services/registry/index.mjs +1 -0
- package/build/services/tails/BasicTailsFileService.d.mts +29 -0
- package/build/services/tails/BasicTailsFileService.d.mts.map +1 -0
- package/build/services/tails/BasicTailsFileService.mjs +52 -0
- package/build/services/tails/BasicTailsFileService.mjs.map +1 -0
- package/build/services/tails/TailsFileService.d.mts +48 -0
- package/build/services/tails/TailsFileService.d.mts.map +1 -0
- package/build/services/tails/index.d.mts +2 -0
- package/build/services/tails/index.mjs +1 -0
- package/build/updates/0.3.1-0.4/credentialDefinition.mjs +49 -0
- package/build/updates/0.3.1-0.4/credentialDefinition.mjs.map +1 -0
- package/build/updates/0.3.1-0.4/credentialExchangeRecord.mjs +118 -0
- package/build/updates/0.3.1-0.4/credentialExchangeRecord.mjs.map +1 -0
- package/build/updates/0.3.1-0.4/index.d.mts +7 -0
- package/build/updates/0.3.1-0.4/index.d.mts.map +1 -0
- package/build/updates/0.3.1-0.4/index.mjs +16 -0
- package/build/updates/0.3.1-0.4/index.mjs.map +1 -0
- package/build/updates/0.3.1-0.4/linkSecret.mjs +21 -0
- package/build/updates/0.3.1-0.4/linkSecret.mjs.map +1 -0
- package/build/updates/0.3.1-0.4/schema.mjs +39 -0
- package/build/updates/0.3.1-0.4/schema.mjs.map +1 -0
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.mjs +126 -0
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.mjs.map +1 -0
- package/build/updates/0.4-0.5/index.d.mts +7 -0
- package/build/updates/0.4-0.5/index.d.mts.map +1 -0
- package/build/updates/0.4-0.5/index.mjs +10 -0
- package/build/updates/0.4-0.5/index.mjs.map +1 -0
- package/build/utils/anonCredsObjects.d.mts +27 -0
- package/build/utils/anonCredsObjects.d.mts.map +1 -0
- package/build/utils/anonCredsObjects.mjs +57 -0
- package/build/utils/anonCredsObjects.mjs.map +1 -0
- package/build/utils/areRequestsEqual.d.mts +1 -0
- package/build/utils/areRequestsEqual.mjs +86 -0
- package/build/utils/areRequestsEqual.mjs.map +1 -0
- package/build/utils/bytesToBigint.mjs +11 -0
- package/build/utils/bytesToBigint.mjs.map +1 -0
- package/build/utils/composeAutoAccept.d.mts +1 -0
- package/build/utils/composeAutoAccept.mjs +25 -0
- package/build/utils/composeAutoAccept.mjs.map +1 -0
- package/build/utils/createRequestFromPreview.d.mts +2 -0
- package/build/utils/createRequestFromPreview.mjs +50 -0
- package/build/utils/createRequestFromPreview.mjs.map +1 -0
- package/build/utils/credential.d.mts +12 -0
- package/build/utils/credential.d.mts.map +1 -0
- package/build/utils/credential.mjs +119 -0
- package/build/utils/credential.mjs.map +1 -0
- package/build/utils/credentialPreviewAttributes.d.mts +1 -0
- package/build/utils/credentialPreviewAttributes.mjs +21 -0
- package/build/utils/credentialPreviewAttributes.mjs.map +1 -0
- package/build/utils/getCredentialsForAnonCredsRequest.d.mts +11 -0
- package/build/utils/getCredentialsForAnonCredsRequest.d.mts.map +1 -0
- package/build/utils/getCredentialsForAnonCredsRequest.mjs +70 -0
- package/build/utils/getCredentialsForAnonCredsRequest.mjs.map +1 -0
- package/build/utils/getRevocationRegistries.d.mts +4 -0
- package/build/utils/getRevocationRegistries.mjs +121 -0
- package/build/utils/getRevocationRegistries.mjs.map +1 -0
- package/build/utils/hasDuplicateGroupNames.d.mts +1 -0
- package/build/utils/hasDuplicateGroupNames.mjs +22 -0
- package/build/utils/hasDuplicateGroupNames.mjs.map +1 -0
- package/build/utils/index.d.mts +17 -0
- package/build/utils/index.mjs +17 -0
- package/build/utils/indyIdentifiers.d.mts +71 -0
- package/build/utils/indyIdentifiers.d.mts.map +1 -0
- package/build/utils/indyIdentifiers.mjs +249 -0
- package/build/utils/indyIdentifiers.mjs.map +1 -0
- package/build/utils/isMap.d.mts +1 -0
- package/build/utils/isMap.mjs +19 -0
- package/build/utils/isMap.mjs.map +1 -0
- package/build/utils/linkSecret.d.mts +13 -0
- package/build/utils/linkSecret.d.mts.map +1 -0
- package/build/utils/linkSecret.mjs +35 -0
- package/build/utils/linkSecret.mjs.map +1 -0
- package/build/utils/metadata.d.mts +30 -0
- package/build/utils/metadata.d.mts.map +1 -0
- package/build/utils/metadata.mjs +23 -0
- package/build/utils/metadata.mjs.map +1 -0
- package/build/utils/proofRequest.mjs +10 -0
- package/build/utils/proofRequest.mjs.map +1 -0
- package/build/utils/proverDid.d.mts +12 -0
- package/build/utils/proverDid.d.mts.map +1 -0
- package/build/utils/proverDid.mjs +17 -0
- package/build/utils/proverDid.mjs.map +1 -0
- package/build/utils/revocationInterval.d.mts +12 -0
- package/build/utils/revocationInterval.d.mts.map +1 -0
- package/build/utils/revocationInterval.mjs +11 -0
- package/build/utils/revocationInterval.mjs.map +1 -0
- package/build/utils/sortRequestedCredentialsMatches.d.mts +1 -0
- package/build/utils/sortRequestedCredentialsMatches.mjs +22 -0
- package/build/utils/sortRequestedCredentialsMatches.mjs.map +1 -0
- package/build/utils/timestamp.d.mts +5 -0
- package/build/utils/timestamp.d.mts.map +1 -0
- package/build/utils/timestamp.mjs +6 -0
- package/build/utils/timestamp.mjs.map +1 -0
- package/build/utils/w3cAnonCredsUtils.d.mts +28 -0
- package/build/utils/w3cAnonCredsUtils.d.mts.map +1 -0
- package/build/utils/w3cAnonCredsUtils.mjs +101 -0
- package/build/utils/w3cAnonCredsUtils.mjs.map +1 -0
- package/package.json +20 -21
- package/build/AnonCredsApi.d.ts +0 -97
- package/build/AnonCredsApi.js +0 -582
- package/build/AnonCredsApi.js.map +0 -1
- package/build/AnonCredsApiOptions.d.ts +0 -24
- package/build/AnonCredsApiOptions.js +0 -3
- package/build/AnonCredsApiOptions.js.map +0 -1
- package/build/AnonCredsModule.d.ts +0 -24
- package/build/AnonCredsModule.js +0 -56
- package/build/AnonCredsModule.js.map +0 -1
- package/build/AnonCredsModuleConfig.d.ts +0 -72
- package/build/AnonCredsModuleConfig.js +0 -31
- package/build/AnonCredsModuleConfig.js.map +0 -1
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.d.ts +0 -27
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.js +0 -241
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.js.map +0 -1
- package/build/anoncreds-rs/AnonCredsRsHolderService.d.ts +0 -38
- package/build/anoncreds-rs/AnonCredsRsHolderService.js +0 -622
- package/build/anoncreds-rs/AnonCredsRsHolderService.js.map +0 -1
- package/build/anoncreds-rs/AnonCredsRsIssuerService.d.ts +0 -12
- package/build/anoncreds-rs/AnonCredsRsIssuerService.js +0 -253
- package/build/anoncreds-rs/AnonCredsRsIssuerService.js.map +0 -1
- package/build/anoncreds-rs/AnonCredsRsVerifierService.d.ts +0 -8
- package/build/anoncreds-rs/AnonCredsRsVerifierService.js +0 -157
- package/build/anoncreds-rs/AnonCredsRsVerifierService.js.map +0 -1
- package/build/anoncreds-rs/index.d.ts +0 -3
- package/build/anoncreds-rs/index.js +0 -10
- package/build/anoncreds-rs/index.js.map +0 -1
- package/build/anoncreds-rs/utils.d.ts +0 -23
- package/build/anoncreds-rs/utils.js +0 -71
- package/build/anoncreds-rs/utils.js.map +0 -1
- package/build/error/AnonCredsError.d.ts +0 -6
- package/build/error/AnonCredsError.js +0 -11
- package/build/error/AnonCredsError.js.map +0 -1
- package/build/error/AnonCredsRsError.d.ts +0 -6
- package/build/error/AnonCredsRsError.js +0 -11
- package/build/error/AnonCredsRsError.js.map +0 -1
- package/build/error/AnonCredsStoreRecordError.d.ts +0 -6
- package/build/error/AnonCredsStoreRecordError.js +0 -11
- package/build/error/AnonCredsStoreRecordError.js.map +0 -1
- package/build/error/index.d.ts +0 -3
- package/build/error/index.js +0 -20
- package/build/error/index.js.map +0 -1
- package/build/formats/AnonCredsCredentialFormat.d.ts +0 -79
- package/build/formats/AnonCredsCredentialFormat.js +0 -3
- package/build/formats/AnonCredsCredentialFormat.js.map +0 -1
- package/build/formats/AnonCredsCredentialFormatService.d.ts +0 -80
- package/build/formats/AnonCredsCredentialFormatService.js +0 -433
- package/build/formats/AnonCredsCredentialFormatService.js.map +0 -1
- package/build/formats/AnonCredsProofFormat.d.ts +0 -70
- package/build/formats/AnonCredsProofFormat.js +0 -3
- package/build/formats/AnonCredsProofFormat.js.map +0 -1
- package/build/formats/AnonCredsProofFormatService.d.ts +0 -55
- package/build/formats/AnonCredsProofFormatService.js +0 -289
- package/build/formats/AnonCredsProofFormatService.js.map +0 -1
- package/build/formats/DataIntegrityCredentialFormatService.d.ts +0 -89
- package/build/formats/DataIntegrityCredentialFormatService.js +0 -773
- package/build/formats/DataIntegrityCredentialFormatService.js.map +0 -1
- package/build/formats/LegacyIndyCredentialFormat.d.ts +0 -32
- package/build/formats/LegacyIndyCredentialFormat.js +0 -3
- package/build/formats/LegacyIndyCredentialFormat.js.map +0 -1
- package/build/formats/LegacyIndyCredentialFormatService.d.ts +0 -80
- package/build/formats/LegacyIndyCredentialFormatService.js +0 -379
- package/build/formats/LegacyIndyCredentialFormatService.js.map +0 -1
- package/build/formats/LegacyIndyProofFormat.d.ts +0 -29
- package/build/formats/LegacyIndyProofFormat.js +0 -3
- package/build/formats/LegacyIndyProofFormat.js.map +0 -1
- package/build/formats/LegacyIndyProofFormatService.d.ts +0 -58
- package/build/formats/LegacyIndyProofFormatService.js +0 -374
- package/build/formats/LegacyIndyProofFormatService.js.map +0 -1
- package/build/formats/index.d.ts +0 -9
- package/build/formats/index.js +0 -32
- package/build/formats/index.js.map +0 -1
- package/build/index.d.ts +0 -21
- package/build/index.js +0 -54
- package/build/index.js.map +0 -1
- package/build/models/AnonCredsCredentialProposal.d.ts +0 -62
- package/build/models/AnonCredsCredentialProposal.js +0 -81
- package/build/models/AnonCredsCredentialProposal.js.map +0 -1
- package/build/models/AnonCredsProofRequest.d.ts +0 -27
- package/build/models/AnonCredsProofRequest.js +0 -82
- package/build/models/AnonCredsProofRequest.js.map +0 -1
- package/build/models/AnonCredsRequestedAttribute.d.ts +0 -16
- package/build/models/AnonCredsRequestedAttribute.js +0 -56
- package/build/models/AnonCredsRequestedAttribute.js.map +0 -1
- package/build/models/AnonCredsRequestedPredicate.d.ts +0 -19
- package/build/models/AnonCredsRequestedPredicate.js +0 -61
- package/build/models/AnonCredsRequestedPredicate.js.map +0 -1
- package/build/models/AnonCredsRestriction.d.ts +0 -55
- package/build/models/AnonCredsRestriction.js +0 -160
- package/build/models/AnonCredsRestriction.js.map +0 -1
- package/build/models/AnonCredsRestrictionWrapper.d.ts +0 -4
- package/build/models/AnonCredsRestrictionWrapper.js +0 -25
- package/build/models/AnonCredsRestrictionWrapper.js.map +0 -1
- package/build/models/AnonCredsRevocationInterval.d.ts +0 -5
- package/build/models/AnonCredsRevocationInterval.js +0 -33
- package/build/models/AnonCredsRevocationInterval.js.map +0 -1
- package/build/models/exchange.d.ts +0 -99
- package/build/models/exchange.js +0 -5
- package/build/models/exchange.js.map +0 -1
- package/build/models/index.d.ts +0 -4
- package/build/models/index.js +0 -21
- package/build/models/index.js.map +0 -1
- package/build/models/internal.d.ts +0 -35
- package/build/models/internal.js +0 -3
- package/build/models/internal.js.map +0 -1
- package/build/models/registry.d.ts +0 -39
- package/build/models/registry.js +0 -3
- package/build/models/registry.js.map +0 -1
- package/build/models/utils.d.ts +0 -22
- package/build/models/utils.js +0 -3
- package/build/models/utils.js.map +0 -1
- package/build/protocols/credentials/v1/V1CredentialProtocol.d.ts +0 -162
- package/build/protocols/credentials/v1/V1CredentialProtocol.js +0 -948
- package/build/protocols/credentials/v1/V1CredentialProtocol.js.map +0 -1
- package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.d.ts +0 -10
- package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.js +0 -18
- package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.js.map +0 -1
- package/build/protocols/credentials/v1/errors/index.d.ts +0 -1
- package/build/protocols/credentials/v1/errors/index.js +0 -6
- package/build/protocols/credentials/v1/errors/index.js.map +0 -1
- package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.d.ts +0 -9
- package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.js +0 -15
- package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.js.map +0 -1
- package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.d.ts +0 -9
- package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.js +0 -15
- package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.js.map +0 -1
- package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.d.ts +0 -10
- package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.js +0 -40
- package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.js.map +0 -1
- package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.d.ts +0 -10
- package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.js +0 -33
- package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.js.map +0 -1
- package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.d.ts +0 -10
- package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.js +0 -38
- package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.js.map +0 -1
- package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.d.ts +0 -10
- package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.js +0 -40
- package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.js.map +0 -1
- package/build/protocols/credentials/v1/handlers/index.d.ts +0 -6
- package/build/protocols/credentials/v1/handlers/index.js +0 -23
- package/build/protocols/credentials/v1/handlers/index.js.map +0 -1
- package/build/protocols/credentials/v1/index.d.ts +0 -2
- package/build/protocols/credentials/v1/index.js +0 -19
- package/build/protocols/credentials/v1/index.js.map +0 -1
- package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.d.ts +0 -16
- package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.js +0 -34
- package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.js.map +0 -1
- package/build/protocols/credentials/v1/messages/V1CredentialPreview.d.ts +0 -26
- package/build/protocols/credentials/v1/messages/V1CredentialPreview.js +0 -69
- package/build/protocols/credentials/v1/messages/V1CredentialPreview.js.map +0 -1
- package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.d.ts +0 -16
- package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.js +0 -34
- package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.js.map +0 -1
- package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.d.ts +0 -19
- package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.js +0 -62
- package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.js.map +0 -1
- package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.d.ts +0 -27
- package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.js +0 -75
- package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.js.map +0 -1
- package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.d.ts +0 -59
- package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.js +0 -109
- package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.js.map +0 -1
- package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.d.ts +0 -19
- package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.js +0 -61
- package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.js.map +0 -1
- package/build/protocols/credentials/v1/messages/index.d.ts +0 -7
- package/build/protocols/credentials/v1/messages/index.js +0 -24
- package/build/protocols/credentials/v1/messages/index.js.map +0 -1
- package/build/protocols/index.d.ts +0 -2
- package/build/protocols/index.js +0 -19
- package/build/protocols/index.js.map +0 -1
- package/build/protocols/proofs/v1/V1ProofProtocol.d.ts +0 -50
- package/build/protocols/proofs/v1/V1ProofProtocol.js +0 -864
- package/build/protocols/proofs/v1/V1ProofProtocol.js.map +0 -1
- package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.d.ts +0 -12
- package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.js +0 -19
- package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.js.map +0 -1
- package/build/protocols/proofs/v1/errors/index.d.ts +0 -1
- package/build/protocols/proofs/v1/errors/index.js +0 -18
- package/build/protocols/proofs/v1/errors/index.js.map +0 -1
- package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.d.ts +0 -9
- package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.js +0 -15
- package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.js.map +0 -1
- package/build/protocols/proofs/v1/handlers/V1PresentationHandler.d.ts +0 -10
- package/build/protocols/proofs/v1/handlers/V1PresentationHandler.js +0 -40
- package/build/protocols/proofs/v1/handlers/V1PresentationHandler.js.map +0 -1
- package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.d.ts +0 -9
- package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.js +0 -15
- package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.js.map +0 -1
- package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.d.ts +0 -11
- package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.js +0 -38
- package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.js.map +0 -1
- package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.d.ts +0 -10
- package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.js +0 -35
- package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.js.map +0 -1
- package/build/protocols/proofs/v1/handlers/index.d.ts +0 -5
- package/build/protocols/proofs/v1/handlers/index.js +0 -22
- package/build/protocols/proofs/v1/handlers/index.js.map +0 -1
- package/build/protocols/proofs/v1/index.d.ts +0 -4
- package/build/protocols/proofs/v1/index.js +0 -21
- package/build/protocols/proofs/v1/index.js.map +0 -1
- package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.d.ts +0 -8
- package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.js +0 -27
- package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.js.map +0 -1
- package/build/protocols/proofs/v1/messages/V1PresentationMessage.d.ts +0 -31
- package/build/protocols/proofs/v1/messages/V1PresentationMessage.js +0 -67
- package/build/protocols/proofs/v1/messages/V1PresentationMessage.js.map +0 -1
- package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.d.ts +0 -16
- package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.js +0 -34
- package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.js.map +0 -1
- package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.d.ts +0 -26
- package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.js +0 -53
- package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.js.map +0 -1
- package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.d.ts +0 -29
- package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.js +0 -65
- package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.js.map +0 -1
- package/build/protocols/proofs/v1/messages/index.d.ts +0 -5
- package/build/protocols/proofs/v1/messages/index.js +0 -22
- package/build/protocols/proofs/v1/messages/index.js.map +0 -1
- package/build/protocols/proofs/v1/models/V1PresentationPreview.d.ts +0 -50
- package/build/protocols/proofs/v1/models/V1PresentationPreview.js +0 -130
- package/build/protocols/proofs/v1/models/V1PresentationPreview.js.map +0 -1
- package/build/protocols/proofs/v1/models/index.d.ts +0 -1
- package/build/protocols/proofs/v1/models/index.js +0 -18
- package/build/protocols/proofs/v1/models/index.js.map +0 -1
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.d.ts +0 -21
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.js +0 -23
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.js.map +0 -1
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.d.ts +0 -8
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.js +0 -35
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.js.map +0 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.d.ts +0 -39
- package/build/repository/AnonCredsCredentialDefinitionRecord.js +0 -30
- package/build/repository/AnonCredsCredentialDefinitionRecord.js.map +0 -1
- package/build/repository/AnonCredsCredentialDefinitionRepository.d.ts +0 -8
- package/build/repository/AnonCredsCredentialDefinitionRepository.js +0 -53
- package/build/repository/AnonCredsCredentialDefinitionRepository.js.map +0 -1
- package/build/repository/AnonCredsCredentialRecord.d.ts +0 -48
- package/build/repository/AnonCredsCredentialRecord.js +0 -37
- package/build/repository/AnonCredsCredentialRecord.js.map +0 -1
- package/build/repository/AnonCredsCredentialRepository.d.ts +0 -10
- package/build/repository/AnonCredsCredentialRepository.js +0 -41
- package/build/repository/AnonCredsCredentialRepository.js.map +0 -1
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.d.ts +0 -21
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.js +0 -23
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.js.map +0 -1
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.d.ts +0 -8
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.js +0 -35
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.js.map +0 -1
- package/build/repository/AnonCredsLinkSecretRecord.d.ts +0 -23
- package/build/repository/AnonCredsLinkSecretRecord.js +0 -22
- package/build/repository/AnonCredsLinkSecretRecord.js.map +0 -1
- package/build/repository/AnonCredsLinkSecretRepository.d.ts +0 -10
- package/build/repository/AnonCredsLinkSecretRepository.js +0 -41
- package/build/repository/AnonCredsLinkSecretRepository.js.map +0 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.d.ts +0 -34
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.js +0 -30
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.js.map +0 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.ts +0 -10
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js +0 -38
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js.map +0 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.ts +0 -25
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.js +0 -23
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.js.map +0 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.d.ts +0 -9
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.js +0 -38
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.js.map +0 -1
- package/build/repository/AnonCredsSchemaRecord.d.ts +0 -39
- package/build/repository/AnonCredsSchemaRecord.js +0 -30
- package/build/repository/AnonCredsSchemaRecord.js.map +0 -1
- package/build/repository/AnonCredsSchemaRepository.d.ts +0 -8
- package/build/repository/AnonCredsSchemaRepository.js +0 -53
- package/build/repository/AnonCredsSchemaRepository.js.map +0 -1
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.d.ts +0 -9
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.js +0 -9
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.js.map +0 -1
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.d.ts +0 -9
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.js +0 -9
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.js.map +0 -1
- package/build/repository/anonCredsSchemaRecordMetadataTypes.d.ts +0 -9
- package/build/repository/anonCredsSchemaRecordMetadataTypes.js +0 -9
- package/build/repository/anonCredsSchemaRecordMetadataTypes.js.map +0 -1
- package/build/repository/index.d.ts +0 -16
- package/build/repository/index.js +0 -33
- package/build/repository/index.js.map +0 -1
- package/build/services/AnonCredsHolderService.d.ts +0 -18
- package/build/services/AnonCredsHolderService.js +0 -5
- package/build/services/AnonCredsHolderService.js.map +0 -1
- package/build/services/AnonCredsHolderServiceOptions.d.ts +0 -101
- package/build/services/AnonCredsHolderServiceOptions.js +0 -3
- package/build/services/AnonCredsHolderServiceOptions.js.map +0 -1
- package/build/services/AnonCredsIssuerService.d.ts +0 -14
- package/build/services/AnonCredsIssuerService.js +0 -5
- package/build/services/AnonCredsIssuerService.js.map +0 -1
- package/build/services/AnonCredsIssuerServiceOptions.d.ts +0 -61
- package/build/services/AnonCredsIssuerServiceOptions.js +0 -3
- package/build/services/AnonCredsIssuerServiceOptions.js.map +0 -1
- package/build/services/AnonCredsVerifierService.d.ts +0 -7
- package/build/services/AnonCredsVerifierService.js +0 -5
- package/build/services/AnonCredsVerifierService.js.map +0 -1
- package/build/services/AnonCredsVerifierServiceOptions.d.ts +0 -25
- package/build/services/AnonCredsVerifierServiceOptions.js +0 -3
- package/build/services/AnonCredsVerifierServiceOptions.js.map +0 -1
- package/build/services/index.d.ts +0 -8
- package/build/services/index.js +0 -27
- package/build/services/index.js.map +0 -1
- package/build/services/registry/AnonCredsRegistry.d.ts +0 -25
- package/build/services/registry/AnonCredsRegistry.js +0 -3
- package/build/services/registry/AnonCredsRegistry.js.map +0 -1
- package/build/services/registry/AnonCredsRegistryService.d.ts +0 -10
- package/build/services/registry/AnonCredsRegistryService.js +0 -33
- package/build/services/registry/AnonCredsRegistryService.js.map +0 -1
- package/build/services/registry/CredentialDefinitionOptions.d.ts +0 -34
- package/build/services/registry/CredentialDefinitionOptions.js +0 -3
- package/build/services/registry/CredentialDefinitionOptions.js.map +0 -1
- package/build/services/registry/RevocationRegistryDefinitionOptions.d.ts +0 -34
- package/build/services/registry/RevocationRegistryDefinitionOptions.js +0 -3
- package/build/services/registry/RevocationRegistryDefinitionOptions.js.map +0 -1
- package/build/services/registry/RevocationStatusListOptions.d.ts +0 -32
- package/build/services/registry/RevocationStatusListOptions.js +0 -3
- package/build/services/registry/RevocationStatusListOptions.js.map +0 -1
- package/build/services/registry/SchemaOptions.d.ts +0 -34
- package/build/services/registry/SchemaOptions.js +0 -3
- package/build/services/registry/SchemaOptions.js.map +0 -1
- package/build/services/registry/base.d.ts +0 -19
- package/build/services/registry/base.js +0 -3
- package/build/services/registry/base.js.map +0 -1
- package/build/services/registry/index.d.ts +0 -7
- package/build/services/registry/index.js +0 -23
- package/build/services/registry/index.js.map +0 -1
- package/build/services/tails/BasicTailsFileService.d.ts +0 -23
- package/build/services/tails/BasicTailsFileService.js +0 -65
- package/build/services/tails/BasicTailsFileService.js.map +0 -1
- package/build/services/tails/TailsFileService.d.ts +0 -42
- package/build/services/tails/TailsFileService.js +0 -3
- package/build/services/tails/TailsFileService.js.map +0 -1
- package/build/services/tails/index.d.ts +0 -2
- package/build/services/tails/index.js +0 -19
- package/build/services/tails/index.js.map +0 -1
- package/build/updates/0.3.1-0.4/credentialDefinition.d.ts +0 -18
- package/build/updates/0.3.1-0.4/credentialDefinition.js +0 -56
- package/build/updates/0.3.1-0.4/credentialDefinition.js.map +0 -1
- package/build/updates/0.3.1-0.4/credentialExchangeRecord.d.ts +0 -69
- package/build/updates/0.3.1-0.4/credentialExchangeRecord.js +0 -121
- package/build/updates/0.3.1-0.4/credentialExchangeRecord.js.map +0 -1
- package/build/updates/0.3.1-0.4/index.d.ts +0 -2
- package/build/updates/0.3.1-0.4/index.js +0 -14
- package/build/updates/0.3.1-0.4/index.js.map +0 -1
- package/build/updates/0.3.1-0.4/linkSecret.d.ts +0 -6
- package/build/updates/0.3.1-0.4/linkSecret.js +0 -35
- package/build/updates/0.3.1-0.4/linkSecret.js.map +0 -1
- package/build/updates/0.3.1-0.4/schema.d.ts +0 -15
- package/build/updates/0.3.1-0.4/schema.js +0 -41
- package/build/updates/0.3.1-0.4/schema.js.map +0 -1
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.d.ts +0 -5
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.js +0 -149
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.js.map +0 -1
- package/build/updates/0.4-0.5/index.d.ts +0 -2
- package/build/updates/0.4-0.5/index.js +0 -8
- package/build/updates/0.4-0.5/index.js.map +0 -1
- package/build/utils/anonCredsObjects.d.ts +0 -26
- package/build/utils/anonCredsObjects.js +0 -81
- package/build/utils/anonCredsObjects.js.map +0 -1
- package/build/utils/areRequestsEqual.d.ts +0 -6
- package/build/utils/areRequestsEqual.js +0 -135
- package/build/utils/areRequestsEqual.js.map +0 -1
- package/build/utils/composeAutoAccept.d.ts +0 -15
- package/build/utils/composeAutoAccept.js +0 -26
- package/build/utils/composeAutoAccept.js.map +0 -1
- package/build/utils/createRequestFromPreview.d.ts +0 -10
- package/build/utils/createRequestFromPreview.js +0 -71
- package/build/utils/createRequestFromPreview.js.map +0 -1
- package/build/utils/credential.d.ts +0 -68
- package/build/utils/credential.js +0 -188
- package/build/utils/credential.js.map +0 -1
- package/build/utils/credentialPreviewAttributes.d.ts +0 -2
- package/build/utils/credentialPreviewAttributes.js +0 -24
- package/build/utils/credentialPreviewAttributes.js.map +0 -1
- package/build/utils/getCredentialsForAnonCredsRequest.d.ts +0 -4
- package/build/utils/getCredentialsForAnonCredsRequest.js +0 -81
- package/build/utils/getCredentialsForAnonCredsRequest.js.map +0 -1
- package/build/utils/getRevocationRegistries.d.ts +0 -14
- package/build/utils/getRevocationRegistries.js +0 -151
- package/build/utils/getRevocationRegistries.js.map +0 -1
- package/build/utils/hasDuplicateGroupNames.d.ts +0 -2
- package/build/utils/hasDuplicateGroupNames.js +0 -22
- package/build/utils/hasDuplicateGroupNames.js.map +0 -1
- package/build/utils/index.d.ts +0 -17
- package/build/utils/index.js +0 -48
- package/build/utils/index.js.map +0 -1
- package/build/utils/indyIdentifiers.d.ts +0 -66
- package/build/utils/indyIdentifiers.js +0 -298
- package/build/utils/indyIdentifiers.js.map +0 -1
- package/build/utils/isMap.d.ts +0 -5
- package/build/utils/isMap.js +0 -17
- package/build/utils/isMap.js.map +0 -1
- package/build/utils/linkSecret.d.ts +0 -9
- package/build/utils/linkSecret.js +0 -43
- package/build/utils/linkSecret.js.map +0 -1
- package/build/utils/metadata.d.ts +0 -35
- package/build/utils/metadata.js +0 -24
- package/build/utils/metadata.js.map +0 -1
- package/build/utils/proofRequest.d.ts +0 -2
- package/build/utils/proofRequest.js +0 -21
- package/build/utils/proofRequest.js.map +0 -1
- package/build/utils/proverDid.d.ts +0 -8
- package/build/utils/proverDid.js +0 -15
- package/build/utils/proverDid.js.map +0 -1
- package/build/utils/revocationInterval.d.ts +0 -7
- package/build/utils/revocationInterval.js +0 -14
- package/build/utils/revocationInterval.js.map +0 -1
- package/build/utils/sortRequestedCredentialsMatches.d.ts +0 -8
- package/build/utils/sortRequestedCredentialsMatches.js +0 -31
- package/build/utils/sortRequestedCredentialsMatches.js.map +0 -1
- package/build/utils/timestamp.d.ts +0 -1
- package/build/utils/timestamp.js +0 -7
- package/build/utils/timestamp.js.map +0 -1
- package/build/utils/w3cAnonCredsUtils.d.ts +0 -37
- package/build/utils/w3cAnonCredsUtils.js +0 -132
- package/build/utils/w3cAnonCredsUtils.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommProofV1Protocol.mjs","names":["isValid: boolean","indyProposeProof: AnonCredsProofRequest | undefined"],"sources":["../../../../src/protocols/proofs/v1/DidCommProofV1Protocol.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport { CredoError, JsonEncoder, JsonTransformer, MessageValidator, utils } from '@credo-ts/core'\nimport type {\n DidCommFeatureRegistry,\n DidCommInboundMessageContext,\n DidCommMessage,\n DidCommMessageHandlerRegistry,\n DidCommProblemReportMessage,\n DidCommProofFormat,\n DidCommProofProtocol,\n GetProofFormatDataReturn,\n ProofProtocolOptions,\n} from '@credo-ts/didcomm'\nimport {\n AckStatus,\n DidCommAttachment,\n DidCommAutoAcceptProof,\n DidCommBaseProofProtocol,\n DidCommConnectionService,\n DidCommMessageRepository,\n DidCommMessageRole,\n DidCommPresentationProblemReportReason,\n DidCommProofExchangeRecord,\n DidCommProofExchangeRepository,\n DidCommProofRole,\n DidCommProofState,\n DidCommProofsModuleConfig,\n DidCommProtocol,\n} from '@credo-ts/didcomm'\nimport type { LegacyIndyDidCommProofFormatService } from '../../../formats'\nimport type { AnonCredsProofRequest } from '../../../models'\nimport { type AnonCredsHolderService, AnonCredsHolderServiceSymbol } from '../../../services'\nimport { composeProofAutoAccept, createRequestFromPreview } from '../../../utils'\nimport { DidCommPresentationV1ProblemReportError } from './errors'\nimport {\n DidCommPresentationV1AckHandler,\n DidCommPresentationV1Handler,\n DidCommPresentationV1ProblemReportHandler,\n DidCommProposePresentationV1Handler,\n DidCommRequestPresentationV1Handler,\n} from './handlers'\nimport {\n DidCommPresentationV1AckMessage,\n DidCommPresentationV1Message,\n DidCommProposePresentationV1Message,\n DidCommRequestPresentationV1Message,\n INDY_PROOF_ATTACHMENT_ID,\n INDY_PROOF_REQUEST_ATTACHMENT_ID,\n} from './messages'\nimport { DidCommPresentationV1ProblemReportMessage } from './messages/DidCommPresentationV1ProblemReportMessage'\nimport { DidCommPresentationV1Preview } from './models/DidCommPresentationV1Preview'\n\nexport interface DidCommProofV1ProtocolConfig {\n indyProofFormat: LegacyIndyDidCommProofFormatService\n}\n\nexport class DidCommProofV1Protocol\n extends DidCommBaseProofProtocol\n implements DidCommProofProtocol<[LegacyIndyDidCommProofFormatService]>\n{\n private indyProofFormat: LegacyIndyDidCommProofFormatService\n\n public constructor({ indyProofFormat }: DidCommProofV1ProtocolConfig) {\n super()\n\n // TODO: just create a new instance of LegacyIndyDidCommProofFormatService here so it makes the setup easier\n this.indyProofFormat = indyProofFormat\n }\n\n /**\n * The version of the present proof protocol this protocol supports\n */\n public readonly version = 'v1' as const\n\n /**\n * Registers the protocol implementation (handlers, feature registry) on the agent.\n */\n public register(messageHandlerRegistry: DidCommMessageHandlerRegistry, featureRegistry: DidCommFeatureRegistry) {\n // Register message handlers for the Issue Credential V1 Protocol\n messageHandlerRegistry.registerMessageHandlers([\n new DidCommProposePresentationV1Handler(this),\n new DidCommRequestPresentationV1Handler(this),\n new DidCommPresentationV1Handler(this),\n new DidCommPresentationV1AckHandler(this),\n new DidCommPresentationV1ProblemReportHandler(this),\n ])\n\n // Register Present Proof V1 in feature registry, with supported roles\n featureRegistry.register(\n new DidCommProtocol({\n id: 'https://didcomm.org/present-proof/1.0',\n roles: ['prover', 'verifier'],\n })\n )\n }\n\n public async createProposal(\n agentContext: AgentContext,\n {\n proofFormats,\n connectionRecord,\n comment,\n parentThreadId,\n autoAcceptProof,\n }: ProofProtocolOptions.CreateProofProposalOptions<[LegacyIndyDidCommProofFormatService]>\n ): Promise<ProofProtocolOptions.ProofProtocolMsgReturnType<DidCommProposePresentationV1Message>> {\n this.assertOnlyIndyFormat(proofFormats)\n\n const proofRepository = agentContext.dependencyManager.resolve(DidCommProofExchangeRepository)\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n if (!proofFormats.indy) {\n throw new CredoError('Missing indy proof format in v1 create proposal call.')\n }\n\n const presentationProposal = new DidCommPresentationV1Preview({\n attributes: proofFormats.indy?.attributes,\n predicates: proofFormats.indy?.predicates,\n })\n\n // validate input data from user\n MessageValidator.validateSync(presentationProposal)\n\n // Create message\n const message = new DidCommProposePresentationV1Message({\n presentationProposal,\n comment,\n })\n\n if (parentThreadId)\n message.setThread({\n parentThreadId,\n })\n\n // Create record\n const proofRecord = new DidCommProofExchangeRecord({\n connectionId: connectionRecord?.id,\n threadId: message.threadId,\n parentThreadId: message.thread?.parentThreadId,\n state: DidCommProofState.ProposalSent,\n role: DidCommProofRole.Prover,\n autoAcceptProof,\n protocolVersion: 'v1',\n })\n\n await didCommMessageRepository.saveAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n await proofRepository.save(agentContext, proofRecord)\n this.emitStateChangedEvent(agentContext, proofRecord, null)\n\n return { proofRecord, message }\n }\n\n public async processProposal(\n messageContext: DidCommInboundMessageContext<DidCommProposePresentationV1Message>\n ): Promise<DidCommProofExchangeRecord> {\n const { message: proposalMessage, connection, agentContext } = messageContext\n\n const proofRepository = agentContext.dependencyManager.resolve(DidCommProofExchangeRepository)\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // TODO: with this method, we should update the credential protocol to use the ConnectionApi, so it\n // only depends on the public api, rather than the internal API (this helps with breaking changes)\n const connectionService = agentContext.dependencyManager.resolve(DidCommConnectionService)\n\n agentContext.config.logger.debug(`Processing presentation proposal with message id ${proposalMessage.id}`)\n\n let proofRecord = await this.findByProperties(agentContext, {\n threadId: proposalMessage.threadId,\n role: DidCommProofRole.Verifier,\n connectionId: connection?.id,\n })\n\n // Proof record already exists, this is a response to an earlier message sent by us\n if (proofRecord) {\n agentContext.config.logger.debug('Proof record already exists for incoming proposal')\n\n // Assert\n proofRecord.assertState(DidCommProofState.RequestSent)\n proofRecord.assertProtocolVersion('v1')\n\n const lastReceivedMessage = await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommProposePresentationV1Message,\n role: DidCommMessageRole.Receiver,\n })\n const lastSentMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommRequestPresentationV1Message,\n role: DidCommMessageRole.Sender,\n })\n await connectionService.assertConnectionOrOutOfBandExchange(messageContext, {\n lastReceivedMessage,\n lastSentMessage,\n expectedConnectionId: proofRecord.connectionId,\n })\n\n // Update record\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: proposalMessage,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Receiver,\n })\n await this.updateState(agentContext, proofRecord, DidCommProofState.ProposalReceived)\n } else {\n agentContext.config.logger.debug('Proof record does not exist yet for incoming proposal')\n // Assert\n await connectionService.assertConnectionOrOutOfBandExchange(messageContext)\n\n // No proof record exists with thread id\n proofRecord = new DidCommProofExchangeRecord({\n connectionId: connection?.id,\n threadId: proposalMessage.threadId,\n parentThreadId: proposalMessage.thread?.parentThreadId,\n state: DidCommProofState.ProposalReceived,\n role: DidCommProofRole.Verifier,\n protocolVersion: 'v1',\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: proposalMessage,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Receiver,\n })\n\n // Save record\n await proofRepository.save(agentContext, proofRecord)\n this.emitStateChangedEvent(agentContext, proofRecord, null)\n }\n\n return proofRecord\n }\n\n public async acceptProposal(\n agentContext: AgentContext,\n {\n proofRecord,\n proofFormats,\n comment,\n autoAcceptProof,\n }: ProofProtocolOptions.AcceptProofProposalOptions<[LegacyIndyDidCommProofFormatService]>\n ): Promise<ProofProtocolOptions.ProofProtocolMsgReturnType<DidCommRequestPresentationV1Message>> {\n // Assert\n proofRecord.assertProtocolVersion('v1')\n proofRecord.assertState(DidCommProofState.ProposalReceived)\n if (proofFormats) this.assertOnlyIndyFormat(proofFormats)\n\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const proposalMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommProposePresentationV1Message,\n role: DidCommMessageRole.Receiver,\n })\n\n const indyFormat = proofFormats?.indy\n\n const anonCredsHolderService = agentContext.resolve<AnonCredsHolderService>(AnonCredsHolderServiceSymbol)\n\n // Create a proof request from the preview, so we can let the messages\n // be handled using the indy proof format which supports RFC0592\n const requestFromPreview = createRequestFromPreview({\n attributes: proposalMessage.presentationProposal.attributes,\n predicates: proposalMessage.presentationProposal.predicates,\n name: indyFormat?.name ?? 'Proof Request',\n version: indyFormat?.version ?? '1.0',\n nonce: anonCredsHolderService.generateNonce(agentContext),\n })\n\n const proposalAttachment = new DidCommAttachment({\n data: {\n json: JsonTransformer.toJSON(requestFromPreview),\n },\n })\n\n // Create message\n const { attachment } = await this.indyProofFormat.acceptProposal(agentContext, {\n attachmentId: INDY_PROOF_REQUEST_ATTACHMENT_ID,\n proofRecord,\n proposalAttachment,\n })\n\n const requestPresentationMessage = new DidCommRequestPresentationV1Message({\n comment,\n requestAttachments: [attachment],\n })\n\n requestPresentationMessage.setThread({\n threadId: proofRecord.threadId,\n parentThreadId: proofRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: requestPresentationMessage,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n // Update record\n proofRecord.autoAcceptProof = autoAcceptProof ?? proofRecord.autoAcceptProof\n await this.updateState(agentContext, proofRecord, DidCommProofState.RequestSent)\n\n return { message: requestPresentationMessage, proofRecord }\n }\n\n public async negotiateProposal(\n agentContext: AgentContext,\n {\n proofFormats,\n proofRecord,\n comment,\n autoAcceptProof,\n }: ProofProtocolOptions.NegotiateProofProposalOptions<[LegacyIndyDidCommProofFormatService]>\n ): Promise<ProofProtocolOptions.ProofProtocolMsgReturnType<DidCommMessage>> {\n // Assert\n proofRecord.assertProtocolVersion('v1')\n proofRecord.assertState(DidCommProofState.ProposalReceived)\n this.assertOnlyIndyFormat(proofFormats)\n\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // Create message\n const { attachment } = await this.indyProofFormat.createRequest(agentContext, {\n attachmentId: INDY_PROOF_REQUEST_ATTACHMENT_ID,\n proofFormats,\n proofRecord,\n })\n\n const requestPresentationMessage = new DidCommRequestPresentationV1Message({\n comment,\n requestAttachments: [attachment],\n })\n requestPresentationMessage.setThread({\n threadId: proofRecord.threadId,\n parentThreadId: proofRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: requestPresentationMessage,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n proofRecord.autoAcceptProof = autoAcceptProof ?? proofRecord.autoAcceptProof\n await this.updateState(agentContext, proofRecord, DidCommProofState.RequestSent)\n\n return { message: requestPresentationMessage, proofRecord }\n }\n\n public async createRequest(\n agentContext: AgentContext,\n {\n proofFormats,\n connectionRecord,\n comment,\n parentThreadId,\n autoAcceptProof,\n }: ProofProtocolOptions.CreateProofRequestOptions<[LegacyIndyDidCommProofFormatService]>\n ): Promise<ProofProtocolOptions.ProofProtocolMsgReturnType<DidCommMessage>> {\n this.assertOnlyIndyFormat(proofFormats)\n\n const proofRepository = agentContext.dependencyManager.resolve(DidCommProofExchangeRepository)\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n if (!proofFormats.indy) {\n throw new CredoError('Missing indy proof request data for v1 create request')\n }\n\n // Create record\n const proofRecord = new DidCommProofExchangeRecord({\n connectionId: connectionRecord?.id,\n threadId: utils.uuid(),\n parentThreadId,\n state: DidCommProofState.RequestSent,\n role: DidCommProofRole.Verifier,\n autoAcceptProof,\n protocolVersion: 'v1',\n })\n\n // Create message\n const { attachment } = await this.indyProofFormat.createRequest(agentContext, {\n attachmentId: INDY_PROOF_REQUEST_ATTACHMENT_ID,\n proofFormats,\n proofRecord,\n })\n\n // Construct request message\n const message = new DidCommRequestPresentationV1Message({\n id: proofRecord.threadId,\n comment,\n requestAttachments: [attachment],\n })\n\n message.setThread({\n threadId: proofRecord.threadId,\n parentThreadId: proofRecord.parentThreadId,\n })\n\n await didCommMessageRepository.saveAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n await proofRepository.save(agentContext, proofRecord)\n this.emitStateChangedEvent(agentContext, proofRecord, null)\n\n return { message, proofRecord }\n }\n\n public async processRequest(\n messageContext: DidCommInboundMessageContext<DidCommRequestPresentationV1Message>\n ): Promise<DidCommProofExchangeRecord> {\n const { message: proofRequestMessage, connection, agentContext } = messageContext\n\n const proofRepository = agentContext.dependencyManager.resolve(DidCommProofExchangeRepository)\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // TODO: with this method, we should update the credential protocol to use the ConnectionApi, so it\n // only depends on the public api, rather than the internal API (this helps with breaking changes)\n const connectionService = agentContext.dependencyManager.resolve(DidCommConnectionService)\n\n agentContext.config.logger.debug(`Processing presentation request with id ${proofRequestMessage.id}`)\n\n let proofRecord = await this.findByProperties(agentContext, {\n threadId: proofRequestMessage.threadId,\n role: DidCommProofRole.Prover,\n })\n\n const requestAttachment = proofRequestMessage.getRequestAttachmentById(INDY_PROOF_REQUEST_ATTACHMENT_ID)\n if (!requestAttachment) {\n throw new CredoError(`Indy attachment with id ${INDY_PROOF_REQUEST_ATTACHMENT_ID} not found in request message`)\n }\n\n // proof record already exists, this means we are the message is sent as reply to a proposal we sent\n if (proofRecord) {\n const lastReceivedMessage = await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommRequestPresentationV1Message,\n role: DidCommMessageRole.Receiver,\n })\n const lastSentMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommProposePresentationV1Message,\n role: DidCommMessageRole.Sender,\n })\n\n // Assert\n proofRecord.assertProtocolVersion('v1')\n proofRecord.assertState(DidCommProofState.ProposalSent)\n await connectionService.assertConnectionOrOutOfBandExchange(messageContext, {\n lastReceivedMessage,\n lastSentMessage,\n expectedConnectionId: proofRecord.connectionId,\n })\n\n if (!proofRecord.connectionId) proofRecord.connectionId = connection?.id\n\n await this.indyProofFormat.processRequest(agentContext, {\n attachment: requestAttachment,\n proofRecord,\n })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: proofRequestMessage,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Receiver,\n })\n await this.updateState(agentContext, proofRecord, DidCommProofState.RequestReceived)\n } else {\n // Assert\n await connectionService.assertConnectionOrOutOfBandExchange(messageContext)\n\n // No proof record exists with thread id\n proofRecord = new DidCommProofExchangeRecord({\n connectionId: connection?.id,\n threadId: proofRequestMessage.threadId,\n parentThreadId: proofRequestMessage.thread?.parentThreadId,\n state: DidCommProofState.RequestReceived,\n role: DidCommProofRole.Prover,\n protocolVersion: 'v1',\n })\n\n await this.indyProofFormat.processRequest(agentContext, {\n attachment: requestAttachment,\n proofRecord,\n })\n\n await didCommMessageRepository.saveAgentMessage(agentContext, {\n agentMessage: proofRequestMessage,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Receiver,\n })\n\n // Save in repository\n await proofRepository.save(agentContext, proofRecord)\n this.emitStateChangedEvent(agentContext, proofRecord, null)\n }\n\n return proofRecord\n }\n\n public async negotiateRequest(\n agentContext: AgentContext,\n {\n proofFormats,\n proofRecord,\n comment,\n autoAcceptProof,\n }: ProofProtocolOptions.NegotiateProofRequestOptions<[LegacyIndyDidCommProofFormatService]>\n ): Promise<ProofProtocolOptions.ProofProtocolMsgReturnType<DidCommMessage>> {\n // Assert\n proofRecord.assertProtocolVersion('v1')\n proofRecord.assertState(DidCommProofState.RequestReceived)\n this.assertOnlyIndyFormat(proofFormats)\n\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n if (!proofRecord.connectionId) {\n throw new CredoError(\n `No connectionId found for proof record '${proofRecord.id}'. Connection-less verification does not support negotiation.`\n )\n }\n\n if (!proofFormats.indy) {\n throw new CredoError('Missing indy proof format in v1 negotiate request call.')\n }\n\n const presentationProposal = new DidCommPresentationV1Preview({\n attributes: proofFormats.indy?.attributes,\n predicates: proofFormats.indy?.predicates,\n })\n\n // validate input data from user\n MessageValidator.validateSync(presentationProposal)\n\n const message = new DidCommProposePresentationV1Message({\n comment,\n presentationProposal,\n })\n message.setThread({ threadId: proofRecord.threadId, parentThreadId: proofRecord.parentThreadId })\n\n await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n // Update record\n proofRecord.autoAcceptProof = autoAcceptProof ?? proofRecord.autoAcceptProof\n await this.updateState(agentContext, proofRecord, DidCommProofState.ProposalSent)\n\n return { proofRecord, message: message }\n }\n\n public async acceptRequest(\n agentContext: AgentContext,\n {\n proofRecord,\n proofFormats,\n autoAcceptProof,\n comment,\n }: ProofProtocolOptions.AcceptProofRequestOptions<[LegacyIndyDidCommProofFormatService]>\n ): Promise<ProofProtocolOptions.ProofProtocolMsgReturnType<DidCommMessage>> {\n // Assert\n proofRecord.assertProtocolVersion('v1')\n proofRecord.assertState(DidCommProofState.RequestReceived)\n\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const requestMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommRequestPresentationV1Message,\n role: DidCommMessageRole.Receiver,\n })\n const proposalMessage = await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommProposePresentationV1Message,\n role: DidCommMessageRole.Sender,\n })\n\n const requestAttachment = requestMessage.getRequestAttachmentById(INDY_PROOF_REQUEST_ATTACHMENT_ID)\n const indyProofRequest = requestMessage.indyProofRequest\n\n if (!requestAttachment || !indyProofRequest) {\n throw new DidCommPresentationV1ProblemReportError(\n `Missing indy attachment in request message for presentation with thread id ${proofRecord.threadId}`,\n { problemCode: DidCommPresentationProblemReportReason.Abandoned }\n )\n }\n\n const proposalAttachment = proposalMessage\n ? new DidCommAttachment({\n data: {\n json: JsonTransformer.toJSON(\n createRequestFromPreview({\n attributes: proposalMessage.presentationProposal?.attributes,\n predicates: proposalMessage.presentationProposal?.predicates,\n name: indyProofRequest.name,\n nonce: indyProofRequest.nonce,\n version: indyProofRequest.nonce,\n })\n ),\n },\n })\n : undefined\n\n const { attachment } = await this.indyProofFormat.acceptRequest(agentContext, {\n attachmentId: INDY_PROOF_ATTACHMENT_ID,\n requestAttachment,\n proposalAttachment,\n proofFormats,\n proofRecord,\n })\n\n const message = new DidCommPresentationV1Message({\n comment,\n presentationAttachments: [attachment],\n })\n message.setThread({ threadId: proofRecord.threadId, parentThreadId: proofRecord.parentThreadId })\n\n await didCommMessageRepository.saveAgentMessage(agentContext, {\n agentMessage: message,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Sender,\n })\n\n // Update record\n proofRecord.autoAcceptProof = autoAcceptProof ?? proofRecord.autoAcceptProof\n await this.updateState(agentContext, proofRecord, DidCommProofState.PresentationSent)\n\n return { message, proofRecord }\n }\n\n public async getCredentialsForRequest(\n agentContext: AgentContext,\n {\n proofRecord,\n proofFormats,\n }: ProofProtocolOptions.GetCredentialsForRequestOptions<[LegacyIndyDidCommProofFormatService]>\n ): Promise<ProofProtocolOptions.GetCredentialsForRequestReturn<[LegacyIndyDidCommProofFormatService]>> {\n if (proofFormats) this.assertOnlyIndyFormat(proofFormats)\n\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const requestMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommRequestPresentationV1Message,\n role: DidCommMessageRole.Receiver,\n })\n\n const proposalMessage = await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommProposePresentationV1Message,\n role: DidCommMessageRole.Sender,\n })\n\n const requestAttachment = requestMessage.getRequestAttachmentById(INDY_PROOF_REQUEST_ATTACHMENT_ID)\n const indyProofRequest = requestMessage.indyProofRequest\n\n if (!requestAttachment || !indyProofRequest) {\n throw new CredoError(\n `Missing indy attachment in request message for presentation with thread id ${proofRecord.threadId}`\n )\n }\n\n const proposalAttachment = proposalMessage\n ? new DidCommAttachment({\n data: {\n json: JsonTransformer.toJSON(\n createRequestFromPreview({\n attributes: proposalMessage.presentationProposal?.attributes,\n predicates: proposalMessage.presentationProposal?.predicates,\n name: indyProofRequest.name,\n nonce: indyProofRequest.nonce,\n version: indyProofRequest.nonce,\n })\n ),\n },\n })\n : undefined\n\n const credentialForRequest = await this.indyProofFormat.getCredentialsForRequest(agentContext, {\n proofRecord,\n requestAttachment,\n proofFormats,\n proposalAttachment,\n })\n\n return {\n proofFormats: {\n indy: credentialForRequest,\n },\n }\n }\n\n public async selectCredentialsForRequest(\n agentContext: AgentContext,\n {\n proofRecord,\n proofFormats,\n }: ProofProtocolOptions.SelectCredentialsForRequestOptions<[LegacyIndyDidCommProofFormatService]>\n ): Promise<ProofProtocolOptions.SelectCredentialsForRequestReturn<[LegacyIndyDidCommProofFormatService]>> {\n if (proofFormats) this.assertOnlyIndyFormat(proofFormats)\n\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n const requestMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommRequestPresentationV1Message,\n role: DidCommMessageRole.Receiver,\n })\n\n const proposalMessage = await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommProposePresentationV1Message,\n role: DidCommMessageRole.Sender,\n })\n\n const requestAttachment = requestMessage.getRequestAttachmentById(INDY_PROOF_REQUEST_ATTACHMENT_ID)\n const indyProofRequest = requestMessage.indyProofRequest\n\n if (!requestAttachment || !indyProofRequest) {\n throw new CredoError(\n `Missing indy attachment in request message for presentation with thread id ${proofRecord.threadId}`\n )\n }\n\n const proposalAttachment = proposalMessage\n ? new DidCommAttachment({\n data: {\n json: JsonTransformer.toJSON(\n createRequestFromPreview({\n attributes: proposalMessage.presentationProposal?.attributes,\n predicates: proposalMessage.presentationProposal?.predicates,\n name: indyProofRequest.name,\n nonce: indyProofRequest.nonce,\n version: indyProofRequest.nonce,\n })\n ),\n },\n })\n : undefined\n\n const selectedCredentials = await this.indyProofFormat.selectCredentialsForRequest(agentContext, {\n proofFormats,\n proofRecord,\n requestAttachment,\n proposalAttachment,\n })\n\n return {\n proofFormats: {\n indy: selectedCredentials,\n },\n }\n }\n\n public async processPresentation(\n messageContext: DidCommInboundMessageContext<DidCommPresentationV1Message>\n ): Promise<DidCommProofExchangeRecord> {\n const { message: presentationMessage, connection, agentContext } = messageContext\n\n agentContext.config.logger.debug(`Processing presentation with message id ${presentationMessage.id}`)\n\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // TODO: with this method, we should update the credential protocol to use the ConnectionApi, so it\n // only depends on the public api, rather than the internal API (this helps with breaking changes)\n const connectionService = agentContext.dependencyManager.resolve(DidCommConnectionService)\n\n const proofRecord = await this.getByProperties(agentContext, {\n threadId: presentationMessage.threadId,\n role: DidCommProofRole.Verifier,\n })\n\n const proposalMessage = await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommProposePresentationV1Message,\n role: DidCommMessageRole.Receiver,\n })\n\n const requestMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommRequestPresentationV1Message,\n role: DidCommMessageRole.Sender,\n })\n\n // Assert\n proofRecord.assertState(DidCommProofState.RequestSent)\n proofRecord.assertProtocolVersion('v1')\n await connectionService.assertConnectionOrOutOfBandExchange(messageContext, {\n lastReceivedMessage: proposalMessage,\n lastSentMessage: requestMessage,\n expectedConnectionId: proofRecord.connectionId,\n })\n\n // This makes sure that the sender of the incoming message is authorized to do so.\n if (!proofRecord.connectionId) {\n await connectionService.matchIncomingMessageToRequestMessageInOutOfBandExchange(messageContext, {\n expectedConnectionId: proofRecord.connectionId,\n })\n\n proofRecord.connectionId = connection?.id\n }\n\n const presentationAttachment = presentationMessage.getPresentationAttachmentById(INDY_PROOF_ATTACHMENT_ID)\n if (!presentationAttachment) {\n proofRecord.errorMessage = 'Missing indy proof attachment'\n await this.updateState(agentContext, proofRecord, DidCommProofState.Abandoned)\n throw new DidCommPresentationV1ProblemReportError(proofRecord.errorMessage, {\n problemCode: DidCommPresentationProblemReportReason.Abandoned,\n })\n }\n\n const requestAttachment = requestMessage.getRequestAttachmentById(INDY_PROOF_REQUEST_ATTACHMENT_ID)\n if (!requestAttachment) {\n proofRecord.errorMessage = 'Missing indy proof request attachment'\n await this.updateState(agentContext, proofRecord, DidCommProofState.Abandoned)\n throw new DidCommPresentationV1ProblemReportError(proofRecord.errorMessage, {\n problemCode: DidCommPresentationProblemReportReason.Abandoned,\n })\n }\n\n await didCommMessageRepository.saveAgentMessage(agentContext, {\n agentMessage: presentationMessage,\n associatedRecordId: proofRecord.id,\n role: DidCommMessageRole.Receiver,\n })\n\n let isValid: boolean\n try {\n isValid = await this.indyProofFormat.processPresentation(agentContext, {\n proofRecord,\n attachment: presentationAttachment,\n requestAttachment,\n })\n } catch (error) {\n proofRecord.errorMessage = error.message ?? 'Error verifying proof on presentation'\n proofRecord.isVerified = false\n await this.updateState(agentContext, proofRecord, DidCommProofState.Abandoned)\n throw new DidCommPresentationV1ProblemReportError('Error verifying proof on presentation', {\n problemCode: DidCommPresentationProblemReportReason.Abandoned,\n })\n }\n\n if (!isValid) {\n proofRecord.errorMessage = 'Invalid proof'\n proofRecord.isVerified = false\n await this.updateState(agentContext, proofRecord, DidCommProofState.Abandoned)\n throw new DidCommPresentationV1ProblemReportError('Invalid proof', {\n problemCode: DidCommPresentationProblemReportReason.Abandoned,\n })\n }\n\n // Update record\n proofRecord.isVerified = isValid\n await this.updateState(agentContext, proofRecord, DidCommProofState.PresentationReceived)\n\n return proofRecord\n }\n\n public async acceptPresentation(\n agentContext: AgentContext,\n { proofRecord }: ProofProtocolOptions.AcceptPresentationOptions\n ): Promise<ProofProtocolOptions.ProofProtocolMsgReturnType<DidCommPresentationV1AckMessage>> {\n agentContext.config.logger.debug(`Creating presentation ack for proof record with id ${proofRecord.id}`)\n\n // Assert\n proofRecord.assertProtocolVersion('v1')\n proofRecord.assertState(DidCommProofState.PresentationReceived)\n\n // Create message\n const ackMessage = new DidCommPresentationV1AckMessage({\n status: AckStatus.OK,\n threadId: proofRecord.threadId,\n })\n\n ackMessage.setThread({\n threadId: proofRecord.threadId,\n parentThreadId: proofRecord.parentThreadId,\n })\n\n // Update record\n await this.updateState(agentContext, proofRecord, DidCommProofState.Done)\n\n return { message: ackMessage, proofRecord }\n }\n\n public async processAck(\n messageContext: DidCommInboundMessageContext<DidCommPresentationV1AckMessage>\n ): Promise<DidCommProofExchangeRecord> {\n const { message: presentationAckMessage, connection, agentContext } = messageContext\n\n agentContext.config.logger.debug(`Processing presentation ack with message id ${presentationAckMessage.id}`)\n\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n\n // TODO: with this method, we should update the credential protocol to use the ConnectionApi, so it\n // only depends on the public api, rather than the internal API (this helps with breaking changes)\n const connectionService = agentContext.dependencyManager.resolve(DidCommConnectionService)\n\n const proofRecord = await this.getByProperties(agentContext, {\n threadId: presentationAckMessage.threadId,\n role: DidCommProofRole.Prover,\n connectionId: connection?.id,\n })\n\n const lastReceivedMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommRequestPresentationV1Message,\n role: DidCommMessageRole.Receiver,\n })\n\n const lastSentMessage = await didCommMessageRepository.getAgentMessage(agentContext, {\n associatedRecordId: proofRecord.id,\n messageClass: DidCommPresentationV1Message,\n role: DidCommMessageRole.Sender,\n })\n\n // Assert\n proofRecord.assertProtocolVersion('v1')\n proofRecord.assertState(DidCommProofState.PresentationSent)\n await connectionService.assertConnectionOrOutOfBandExchange(messageContext, {\n lastReceivedMessage,\n lastSentMessage,\n expectedConnectionId: proofRecord.connectionId,\n })\n\n // Update record\n await this.updateState(agentContext, proofRecord, DidCommProofState.Done)\n\n return proofRecord\n }\n\n public async createProblemReport(\n _agentContext: AgentContext,\n { proofRecord, description }: ProofProtocolOptions.CreateProofProblemReportOptions\n ): Promise<ProofProtocolOptions.ProofProtocolMsgReturnType<DidCommProblemReportMessage>> {\n const message = new DidCommPresentationV1ProblemReportMessage({\n description: {\n code: DidCommPresentationProblemReportReason.Abandoned,\n en: description,\n },\n })\n\n message.setThread({\n threadId: proofRecord.threadId,\n parentThreadId: proofRecord.parentThreadId,\n })\n\n return {\n proofRecord,\n message,\n }\n }\n\n public async shouldAutoRespondToProposal(\n agentContext: AgentContext,\n options: {\n proofRecord: DidCommProofExchangeRecord\n proposalMessage: DidCommProposePresentationV1Message\n }\n ): Promise<boolean> {\n const { proofRecord, proposalMessage } = options\n\n const proofsModuleConfig = agentContext.dependencyManager.resolve(DidCommProofsModuleConfig)\n\n const autoAccept = composeProofAutoAccept(proofRecord.autoAcceptProof, proofsModuleConfig.autoAcceptProofs)\n\n // Handle always / never cases\n if (autoAccept === DidCommAutoAcceptProof.Always) return true\n if (autoAccept === DidCommAutoAcceptProof.Never) return false\n\n // We are in the ContentApproved case. We need to make sure we've sent a request, and it matches the proposal\n const requestMessage = await this.findRequestMessage(agentContext, proofRecord.id)\n const requestAttachment = requestMessage?.getRequestAttachmentById(INDY_PROOF_REQUEST_ATTACHMENT_ID)\n if (!requestAttachment) return false\n\n const anonCredsHolderService = agentContext.resolve<AnonCredsHolderService>(AnonCredsHolderServiceSymbol)\n\n const rfc0592Proposal = JsonTransformer.toJSON(\n createRequestFromPreview({\n name: 'Proof Request',\n nonce: anonCredsHolderService.generateNonce(agentContext),\n version: '1.0',\n attributes: proposalMessage.presentationProposal.attributes,\n predicates: proposalMessage.presentationProposal.predicates,\n })\n )\n\n return this.indyProofFormat.shouldAutoRespondToProposal(agentContext, {\n proofRecord,\n proposalAttachment: new DidCommAttachment({\n data: {\n json: rfc0592Proposal,\n },\n }),\n requestAttachment,\n })\n }\n\n public async shouldAutoRespondToRequest(\n agentContext: AgentContext,\n options: {\n proofRecord: DidCommProofExchangeRecord\n requestMessage: DidCommRequestPresentationV1Message\n }\n ): Promise<boolean> {\n const { proofRecord, requestMessage } = options\n\n const proofsModuleConfig = agentContext.dependencyManager.resolve(DidCommProofsModuleConfig)\n\n const autoAccept = composeProofAutoAccept(proofRecord.autoAcceptProof, proofsModuleConfig.autoAcceptProofs)\n\n // Handle always / never cases\n if (autoAccept === DidCommAutoAcceptProof.Always) return true\n if (autoAccept === DidCommAutoAcceptProof.Never) return false\n\n const requestAttachment = requestMessage.getRequestAttachmentById(INDY_PROOF_REQUEST_ATTACHMENT_ID)\n if (!requestAttachment) return false\n\n // We are in the ContentApproved case. We need to make sure we've sent a proposal, and it matches the request\n const proposalMessage = await this.findProposalMessage(agentContext, proofRecord.id)\n if (!proposalMessage) return false\n\n const anonCredsHolderService = agentContext.resolve<AnonCredsHolderService>(AnonCredsHolderServiceSymbol)\n\n const rfc0592Proposal = createRequestFromPreview({\n name: 'Proof Request',\n nonce: anonCredsHolderService.generateNonce(agentContext),\n version: '1.0',\n attributes: proposalMessage.presentationProposal.attributes,\n predicates: proposalMessage.presentationProposal.predicates,\n })\n\n return this.indyProofFormat.shouldAutoRespondToRequest(agentContext, {\n proofRecord,\n proposalAttachment: new DidCommAttachment({\n data: {\n base64: JsonEncoder.toBase64(rfc0592Proposal),\n },\n }),\n requestAttachment,\n })\n }\n\n public async shouldAutoRespondToPresentation(\n agentContext: AgentContext,\n options: {\n proofRecord: DidCommProofExchangeRecord\n presentationMessage: DidCommPresentationV1Message\n }\n ): Promise<boolean> {\n const { proofRecord, presentationMessage } = options\n\n const proofsModuleConfig = agentContext.dependencyManager.resolve(DidCommProofsModuleConfig)\n\n const autoAccept = composeProofAutoAccept(proofRecord.autoAcceptProof, proofsModuleConfig.autoAcceptProofs)\n\n // Handle always / never cases\n if (autoAccept === DidCommAutoAcceptProof.Always) return true\n if (autoAccept === DidCommAutoAcceptProof.Never) return false\n\n const presentationAttachment = presentationMessage.getPresentationAttachmentById(INDY_PROOF_ATTACHMENT_ID)\n if (!presentationAttachment) return false\n\n // We are in the ContentApproved case. We need to make sure we've sent a request, and it matches the presentation\n const requestMessage = await this.findRequestMessage(agentContext, proofRecord.id)\n const requestAttachment = requestMessage?.getRequestAttachmentById(INDY_PROOF_REQUEST_ATTACHMENT_ID)\n if (!requestAttachment) return false\n\n // We are in the ContentApproved case. We need to make sure we've sent a proposal, and it matches the request\n const proposalMessage = await this.findProposalMessage(agentContext, proofRecord.id)\n\n const anonCredsHolderService = agentContext.resolve<AnonCredsHolderService>(AnonCredsHolderServiceSymbol)\n\n const rfc0592Proposal = proposalMessage\n ? JsonTransformer.toJSON(\n createRequestFromPreview({\n name: 'Proof Request',\n nonce: await anonCredsHolderService.generateNonce(agentContext),\n version: '1.0',\n attributes: proposalMessage.presentationProposal.attributes,\n predicates: proposalMessage.presentationProposal.predicates,\n })\n )\n : undefined\n\n return this.indyProofFormat.shouldAutoRespondToPresentation(agentContext, {\n proofRecord,\n requestAttachment,\n presentationAttachment,\n proposalAttachment: new DidCommAttachment({\n data: {\n json: rfc0592Proposal,\n },\n }),\n })\n }\n\n public async findProposalMessage(\n agentContext: AgentContext,\n proofExchangeRecordId: string\n ): Promise<DidCommProposePresentationV1Message | null> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n return await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofExchangeRecordId,\n messageClass: DidCommProposePresentationV1Message,\n })\n }\n\n public async findRequestMessage(\n agentContext: AgentContext,\n proofExchangeRecordId: string\n ): Promise<DidCommRequestPresentationV1Message | null> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n return await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofExchangeRecordId,\n messageClass: DidCommRequestPresentationV1Message,\n })\n }\n\n public async findPresentationMessage(\n agentContext: AgentContext,\n proofExchangeRecordId: string\n ): Promise<DidCommPresentationV1Message | null> {\n const didCommMessageRepository = agentContext.dependencyManager.resolve(DidCommMessageRepository)\n return await didCommMessageRepository.findAgentMessage(agentContext, {\n associatedRecordId: proofExchangeRecordId,\n messageClass: DidCommPresentationV1Message,\n })\n }\n\n public async getFormatData(\n agentContext: AgentContext,\n proofExchangeRecordId: string\n ): Promise<GetProofFormatDataReturn<DidCommProofFormat[]>> {\n const anonCredsHolderService = agentContext.resolve<AnonCredsHolderService>(AnonCredsHolderServiceSymbol)\n\n // TODO: we could looking at fetching all record using a single query and then filtering based on the type of the message.\n const [proposalMessage, requestMessage, presentationMessage] = await Promise.all([\n this.findProposalMessage(agentContext, proofExchangeRecordId),\n this.findRequestMessage(agentContext, proofExchangeRecordId),\n this.findPresentationMessage(agentContext, proofExchangeRecordId),\n ])\n\n let indyProposeProof: AnonCredsProofRequest | undefined\n const indyRequestProof = requestMessage?.indyProofRequest ?? undefined\n const indyPresentProof = presentationMessage?.indyProof ?? undefined\n\n if (proposalMessage && indyRequestProof) {\n indyProposeProof = createRequestFromPreview({\n name: indyRequestProof.name,\n version: indyRequestProof.version,\n nonce: indyRequestProof.nonce,\n attributes: proposalMessage.presentationProposal.attributes,\n predicates: proposalMessage.presentationProposal.predicates,\n })\n } else if (proposalMessage) {\n indyProposeProof = createRequestFromPreview({\n name: 'Proof Request',\n version: '1.0',\n nonce: anonCredsHolderService.generateNonce(agentContext),\n attributes: proposalMessage.presentationProposal.attributes,\n predicates: proposalMessage.presentationProposal.predicates,\n })\n }\n\n return {\n proposal: proposalMessage\n ? {\n indy: indyProposeProof,\n }\n : undefined,\n request: requestMessage\n ? {\n indy: indyRequestProof,\n }\n : undefined,\n presentation: presentationMessage\n ? {\n indy: indyPresentProof,\n }\n : undefined,\n }\n }\n\n private assertOnlyIndyFormat(proofFormats: Record<string, unknown>) {\n const formatKeys = Object.keys(proofFormats)\n\n // It's fine to not have any formats in some cases, if indy is required the method that calls this should check for this\n if (formatKeys.length === 0) return\n\n if (formatKeys.length !== 1 || !formatKeys.includes('indy')) {\n throw new CredoError('Only indy proof format is supported for present proof v1 protocol')\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwDA,IAAa,yBAAb,cACU,yBAEV;CAGE,AAAO,YAAY,EAAE,mBAAiD;AACpE,SAAO;OASO,UAAU;AANxB,OAAK,kBAAkB;;;;;CAWzB,AAAO,SAAS,wBAAuD,iBAAyC;AAE9G,yBAAuB,wBAAwB;GAC7C,IAAI,oCAAoC,KAAK;GAC7C,IAAI,oCAAoC,KAAK;GAC7C,IAAI,6BAA6B,KAAK;GACtC,IAAI,gCAAgC,KAAK;GACzC,IAAI,0CAA0C,KAAK;GACpD,CAAC;AAGF,kBAAgB,SACd,IAAI,gBAAgB;GAClB,IAAI;GACJ,OAAO,CAAC,UAAU,WAAW;GAC9B,CAAC,CACH;;CAGH,MAAa,eACX,cACA,EACE,cACA,kBACA,SACA,gBACA,mBAE6F;AAC/F,OAAK,qBAAqB,aAAa;EAEvC,MAAM,kBAAkB,aAAa,kBAAkB,QAAQ,+BAA+B;EAC9F,MAAM,2BAA2B,aAAa,kBAAkB,QAAQ,yBAAyB;AAEjG,MAAI,CAAC,aAAa,KAChB,OAAM,IAAI,WAAW,wDAAwD;EAG/E,MAAM,uBAAuB,IAAI,6BAA6B;GAC5D,YAAY,aAAa,MAAM;GAC/B,YAAY,aAAa,MAAM;GAChC,CAAC;AAGF,mBAAiB,aAAa,qBAAqB;EAGnD,MAAM,UAAU,IAAI,oCAAoC;GACtD;GACA;GACD,CAAC;AAEF,MAAI,eACF,SAAQ,UAAU,EAChB,gBACD,CAAC;EAGJ,MAAM,cAAc,IAAI,2BAA2B;GACjD,cAAc,kBAAkB;GAChC,UAAU,QAAQ;GAClB,gBAAgB,QAAQ,QAAQ;GAChC,OAAO,kBAAkB;GACzB,MAAM,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,uBAAuB,MAAM,QAAQ,IAAI;GAC/E,KAAK,oBAAoB,cAAc,sBAAsB;GAC7D,KAAK,mBAAmB,cAAc,sBAAsB;GAC5D,KAAK,wBAAwB,cAAc,sBAAsB;GAClE,CAAC;EAEF,IAAIC;EACJ,MAAM,mBAAmB,gBAAgB,oBAAoB;EAC7D,MAAM,mBAAmB,qBAAqB,aAAa;AAE3D,MAAI,mBAAmB,iBACrB,oBAAmB,yBAAyB;GAC1C,MAAM,iBAAiB;GACvB,SAAS,iBAAiB;GAC1B,OAAO,iBAAiB;GACxB,YAAY,gBAAgB,qBAAqB;GACjD,YAAY,gBAAgB,qBAAqB;GAClD,CAAC;WACO,gBACT,oBAAmB,yBAAyB;GAC1C,MAAM;GACN,SAAS;GACT,OAAO,uBAAuB,cAAc,aAAa;GACzD,YAAY,gBAAgB,qBAAqB;GACjD,YAAY,gBAAgB,qBAAqB;GAClD,CAAC;AAGJ,SAAO;GACL,UAAU,kBACN,EACE,MAAM,kBACP,GACD;GACJ,SAAS,iBACL,EACE,MAAM,kBACP,GACD;GACJ,cAAc,sBACV,EACE,MAAM,kBACP,GACD;GACL;;CAGH,AAAQ,qBAAqB,cAAuC;EAClE,MAAM,aAAa,OAAO,KAAK,aAAa;AAG5C,MAAI,WAAW,WAAW,EAAG;AAE7B,MAAI,WAAW,WAAW,KAAK,CAAC,WAAW,SAAS,OAAO,CACzD,OAAM,IAAI,WAAW,oEAAoE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DidCommPresentationV1ProblemReportMessage } from "../messages/DidCommPresentationV1ProblemReportMessage.mjs";
|
|
2
|
+
import "../messages/index.mjs";
|
|
3
|
+
import { DidCommPresentationProblemReportReason, DidCommProblemReportError, DidCommProblemReportErrorOptions } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.d.ts
|
|
6
|
+
interface DidCommPresentationV1ProblemReportErrorOptions extends DidCommProblemReportErrorOptions {
|
|
7
|
+
problemCode: DidCommPresentationProblemReportReason;
|
|
8
|
+
}
|
|
9
|
+
declare class DidCommPresentationV1ProblemReportError extends DidCommProblemReportError {
|
|
10
|
+
message: string;
|
|
11
|
+
problemReport: DidCommPresentationV1ProblemReportMessage;
|
|
12
|
+
constructor(message: string, {
|
|
13
|
+
problemCode
|
|
14
|
+
}: DidCommPresentationV1ProblemReportErrorOptions);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { DidCommPresentationV1ProblemReportError };
|
|
18
|
+
//# sourceMappingURL=DidCommPresentationV1ProblemReportError.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1ProblemReportError.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.ts"],"sourcesContent":[],"mappings":";;;;;UAMU,8CAAA,SAAuD;eAClD;AAHwD;AAM1D,cAAA,uCAAA,SAAgD,yBAAA,CAAR;EAC7B,OAAA,EAAA,MAAA;EAIlB,aAAA,EAJkB,yCAIlB;EAAe,WAAA,CAAA,OAAA,EAAA,MAAA,EAAA;IAAA;EAAA,CAAA,EAAA,8CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DidCommPresentationV1ProblemReportMessage } from "../messages/DidCommPresentationV1ProblemReportMessage.mjs";
|
|
2
|
+
import "../messages/index.mjs";
|
|
3
|
+
import { DidCommProblemReportError } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.ts
|
|
6
|
+
var DidCommPresentationV1ProblemReportError = class extends DidCommProblemReportError {
|
|
7
|
+
constructor(message, { problemCode }) {
|
|
8
|
+
super(message, { problemCode });
|
|
9
|
+
this.message = message;
|
|
10
|
+
this.problemReport = new DidCommPresentationV1ProblemReportMessage({ description: {
|
|
11
|
+
en: message,
|
|
12
|
+
code: problemCode
|
|
13
|
+
} });
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DidCommPresentationV1ProblemReportError };
|
|
19
|
+
//# sourceMappingURL=DidCommPresentationV1ProblemReportError.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1ProblemReportError.mjs","names":["message: string"],"sources":["../../../../../src/protocols/proofs/v1/errors/DidCommPresentationV1ProblemReportError.ts"],"sourcesContent":["import type { DidCommPresentationProblemReportReason, DidCommProblemReportErrorOptions } from '@credo-ts/didcomm'\n\nimport { DidCommProblemReportError } from '@credo-ts/didcomm'\n\nimport { DidCommPresentationV1ProblemReportMessage } from '../messages'\n\ninterface DidCommPresentationV1ProblemReportErrorOptions extends DidCommProblemReportErrorOptions {\n problemCode: DidCommPresentationProblemReportReason\n}\n\nexport class DidCommPresentationV1ProblemReportError extends DidCommProblemReportError {\n public problemReport: DidCommPresentationV1ProblemReportMessage\n\n public constructor(\n public message: string,\n { problemCode }: DidCommPresentationV1ProblemReportErrorOptions\n ) {\n super(message, { problemCode })\n this.problemReport = new DidCommPresentationV1ProblemReportMessage({\n description: {\n en: message,\n code: problemCode,\n },\n })\n }\n}\n"],"mappings":";;;;;AAUA,IAAa,0CAAb,cAA6D,0BAA0B;CAGrF,AAAO,YACL,AAAOA,SACP,EAAE,eACF;AACA,QAAM,SAAS,EAAE,aAAa,CAAC;EAHxB;AAIP,OAAK,gBAAgB,IAAI,0CAA0C,EACjE,aAAa;GACX,IAAI;GACJ,MAAM;GACP,EACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DidCommPresentationV1ProblemReportError } from "./DidCommPresentationV1ProblemReportError.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DidCommPresentationV1ProblemReportError } from "./DidCommPresentationV1ProblemReportError.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DidCommPresentationV1AckMessage } from "../messages/DidCommPresentationV1AckMessage.mjs";
|
|
2
|
+
import "../messages/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/protocols/proofs/v1/handlers/DidCommPresentationV1AckHandler.ts
|
|
5
|
+
var DidCommPresentationV1AckHandler = class {
|
|
6
|
+
constructor(proofProtocol) {
|
|
7
|
+
this.supportedMessages = [DidCommPresentationV1AckMessage];
|
|
8
|
+
this.proofProtocol = proofProtocol;
|
|
9
|
+
}
|
|
10
|
+
async handle(messageContext) {
|
|
11
|
+
await this.proofProtocol.processAck(messageContext);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DidCommPresentationV1AckHandler };
|
|
17
|
+
//# sourceMappingURL=DidCommPresentationV1AckHandler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1AckHandler.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/handlers/DidCommPresentationV1AckHandler.ts"],"sourcesContent":["import type { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from '@credo-ts/didcomm'\nimport type { DidCommProofV1Protocol } from '../DidCommProofV1Protocol'\n\nimport { DidCommPresentationV1AckMessage } from '../messages'\n\nexport class DidCommPresentationV1AckHandler implements DidCommMessageHandler {\n private proofProtocol: DidCommProofV1Protocol\n public supportedMessages = [DidCommPresentationV1AckMessage]\n\n public constructor(proofProtocol: DidCommProofV1Protocol) {\n this.proofProtocol = proofProtocol\n }\n\n public async handle(messageContext: DidCommMessageHandlerInboundMessage<DidCommPresentationV1AckHandler>) {\n await this.proofProtocol.processAck(messageContext)\n\n return undefined\n }\n}\n"],"mappings":";;;;AAKA,IAAa,kCAAb,MAA8E;CAI5E,AAAO,YAAY,eAAuC;OAFnD,oBAAoB,CAAC,gCAAgC;AAG1D,OAAK,gBAAgB;;CAGvB,MAAa,OAAO,gBAAsF;AACxG,QAAM,KAAK,cAAc,WAAW,eAAe"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DidCommPresentationV1Message } from "../messages/DidCommPresentationV1Message.mjs";
|
|
2
|
+
import "../messages/index.mjs";
|
|
3
|
+
import { CredoError } from "@credo-ts/core";
|
|
4
|
+
import { getOutboundDidCommMessageContext } from "@credo-ts/didcomm";
|
|
5
|
+
|
|
6
|
+
//#region src/protocols/proofs/v1/handlers/DidCommPresentationV1Handler.ts
|
|
7
|
+
var DidCommPresentationV1Handler = class {
|
|
8
|
+
constructor(proofProtocol) {
|
|
9
|
+
this.supportedMessages = [DidCommPresentationV1Message];
|
|
10
|
+
this.proofProtocol = proofProtocol;
|
|
11
|
+
}
|
|
12
|
+
async handle(messageContext) {
|
|
13
|
+
const proofRecord = await this.proofProtocol.processPresentation(messageContext);
|
|
14
|
+
if (await this.proofProtocol.shouldAutoRespondToPresentation(messageContext.agentContext, {
|
|
15
|
+
presentationMessage: messageContext.message,
|
|
16
|
+
proofRecord
|
|
17
|
+
})) return await this.acceptPresentation(proofRecord, messageContext);
|
|
18
|
+
}
|
|
19
|
+
async acceptPresentation(proofRecord, messageContext) {
|
|
20
|
+
messageContext.agentContext.config.logger.info("Automatically sending acknowledgement with autoAccept");
|
|
21
|
+
const requestMessage = await this.proofProtocol.findRequestMessage(messageContext.agentContext, proofRecord.id);
|
|
22
|
+
if (!requestMessage) throw new CredoError(`No request message found for proof record with id '${proofRecord.id}'`);
|
|
23
|
+
const { message } = await this.proofProtocol.acceptPresentation(messageContext.agentContext, { proofRecord });
|
|
24
|
+
return getOutboundDidCommMessageContext(messageContext.agentContext, {
|
|
25
|
+
message,
|
|
26
|
+
lastReceivedMessage: messageContext.message,
|
|
27
|
+
lastSentMessage: requestMessage,
|
|
28
|
+
associatedRecord: proofRecord,
|
|
29
|
+
connectionRecord: messageContext.connection
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { DidCommPresentationV1Handler };
|
|
36
|
+
//# sourceMappingURL=DidCommPresentationV1Handler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1Handler.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/handlers/DidCommPresentationV1Handler.ts"],"sourcesContent":["import { CredoError } from '@credo-ts/core'\nimport type {\n DidCommMessageHandler,\n DidCommMessageHandlerInboundMessage,\n DidCommProofExchangeRecord,\n} from '@credo-ts/didcomm'\nimport { getOutboundDidCommMessageContext } from '@credo-ts/didcomm'\nimport type { DidCommProofV1Protocol } from '../DidCommProofV1Protocol'\n\nimport { DidCommPresentationV1Message } from '../messages'\n\nexport class DidCommPresentationV1Handler implements DidCommMessageHandler {\n private proofProtocol: DidCommProofV1Protocol\n public supportedMessages = [DidCommPresentationV1Message]\n\n public constructor(proofProtocol: DidCommProofV1Protocol) {\n this.proofProtocol = proofProtocol\n }\n\n public async handle(messageContext: DidCommMessageHandlerInboundMessage<DidCommPresentationV1Handler>) {\n const proofRecord = await this.proofProtocol.processPresentation(messageContext)\n\n const shouldAutoRespond = await this.proofProtocol.shouldAutoRespondToPresentation(messageContext.agentContext, {\n presentationMessage: messageContext.message,\n proofRecord,\n })\n\n if (shouldAutoRespond) {\n return await this.acceptPresentation(proofRecord, messageContext)\n }\n }\n\n private async acceptPresentation(\n proofRecord: DidCommProofExchangeRecord,\n messageContext: DidCommMessageHandlerInboundMessage<DidCommPresentationV1Handler>\n ) {\n messageContext.agentContext.config.logger.info('Automatically sending acknowledgement with autoAccept')\n\n const requestMessage = await this.proofProtocol.findRequestMessage(messageContext.agentContext, proofRecord.id)\n if (!requestMessage) {\n throw new CredoError(`No request message found for proof record with id '${proofRecord.id}'`)\n }\n\n const { message } = await this.proofProtocol.acceptPresentation(messageContext.agentContext, {\n proofRecord,\n })\n\n return getOutboundDidCommMessageContext(messageContext.agentContext, {\n message,\n lastReceivedMessage: messageContext.message,\n lastSentMessage: requestMessage,\n associatedRecord: proofRecord,\n connectionRecord: messageContext.connection,\n })\n }\n}\n"],"mappings":";;;;;;AAWA,IAAa,+BAAb,MAA2E;CAIzE,AAAO,YAAY,eAAuC;OAFnD,oBAAoB,CAAC,6BAA6B;AAGvD,OAAK,gBAAgB;;CAGvB,MAAa,OAAO,gBAAmF;EACrG,MAAM,cAAc,MAAM,KAAK,cAAc,oBAAoB,eAAe;AAOhF,MAL0B,MAAM,KAAK,cAAc,gCAAgC,eAAe,cAAc;GAC9G,qBAAqB,eAAe;GACpC;GACD,CAAC,CAGA,QAAO,MAAM,KAAK,mBAAmB,aAAa,eAAe;;CAIrE,MAAc,mBACZ,aACA,gBACA;AACA,iBAAe,aAAa,OAAO,OAAO,KAAK,wDAAwD;EAEvG,MAAM,iBAAiB,MAAM,KAAK,cAAc,mBAAmB,eAAe,cAAc,YAAY,GAAG;AAC/G,MAAI,CAAC,eACH,OAAM,IAAI,WAAW,sDAAsD,YAAY,GAAG,GAAG;EAG/F,MAAM,EAAE,YAAY,MAAM,KAAK,cAAc,mBAAmB,eAAe,cAAc,EAC3F,aACD,CAAC;AAEF,SAAO,iCAAiC,eAAe,cAAc;GACnE;GACA,qBAAqB,eAAe;GACpC,iBAAiB;GACjB,kBAAkB;GAClB,kBAAkB,eAAe;GAClC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DidCommPresentationV1ProblemReportMessage } from "../messages/DidCommPresentationV1ProblemReportMessage.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/protocols/proofs/v1/handlers/DidCommPresentationV1ProblemReportHandler.ts
|
|
4
|
+
var DidCommPresentationV1ProblemReportHandler = class {
|
|
5
|
+
constructor(proofProtocol) {
|
|
6
|
+
this.supportedMessages = [DidCommPresentationV1ProblemReportMessage];
|
|
7
|
+
this.proofProtocol = proofProtocol;
|
|
8
|
+
}
|
|
9
|
+
async handle(messageContext) {
|
|
10
|
+
await this.proofProtocol.processProblemReport(messageContext);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { DidCommPresentationV1ProblemReportHandler };
|
|
16
|
+
//# sourceMappingURL=DidCommPresentationV1ProblemReportHandler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1ProblemReportHandler.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/handlers/DidCommPresentationV1ProblemReportHandler.ts"],"sourcesContent":["import type { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from '@credo-ts/didcomm'\nimport type { DidCommProofV1Protocol } from '../DidCommProofV1Protocol'\n\nimport { DidCommPresentationV1ProblemReportMessage } from '../messages/DidCommPresentationV1ProblemReportMessage'\n\nexport class DidCommPresentationV1ProblemReportHandler implements DidCommMessageHandler {\n private proofProtocol: DidCommProofV1Protocol\n public supportedMessages = [DidCommPresentationV1ProblemReportMessage]\n\n public constructor(proofProtocol: DidCommProofV1Protocol) {\n this.proofProtocol = proofProtocol\n }\n\n public async handle(messageContext: DidCommMessageHandlerInboundMessage<DidCommPresentationV1ProblemReportHandler>) {\n await this.proofProtocol.processProblemReport(messageContext)\n\n return undefined\n }\n}\n"],"mappings":";;;AAKA,IAAa,4CAAb,MAAwF;CAItF,AAAO,YAAY,eAAuC;OAFnD,oBAAoB,CAAC,0CAA0C;AAGpE,OAAK,gBAAgB;;CAGvB,MAAa,OAAO,gBAAgG;AAClH,QAAM,KAAK,cAAc,qBAAqB,eAAe"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DidCommProposePresentationV1Message } from "../messages/DidCommProposePresentationV1Message.mjs";
|
|
2
|
+
import "../messages/index.mjs";
|
|
3
|
+
import { DidCommOutboundMessageContext } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocols/proofs/v1/handlers/DidCommProposePresentationV1Handler.ts
|
|
6
|
+
var DidCommProposePresentationV1Handler = class {
|
|
7
|
+
constructor(proofProtocol) {
|
|
8
|
+
this.supportedMessages = [DidCommProposePresentationV1Message];
|
|
9
|
+
this.proofProtocol = proofProtocol;
|
|
10
|
+
}
|
|
11
|
+
async handle(messageContext) {
|
|
12
|
+
const proofRecord = await this.proofProtocol.processProposal(messageContext);
|
|
13
|
+
if (await this.proofProtocol.shouldAutoRespondToProposal(messageContext.agentContext, {
|
|
14
|
+
proofRecord,
|
|
15
|
+
proposalMessage: messageContext.message
|
|
16
|
+
})) return await this.acceptProposal(proofRecord, messageContext);
|
|
17
|
+
}
|
|
18
|
+
async acceptProposal(proofRecord, messageContext) {
|
|
19
|
+
messageContext.agentContext.config.logger.info("Automatically sending request with autoAccept");
|
|
20
|
+
if (!messageContext.connection) {
|
|
21
|
+
messageContext.agentContext.config.logger.error("No connection on the messageContext, aborting auto accept");
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const { message } = await this.proofProtocol.acceptProposal(messageContext.agentContext, { proofRecord });
|
|
25
|
+
return new DidCommOutboundMessageContext(message, {
|
|
26
|
+
agentContext: messageContext.agentContext,
|
|
27
|
+
connection: messageContext.connection,
|
|
28
|
+
associatedRecord: proofRecord
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { DidCommProposePresentationV1Handler };
|
|
35
|
+
//# sourceMappingURL=DidCommProposePresentationV1Handler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommProposePresentationV1Handler.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/handlers/DidCommProposePresentationV1Handler.ts"],"sourcesContent":["import type {\n DidCommMessageHandler,\n DidCommMessageHandlerInboundMessage,\n DidCommProofExchangeRecord,\n} from '@credo-ts/didcomm'\nimport { DidCommOutboundMessageContext } from '@credo-ts/didcomm'\nimport type { DidCommProofV1Protocol } from '../DidCommProofV1Protocol'\n\nimport { DidCommProposePresentationV1Message } from '../messages'\n\nexport class DidCommProposePresentationV1Handler implements DidCommMessageHandler {\n private proofProtocol: DidCommProofV1Protocol\n public supportedMessages = [DidCommProposePresentationV1Message]\n\n public constructor(proofProtocol: DidCommProofV1Protocol) {\n this.proofProtocol = proofProtocol\n }\n\n public async handle(messageContext: DidCommMessageHandlerInboundMessage<DidCommProposePresentationV1Handler>) {\n const proofRecord = await this.proofProtocol.processProposal(messageContext)\n\n const shouldAutoRespond = await this.proofProtocol.shouldAutoRespondToProposal(messageContext.agentContext, {\n proofRecord,\n proposalMessage: messageContext.message,\n })\n\n if (shouldAutoRespond) {\n return await this.acceptProposal(proofRecord, messageContext)\n }\n }\n\n private async acceptProposal(\n proofRecord: DidCommProofExchangeRecord,\n messageContext: DidCommMessageHandlerInboundMessage<DidCommProposePresentationV1Handler>\n ) {\n messageContext.agentContext.config.logger.info('Automatically sending request with autoAccept')\n\n if (!messageContext.connection) {\n messageContext.agentContext.config.logger.error('No connection on the messageContext, aborting auto accept')\n return\n }\n\n const { message } = await this.proofProtocol.acceptProposal(messageContext.agentContext, {\n proofRecord,\n })\n\n return new DidCommOutboundMessageContext(message, {\n agentContext: messageContext.agentContext,\n connection: messageContext.connection,\n associatedRecord: proofRecord,\n })\n }\n}\n"],"mappings":";;;;;AAUA,IAAa,sCAAb,MAAkF;CAIhF,AAAO,YAAY,eAAuC;OAFnD,oBAAoB,CAAC,oCAAoC;AAG9D,OAAK,gBAAgB;;CAGvB,MAAa,OAAO,gBAA0F;EAC5G,MAAM,cAAc,MAAM,KAAK,cAAc,gBAAgB,eAAe;AAO5E,MAL0B,MAAM,KAAK,cAAc,4BAA4B,eAAe,cAAc;GAC1G;GACA,iBAAiB,eAAe;GACjC,CAAC,CAGA,QAAO,MAAM,KAAK,eAAe,aAAa,eAAe;;CAIjE,MAAc,eACZ,aACA,gBACA;AACA,iBAAe,aAAa,OAAO,OAAO,KAAK,gDAAgD;AAE/F,MAAI,CAAC,eAAe,YAAY;AAC9B,kBAAe,aAAa,OAAO,OAAO,MAAM,4DAA4D;AAC5G;;EAGF,MAAM,EAAE,YAAY,MAAM,KAAK,cAAc,eAAe,eAAe,cAAc,EACvF,aACD,CAAC;AAEF,SAAO,IAAI,8BAA8B,SAAS;GAChD,cAAc,eAAe;GAC7B,YAAY,eAAe;GAC3B,kBAAkB;GACnB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DidCommRequestPresentationV1Message } from "../messages/DidCommRequestPresentationV1Message.mjs";
|
|
2
|
+
import "../messages/index.mjs";
|
|
3
|
+
import { getOutboundDidCommMessageContext } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocols/proofs/v1/handlers/DidCommRequestPresentationV1Handler.ts
|
|
6
|
+
var DidCommRequestPresentationV1Handler = class {
|
|
7
|
+
constructor(proofProtocol) {
|
|
8
|
+
this.supportedMessages = [DidCommRequestPresentationV1Message];
|
|
9
|
+
this.proofProtocol = proofProtocol;
|
|
10
|
+
}
|
|
11
|
+
async handle(messageContext) {
|
|
12
|
+
const proofRecord = await this.proofProtocol.processRequest(messageContext);
|
|
13
|
+
if (await this.proofProtocol.shouldAutoRespondToRequest(messageContext.agentContext, {
|
|
14
|
+
proofRecord,
|
|
15
|
+
requestMessage: messageContext.message
|
|
16
|
+
})) return await this.acceptRequest(proofRecord, messageContext);
|
|
17
|
+
}
|
|
18
|
+
async acceptRequest(proofRecord, messageContext) {
|
|
19
|
+
messageContext.agentContext.config.logger.info("Automatically sending presentation with autoAccept on");
|
|
20
|
+
const { message } = await this.proofProtocol.acceptRequest(messageContext.agentContext, { proofRecord });
|
|
21
|
+
return getOutboundDidCommMessageContext(messageContext.agentContext, {
|
|
22
|
+
message,
|
|
23
|
+
lastReceivedMessage: messageContext.message,
|
|
24
|
+
associatedRecord: proofRecord,
|
|
25
|
+
connectionRecord: messageContext.connection
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { DidCommRequestPresentationV1Handler };
|
|
32
|
+
//# sourceMappingURL=DidCommRequestPresentationV1Handler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommRequestPresentationV1Handler.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/handlers/DidCommRequestPresentationV1Handler.ts"],"sourcesContent":["import type {\n DidCommMessageHandler,\n DidCommMessageHandlerInboundMessage,\n DidCommProofExchangeRecord,\n} from '@credo-ts/didcomm'\nimport { getOutboundDidCommMessageContext } from '@credo-ts/didcomm'\nimport type { DidCommProofV1Protocol } from '../DidCommProofV1Protocol'\n\nimport { DidCommRequestPresentationV1Message } from '../messages'\n\nexport class DidCommRequestPresentationV1Handler implements DidCommMessageHandler {\n private proofProtocol: DidCommProofV1Protocol\n public supportedMessages = [DidCommRequestPresentationV1Message]\n\n public constructor(proofProtocol: DidCommProofV1Protocol) {\n this.proofProtocol = proofProtocol\n }\n\n public async handle(messageContext: DidCommMessageHandlerInboundMessage<DidCommRequestPresentationV1Handler>) {\n const proofRecord = await this.proofProtocol.processRequest(messageContext)\n\n const shouldAutoRespond = await this.proofProtocol.shouldAutoRespondToRequest(messageContext.agentContext, {\n proofRecord,\n requestMessage: messageContext.message,\n })\n\n if (shouldAutoRespond) {\n return await this.acceptRequest(proofRecord, messageContext)\n }\n }\n\n private async acceptRequest(\n proofRecord: DidCommProofExchangeRecord,\n messageContext: DidCommMessageHandlerInboundMessage<DidCommRequestPresentationV1Handler>\n ) {\n messageContext.agentContext.config.logger.info('Automatically sending presentation with autoAccept on')\n\n const { message } = await this.proofProtocol.acceptRequest(messageContext.agentContext, {\n proofRecord,\n })\n\n return getOutboundDidCommMessageContext(messageContext.agentContext, {\n message,\n lastReceivedMessage: messageContext.message,\n associatedRecord: proofRecord,\n connectionRecord: messageContext.connection,\n })\n }\n}\n"],"mappings":";;;;;AAUA,IAAa,sCAAb,MAAkF;CAIhF,AAAO,YAAY,eAAuC;OAFnD,oBAAoB,CAAC,oCAAoC;AAG9D,OAAK,gBAAgB;;CAGvB,MAAa,OAAO,gBAA0F;EAC5G,MAAM,cAAc,MAAM,KAAK,cAAc,eAAe,eAAe;AAO3E,MAL0B,MAAM,KAAK,cAAc,2BAA2B,eAAe,cAAc;GACzG;GACA,gBAAgB,eAAe;GAChC,CAAC,CAGA,QAAO,MAAM,KAAK,cAAc,aAAa,eAAe;;CAIhE,MAAc,cACZ,aACA,gBACA;AACA,iBAAe,aAAa,OAAO,OAAO,KAAK,wDAAwD;EAEvG,MAAM,EAAE,YAAY,MAAM,KAAK,cAAc,cAAc,eAAe,cAAc,EACtF,aACD,CAAC;AAEF,SAAO,iCAAiC,eAAe,cAAc;GACnE;GACA,qBAAqB,eAAe;GACpC,kBAAkB;GAClB,kBAAkB,eAAe;GAClC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DidCommPresentationV1AckHandler } from "./DidCommPresentationV1AckHandler.mjs";
|
|
2
|
+
import { DidCommPresentationV1Handler } from "./DidCommPresentationV1Handler.mjs";
|
|
3
|
+
import { DidCommPresentationV1ProblemReportHandler } from "./DidCommPresentationV1ProblemReportHandler.mjs";
|
|
4
|
+
import { DidCommProposePresentationV1Handler } from "./DidCommProposePresentationV1Handler.mjs";
|
|
5
|
+
import { DidCommRequestPresentationV1Handler } from "./DidCommRequestPresentationV1Handler.mjs";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DidCommPresentationV1AckMessage } from "./messages/DidCommPresentationV1AckMessage.mjs";
|
|
2
|
+
import { DidCommPresentationV1Message, DidCommPresentationV1MessageOptions, INDY_PROOF_ATTACHMENT_ID } from "./messages/DidCommPresentationV1Message.mjs";
|
|
3
|
+
import { DidCommPresentationV1ProblemReportMessage, DidCommPresentationV1ProblemReportMessageOptions } from "./messages/DidCommPresentationV1ProblemReportMessage.mjs";
|
|
4
|
+
import { DidCommPresentationV1Preview, DidCommPresentationV1PreviewAttribute, DidCommPresentationV1PreviewAttributeOptions, DidCommPresentationV1PreviewPredicate, DidCommPresentationV1PreviewPredicateOptions, V1PresentationPreviewOptions } from "./models/DidCommPresentationV1Preview.mjs";
|
|
5
|
+
import { DidCommProposePresentationV1Message, DidCommProposePresentationV1MessageOptions } from "./messages/DidCommProposePresentationV1Message.mjs";
|
|
6
|
+
import { DidCommRequestPresentationV1Message, DidCommRequestPresentationV1MessageOptions, INDY_PROOF_REQUEST_ATTACHMENT_ID } from "./messages/DidCommRequestPresentationV1Message.mjs";
|
|
7
|
+
import "./messages/index.mjs";
|
|
8
|
+
import { DidCommProofV1Protocol, DidCommProofV1ProtocolConfig } from "./DidCommProofV1Protocol.mjs";
|
|
9
|
+
import { DidCommPresentationV1ProblemReportError } from "./errors/DidCommPresentationV1ProblemReportError.mjs";
|
|
10
|
+
import "./errors/index.mjs";
|
|
11
|
+
import "./models/index.mjs";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DidCommPresentationV1AckMessage } from "./messages/DidCommPresentationV1AckMessage.mjs";
|
|
2
|
+
import { DidCommPresentationV1Message, INDY_PROOF_ATTACHMENT_ID } from "./messages/DidCommPresentationV1Message.mjs";
|
|
3
|
+
import { DidCommPresentationV1ProblemReportMessage } from "./messages/DidCommPresentationV1ProblemReportMessage.mjs";
|
|
4
|
+
import { DidCommPresentationV1Preview, DidCommPresentationV1PreviewAttribute, DidCommPresentationV1PreviewPredicate } from "./models/DidCommPresentationV1Preview.mjs";
|
|
5
|
+
import { DidCommProposePresentationV1Message } from "./messages/DidCommProposePresentationV1Message.mjs";
|
|
6
|
+
import { DidCommRequestPresentationV1Message, INDY_PROOF_REQUEST_ATTACHMENT_ID } from "./messages/DidCommRequestPresentationV1Message.mjs";
|
|
7
|
+
import "./messages/index.mjs";
|
|
8
|
+
import { DidCommPresentationV1ProblemReportError } from "./errors/DidCommPresentationV1ProblemReportError.mjs";
|
|
9
|
+
import "./errors/index.mjs";
|
|
10
|
+
import { DidCommProofV1Protocol } from "./DidCommProofV1Protocol.mjs";
|
|
11
|
+
import "./models/index.mjs";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _credo_ts_didcomm1 from "@credo-ts/didcomm";
|
|
2
|
+
import { DidCommAckMessage } from "@credo-ts/didcomm";
|
|
3
|
+
|
|
4
|
+
//#region src/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.ts
|
|
5
|
+
declare class DidCommPresentationV1AckMessage extends DidCommAckMessage {
|
|
6
|
+
readonly allowDidSovPrefix = true;
|
|
7
|
+
readonly type: string;
|
|
8
|
+
static readonly type: _credo_ts_didcomm1.ParsedMessageType;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { DidCommPresentationV1AckMessage };
|
|
12
|
+
//# sourceMappingURL=DidCommPresentationV1AckMessage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1AckMessage.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.ts"],"sourcesContent":[],"mappings":";;;;cAEa,+BAAA,SAAwC,iBAAA;;;EAAxC,gBAAA,IAAA,EAAgC,kBAAA,CAKhB,iBAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.99.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommAckMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.ts
|
|
6
|
+
var DidCommPresentationV1AckMessage = class DidCommPresentationV1AckMessage extends DidCommAckMessage {
|
|
7
|
+
constructor(..._args) {
|
|
8
|
+
super(..._args);
|
|
9
|
+
this.allowDidSovPrefix = true;
|
|
10
|
+
this.type = DidCommPresentationV1AckMessage.type.messageTypeUri;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
DidCommPresentationV1AckMessage.type = parseMessageType("https://didcomm.org/present-proof/1.0/ack");
|
|
14
|
+
__decorate([IsValidMessageType(DidCommPresentationV1AckMessage.type), __decorateMetadata("design:type", Object)], DidCommPresentationV1AckMessage.prototype, "type", void 0);
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { DidCommPresentationV1AckMessage };
|
|
18
|
+
//# sourceMappingURL=DidCommPresentationV1AckMessage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1AckMessage.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.ts"],"sourcesContent":["import { DidCommAckMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\n\nexport class DidCommPresentationV1AckMessage extends DidCommAckMessage {\n public readonly allowDidSovPrefix = true\n\n @IsValidMessageType(DidCommPresentationV1AckMessage.type)\n public readonly type = DidCommPresentationV1AckMessage.type.messageTypeUri\n public static readonly type = parseMessageType('https://didcomm.org/present-proof/1.0/ack')\n}\n"],"mappings":";;;;;AAEA,IAAa,kCAAb,MAAa,wCAAwC,kBAAkB;;;OACrD,oBAAoB;OAGpB,OAAO,gCAAgC,KAAK;;;gCACrC,OAAO,iBAAiB,4CAA4C;YAF1F,mBAAmB,gCAAgC,KAAK"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AnonCredsProof } from "../../../../models/exchange.mjs";
|
|
2
|
+
import "../../../../models/index.mjs";
|
|
3
|
+
import * as _credo_ts_didcomm2 from "@credo-ts/didcomm";
|
|
4
|
+
import { DidCommAttachment, DidCommMessage } from "@credo-ts/didcomm";
|
|
5
|
+
|
|
6
|
+
//#region src/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.ts
|
|
7
|
+
declare const INDY_PROOF_ATTACHMENT_ID = "libindy-presentation-0";
|
|
8
|
+
interface DidCommPresentationV1MessageOptions {
|
|
9
|
+
id?: string;
|
|
10
|
+
comment?: string;
|
|
11
|
+
presentationAttachments: DidCommAttachment[];
|
|
12
|
+
attachments?: DidCommAttachment[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Presentation Message part of Present Proof Protocol used as a response to a {@link PresentationRequestMessage | Presentation Request Message} from prover to verifier.
|
|
16
|
+
* Contains signed presentations.
|
|
17
|
+
*
|
|
18
|
+
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0037-present-proof/README.md#presentation
|
|
19
|
+
*/
|
|
20
|
+
declare class DidCommPresentationV1Message extends DidCommMessage {
|
|
21
|
+
readonly allowDidSovPrefix = true;
|
|
22
|
+
constructor(options: DidCommPresentationV1MessageOptions);
|
|
23
|
+
readonly type: string;
|
|
24
|
+
static readonly type: _credo_ts_didcomm2.ParsedMessageType;
|
|
25
|
+
/**
|
|
26
|
+
* Provides some human readable information about this request for a presentation.
|
|
27
|
+
*/
|
|
28
|
+
comment?: string;
|
|
29
|
+
/**
|
|
30
|
+
* An array of attachments containing the presentation in the requested format(s).
|
|
31
|
+
*/
|
|
32
|
+
presentationAttachments: DidCommAttachment[];
|
|
33
|
+
get indyProof(): AnonCredsProof | null;
|
|
34
|
+
getPresentationAttachmentById(id: string): DidCommAttachment | undefined;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { DidCommPresentationV1Message, DidCommPresentationV1MessageOptions, INDY_PROOF_ATTACHMENT_ID };
|
|
38
|
+
//# sourceMappingURL=DidCommPresentationV1Message.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1Message.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;;cAKa,wBAAA;UAEI,mCAAA;;;EAFJ,uBAAA,EAKc,iBALU,EAAA;EAEpB,WAAA,CAAA,EAID,iBAJC,EAAA;AAajB;;;;;;;AAAgE,cAAnD,4BAAA,SAAqC,cAAA,CAAc;;uBAElC;;wBAAmC,kBAAA,CAapC;;;;;;;;2BAmBM;mBAET;6CAS0B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.99.0/helpers/decorate.mjs";
|
|
3
|
+
import { DidCommAttachment, DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
import { IsArray, IsInstance, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
5
|
+
import { Expose, Type } from "class-transformer";
|
|
6
|
+
|
|
7
|
+
//#region src/protocols/proofs/v1/messages/DidCommPresentationV1Message.ts
|
|
8
|
+
const INDY_PROOF_ATTACHMENT_ID = "libindy-presentation-0";
|
|
9
|
+
/**
|
|
10
|
+
* Presentation Message part of Present Proof Protocol used as a response to a {@link PresentationRequestMessage | Presentation Request Message} from prover to verifier.
|
|
11
|
+
* Contains signed presentations.
|
|
12
|
+
*
|
|
13
|
+
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0037-present-proof/README.md#presentation
|
|
14
|
+
*/
|
|
15
|
+
var DidCommPresentationV1Message = class DidCommPresentationV1Message extends DidCommMessage {
|
|
16
|
+
constructor(options) {
|
|
17
|
+
super();
|
|
18
|
+
this.allowDidSovPrefix = true;
|
|
19
|
+
this.type = DidCommPresentationV1Message.type.messageTypeUri;
|
|
20
|
+
if (options) {
|
|
21
|
+
this.id = options.id ?? this.generateId();
|
|
22
|
+
this.comment = options.comment;
|
|
23
|
+
this.presentationAttachments = options.presentationAttachments;
|
|
24
|
+
this.appendedAttachments = options.attachments;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
get indyProof() {
|
|
28
|
+
return (this.presentationAttachments.find((attachment) => attachment.id === INDY_PROOF_ATTACHMENT_ID) ?? null)?.getDataAsJson() ?? null;
|
|
29
|
+
}
|
|
30
|
+
getPresentationAttachmentById(id) {
|
|
31
|
+
return this.presentationAttachments.find((attachment) => attachment.id === id);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
DidCommPresentationV1Message.type = parseMessageType("https://didcomm.org/present-proof/1.0/presentation");
|
|
35
|
+
__decorate([IsValidMessageType(DidCommPresentationV1Message.type), __decorateMetadata("design:type", Object)], DidCommPresentationV1Message.prototype, "type", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
IsOptional(),
|
|
38
|
+
IsString(),
|
|
39
|
+
__decorateMetadata("design:type", String)
|
|
40
|
+
], DidCommPresentationV1Message.prototype, "comment", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Expose({ name: "presentations~attach" }),
|
|
43
|
+
Type(() => DidCommAttachment),
|
|
44
|
+
IsArray(),
|
|
45
|
+
ValidateNested({ each: true }),
|
|
46
|
+
IsInstance(DidCommAttachment, { each: true }),
|
|
47
|
+
__decorateMetadata("design:type", Array)
|
|
48
|
+
], DidCommPresentationV1Message.prototype, "presentationAttachments", void 0);
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { DidCommPresentationV1Message, INDY_PROOF_ATTACHMENT_ID };
|
|
52
|
+
//# sourceMappingURL=DidCommPresentationV1Message.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1Message.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1Message.ts"],"sourcesContent":["import { DidCommAttachment, DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\nimport { Expose, Type } from 'class-transformer'\nimport { IsArray, IsInstance, IsOptional, IsString, ValidateNested } from 'class-validator'\nimport type { AnonCredsProof } from '../../../../models'\n\nexport const INDY_PROOF_ATTACHMENT_ID = 'libindy-presentation-0'\n\nexport interface DidCommPresentationV1MessageOptions {\n id?: string\n comment?: string\n presentationAttachments: DidCommAttachment[]\n attachments?: DidCommAttachment[]\n}\n\n/**\n * Presentation Message part of Present Proof Protocol used as a response to a {@link PresentationRequestMessage | Presentation Request Message} from prover to verifier.\n * Contains signed presentations.\n *\n * @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0037-present-proof/README.md#presentation\n */\nexport class DidCommPresentationV1Message extends DidCommMessage {\n public readonly allowDidSovPrefix = true\n public constructor(options: DidCommPresentationV1MessageOptions) {\n super()\n\n if (options) {\n this.id = options.id ?? this.generateId()\n this.comment = options.comment\n this.presentationAttachments = options.presentationAttachments\n this.appendedAttachments = options.attachments\n }\n }\n\n @IsValidMessageType(DidCommPresentationV1Message.type)\n public readonly type = DidCommPresentationV1Message.type.messageTypeUri\n public static readonly type = parseMessageType('https://didcomm.org/present-proof/1.0/presentation')\n\n /**\n * Provides some human readable information about this request for a presentation.\n */\n @IsOptional()\n @IsString()\n public comment?: string\n\n /**\n * An array of attachments containing the presentation in the requested format(s).\n */\n @Expose({ name: 'presentations~attach' })\n @Type(() => DidCommAttachment)\n @IsArray()\n @ValidateNested({\n each: true,\n })\n @IsInstance(DidCommAttachment, { each: true })\n public presentationAttachments!: DidCommAttachment[]\n\n public get indyProof(): AnonCredsProof | null {\n const attachment =\n this.presentationAttachments.find((attachment) => attachment.id === INDY_PROOF_ATTACHMENT_ID) ?? null\n\n const proofJson = attachment?.getDataAsJson<AnonCredsProof>() ?? null\n\n return proofJson\n }\n\n public getPresentationAttachmentById(id: string): DidCommAttachment | undefined {\n return this.presentationAttachments.find((attachment) => attachment.id === id)\n }\n}\n"],"mappings":";;;;;;;AAKA,MAAa,2BAA2B;;;;;;;AAexC,IAAa,+BAAb,MAAa,qCAAqC,eAAe;CAE/D,AAAO,YAAY,SAA8C;AAC/D,SAAO;OAFO,oBAAoB;OAapB,OAAO,6BAA6B,KAAK;AATvD,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,UAAU,QAAQ;AACvB,QAAK,0BAA0B,QAAQ;AACvC,QAAK,sBAAsB,QAAQ;;;CA2BvC,IAAW,YAAmC;AAM5C,UAJE,KAAK,wBAAwB,MAAM,eAAe,WAAW,OAAO,yBAAyB,IAAI,OAErE,eAA+B,IAAI;;CAKnE,AAAO,8BAA8B,IAA2C;AAC9E,SAAO,KAAK,wBAAwB,MAAM,eAAe,WAAW,OAAO,GAAG;;;6BA/BzD,OAAO,iBAAiB,qDAAqD;YAFnG,mBAAmB,6BAA6B,KAAK;;CAOrD,YAAY;CACZ,UAAU;;;;CAMV,OAAO,EAAE,MAAM,wBAAwB,CAAC;CACxC,WAAW,kBAAkB;CAC7B,SAAS;CACT,eAAe,EACd,MAAM,MACP,CAAC;CACD,WAAW,mBAAmB,EAAE,MAAM,MAAM,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as _credo_ts_didcomm3 from "@credo-ts/didcomm";
|
|
2
|
+
import { DidCommProblemReportMessage, DidCommProblemReportMessageOptions } from "@credo-ts/didcomm";
|
|
3
|
+
|
|
4
|
+
//#region src/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.ts
|
|
5
|
+
type DidCommPresentationV1ProblemReportMessageOptions = DidCommProblemReportMessageOptions;
|
|
6
|
+
/**
|
|
7
|
+
* @see https://github.com/hyperledger/aries-rfcs/blob/main/features/0035-report-problem/README.md
|
|
8
|
+
*/
|
|
9
|
+
declare class DidCommPresentationV1ProblemReportMessage extends DidCommProblemReportMessage {
|
|
10
|
+
readonly allowDidSovPrefix = true;
|
|
11
|
+
readonly type: string;
|
|
12
|
+
static readonly type: _credo_ts_didcomm3.ParsedMessageType;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { DidCommPresentationV1ProblemReportMessage, DidCommPresentationV1ProblemReportMessageOptions };
|
|
16
|
+
//# sourceMappingURL=DidCommPresentationV1ProblemReportMessage.d.mts.map
|
package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1ProblemReportMessage.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.ts"],"sourcesContent":[],"mappings":";;;;KAIY,gDAAA,GAAmD;;AAA/D;AAKA;cAAa,yCAAA,SAAkD,2BAAA;;;wBAAR,kBAAA,CAK1B"}
|