@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":"AnonCredsError.d.mts","names":[],"sources":["../../src/error/AnonCredsError.ts"],"sourcesContent":[],"mappings":";;;cAEa,cAAA,SAAuB,UAAA;;;EACI,CAAA;IAD3B,KAAA,CAAA,EAC8C,KAD/B;EACY,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CredoError } from "@credo-ts/core";
|
|
2
|
+
|
|
3
|
+
//#region src/error/AnonCredsError.ts
|
|
4
|
+
var AnonCredsError = class extends CredoError {
|
|
5
|
+
constructor(message, { cause } = {}) {
|
|
6
|
+
super(message, { cause });
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AnonCredsError };
|
|
12
|
+
//# sourceMappingURL=AnonCredsError.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsError.mjs","names":[],"sources":["../../src/error/AnonCredsError.ts"],"sourcesContent":["import { CredoError } from '@credo-ts/core'\n\nexport class AnonCredsError extends CredoError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(message, { cause })\n }\n}\n"],"mappings":";;;AAEA,IAAa,iBAAb,cAAoC,WAAW;CAC7C,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,SAAS,EAAE,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnonCredsError } from "./AnonCredsError.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/error/AnonCredsRsError.d.ts
|
|
4
|
+
declare class AnonCredsRsError extends AnonCredsError {
|
|
5
|
+
constructor(message: string, {
|
|
6
|
+
cause
|
|
7
|
+
}?: {
|
|
8
|
+
cause?: Error;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { AnonCredsRsError };
|
|
13
|
+
//# sourceMappingURL=AnonCredsRsError.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsRsError.d.mts","names":[],"sources":["../../src/error/AnonCredsRsError.ts"],"sourcesContent":[],"mappings":";;;cAEa,gBAAA,SAAyB,cAAA;;;EACE,CAAA;IAD3B,KAAA,CAAA,EAC8C,KAD9C;EAC2B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AnonCredsError } from "./AnonCredsError.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/error/AnonCredsRsError.ts
|
|
4
|
+
var AnonCredsRsError = class extends AnonCredsError {
|
|
5
|
+
constructor(message, { cause } = {}) {
|
|
6
|
+
super(message, { cause });
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AnonCredsRsError };
|
|
12
|
+
//# sourceMappingURL=AnonCredsRsError.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsRsError.mjs","names":[],"sources":["../../src/error/AnonCredsRsError.ts"],"sourcesContent":["import { AnonCredsError } from './AnonCredsError'\n\nexport class AnonCredsRsError extends AnonCredsError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(message, { cause })\n }\n}\n"],"mappings":";;;AAEA,IAAa,mBAAb,cAAsC,eAAe;CACnD,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,SAAS,EAAE,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnonCredsError } from "./AnonCredsError.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/error/AnonCredsStoreRecordError.d.ts
|
|
4
|
+
declare class AnonCredsStoreRecordError extends AnonCredsError {
|
|
5
|
+
constructor(message: string, {
|
|
6
|
+
cause
|
|
7
|
+
}?: {
|
|
8
|
+
cause?: Error;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { AnonCredsStoreRecordError };
|
|
13
|
+
//# sourceMappingURL=AnonCredsStoreRecordError.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsStoreRecordError.d.mts","names":[],"sources":["../../src/error/AnonCredsStoreRecordError.ts"],"sourcesContent":[],"mappings":";;;cAEa,yBAAA,SAAkC,cAAA;;;EACP,CAAA;IAD3B,KAAA,CAAA,EAC8C,KAD9C;EAC2B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AnonCredsError } from "./AnonCredsError.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/error/AnonCredsStoreRecordError.ts
|
|
4
|
+
var AnonCredsStoreRecordError = class extends AnonCredsError {
|
|
5
|
+
constructor(message, { cause } = {}) {
|
|
6
|
+
super(message, { cause });
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AnonCredsStoreRecordError };
|
|
12
|
+
//# sourceMappingURL=AnonCredsStoreRecordError.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsStoreRecordError.mjs","names":[],"sources":["../../src/error/AnonCredsStoreRecordError.ts"],"sourcesContent":["import { AnonCredsError } from './AnonCredsError'\n\nexport class AnonCredsStoreRecordError extends AnonCredsError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(message, { cause })\n }\n}\n"],"mappings":";;;AAEA,IAAa,4BAAb,cAA+C,eAAe;CAC5D,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,SAAS,EAAE,OAAO,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { AnonCredsCredential, AnonCredsCredentialOffer, AnonCredsCredentialRequest } from "../models/exchange.mjs";
|
|
2
|
+
import "../models/index.mjs";
|
|
3
|
+
import { DidCommCredentialFormat, DidCommCredentialPreviewAttributeOptions } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/formats/AnonCredsDidCommCredentialFormat.d.ts
|
|
6
|
+
interface AnonCredsDidCommCredentialProposalFormat {
|
|
7
|
+
schema_issuer_id?: string;
|
|
8
|
+
schema_name?: string;
|
|
9
|
+
schema_version?: string;
|
|
10
|
+
schema_id?: string;
|
|
11
|
+
cred_def_id?: string;
|
|
12
|
+
issuer_id?: string;
|
|
13
|
+
schema_issuer_did?: string;
|
|
14
|
+
issuer_did?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* This defines the module payload for calling CredentialsApi.createProposal
|
|
18
|
+
* or CredentialsApi.negotiateOffer
|
|
19
|
+
*/
|
|
20
|
+
interface AnonCredsDidCommProposeCredentialFormat {
|
|
21
|
+
schemaIssuerId?: string;
|
|
22
|
+
schemaId?: string;
|
|
23
|
+
schemaName?: string;
|
|
24
|
+
schemaVersion?: string;
|
|
25
|
+
credentialDefinitionId?: string;
|
|
26
|
+
issuerId?: string;
|
|
27
|
+
attributes?: DidCommCredentialPreviewAttributeOptions[];
|
|
28
|
+
schemaIssuerDid?: string;
|
|
29
|
+
issuerDid?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This defines the module payload for calling CredentialsApi.acceptProposal
|
|
33
|
+
*/
|
|
34
|
+
interface AnonCredsDidCommAcceptProposalFormat {
|
|
35
|
+
credentialDefinitionId?: string;
|
|
36
|
+
revocationRegistryDefinitionId?: string;
|
|
37
|
+
revocationRegistryIndex?: number;
|
|
38
|
+
attributes?: DidCommCredentialPreviewAttributeOptions[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* This defines the module payload for calling CredentialsApi.acceptOffer. No options are available for this
|
|
42
|
+
* method, so it's an empty object
|
|
43
|
+
*/
|
|
44
|
+
interface AnonCredsDidCommAcceptOfferFormat {
|
|
45
|
+
linkSecretId?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* This defines the module payload for calling CredentialsApi.offerCredential
|
|
49
|
+
* or CredentialsApi.negotiateProposal
|
|
50
|
+
*/
|
|
51
|
+
interface AnonCredsDidCommOfferCredentialFormat {
|
|
52
|
+
credentialDefinitionId: string;
|
|
53
|
+
revocationRegistryDefinitionId?: string;
|
|
54
|
+
revocationRegistryIndex?: number;
|
|
55
|
+
attributes: DidCommCredentialPreviewAttributeOptions[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* This defines the module payload for calling CredentialsApi.acceptRequest. No options are available for this
|
|
59
|
+
* method, so it's an empty object
|
|
60
|
+
*/
|
|
61
|
+
type AnonCredsDidCommAcceptRequestFormat = Record<string, never>;
|
|
62
|
+
interface AnonCredsDidCommCredentialFormat extends DidCommCredentialFormat {
|
|
63
|
+
formatKey: 'anoncreds';
|
|
64
|
+
credentialRecordType: 'w3c';
|
|
65
|
+
credentialFormats: {
|
|
66
|
+
createProposal: AnonCredsDidCommProposeCredentialFormat;
|
|
67
|
+
acceptProposal: AnonCredsDidCommAcceptProposalFormat;
|
|
68
|
+
createOffer: AnonCredsDidCommOfferCredentialFormat;
|
|
69
|
+
acceptOffer: AnonCredsDidCommAcceptOfferFormat;
|
|
70
|
+
createRequest: never;
|
|
71
|
+
acceptRequest: AnonCredsDidCommAcceptRequestFormat;
|
|
72
|
+
};
|
|
73
|
+
formatData: {
|
|
74
|
+
proposal: AnonCredsDidCommCredentialProposalFormat;
|
|
75
|
+
offer: AnonCredsCredentialOffer;
|
|
76
|
+
request: AnonCredsCredentialRequest;
|
|
77
|
+
credential: AnonCredsCredential;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
export { AnonCredsDidCommAcceptOfferFormat, AnonCredsDidCommAcceptProposalFormat, AnonCredsDidCommAcceptRequestFormat, AnonCredsDidCommCredentialFormat, AnonCredsDidCommCredentialProposalFormat, AnonCredsDidCommOfferCredentialFormat, AnonCredsDidCommProposeCredentialFormat };
|
|
82
|
+
//# sourceMappingURL=AnonCredsDidCommCredentialFormat.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsDidCommCredentialFormat.d.mts","names":[],"sources":["../../src/formats/AnonCredsDidCommCredentialFormat.ts"],"sourcesContent":[],"mappings":";;;;;UAGiB,wCAAA;;;EAAA,cAAA,CAAA,EAAA,MAAA;EAmBA,SAAA,CAAA,EAAA,MAAA;EAmBA,WAAA,CAAA,EAAA,MAAA;EAWA,SAAA,CAAA,EAAA,MAAA;EAQA,iBAAA,CAAA,EAAA,MAAA;EAWL,UAAA,CAAA,EAAA,MAAA;AAEZ;;;;;AASmB,UA5DF,uCAAA,CA4DE;EAML,cAAA,CAAA,EAAA,MAAA;EACH,QAAA,CAAA,EAAA,MAAA;EACE,UAAA,CAAA,EAAA,MAAA;EACG,aAAA,CAAA,EAAA,MAAA;EAlB0C,sBAAA,CAAA,EAAA,MAAA;EAAuB,QAAA,CAAA,EAAA,MAAA;eA1ClE;;;;;;;UAUE,oCAAA;;;;eAIF;;;;;;UAOE,iCAAA;;;;;;;UAQA,qCAAA;;;;cAIH;;;;;;KAOF,mCAAA,GAAsC;UAEjC,gCAAA,SAAyC;;;;oBAItC;oBACA;iBACH;iBACA;;mBAEE;;;cAML;WACH;aACE;gBACG"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { AnonCredsDidCommCredentialFormat } from "./AnonCredsDidCommCredentialFormat.mjs";
|
|
2
|
+
import { AgentContext } from "@credo-ts/core";
|
|
3
|
+
import { DidCommAttachment, DidCommCredentialFormatAcceptOfferOptions, DidCommCredentialFormatAcceptProposalOptions, DidCommCredentialFormatAcceptRequestOptions, DidCommCredentialFormatAutoRespondCredentialOptions, DidCommCredentialFormatAutoRespondOfferOptions, DidCommCredentialFormatAutoRespondProposalOptions, DidCommCredentialFormatAutoRespondRequestOptions, DidCommCredentialFormatCreateOfferOptions, DidCommCredentialFormatCreateOfferReturn, DidCommCredentialFormatCreateProposalOptions, DidCommCredentialFormatCreateProposalReturn, DidCommCredentialFormatCreateReturn, DidCommCredentialFormatProcessCredentialOptions, DidCommCredentialFormatProcessOptions, DidCommCredentialFormatService, DidCommCredentialFormatSpec } from "@credo-ts/didcomm";
|
|
4
|
+
|
|
5
|
+
//#region src/formats/AnonCredsDidCommCredentialFormatService.d.ts
|
|
6
|
+
declare class AnonCredsDidCommCredentialFormatService implements DidCommCredentialFormatService<AnonCredsDidCommCredentialFormat> {
|
|
7
|
+
/** formatKey is the key used when calling agent.credentials.xxx with credentialFormats.anoncreds */
|
|
8
|
+
readonly formatKey: "anoncreds";
|
|
9
|
+
/**
|
|
10
|
+
* credentialRecordType is the type of record that stores the credential. It is stored in the credential
|
|
11
|
+
* record binding in the credential exchange record.
|
|
12
|
+
*/
|
|
13
|
+
readonly credentialRecordType: "w3c";
|
|
14
|
+
/**
|
|
15
|
+
* Create a {@link AttachmentFormats} object dependent on the message type.
|
|
16
|
+
*
|
|
17
|
+
* @param options The object containing all the options for the proposed credential
|
|
18
|
+
* @returns object containing associated attachment, format and optionally the credential preview
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
createProposal(_agentContext: AgentContext, {
|
|
22
|
+
credentialFormats,
|
|
23
|
+
credentialExchangeRecord
|
|
24
|
+
}: DidCommCredentialFormatCreateProposalOptions<AnonCredsDidCommCredentialFormat>): Promise<DidCommCredentialFormatCreateProposalReturn>;
|
|
25
|
+
processProposal(_agentContext: AgentContext, {
|
|
26
|
+
attachment
|
|
27
|
+
}: DidCommCredentialFormatProcessOptions): Promise<void>;
|
|
28
|
+
acceptProposal(agentContext: AgentContext, {
|
|
29
|
+
attachmentId,
|
|
30
|
+
credentialFormats,
|
|
31
|
+
credentialExchangeRecord,
|
|
32
|
+
proposalAttachment
|
|
33
|
+
}: DidCommCredentialFormatAcceptProposalOptions<AnonCredsDidCommCredentialFormat>): Promise<DidCommCredentialFormatCreateOfferReturn>;
|
|
34
|
+
/**
|
|
35
|
+
* Create a credential attachment format for a credential request.
|
|
36
|
+
*
|
|
37
|
+
* @param options The object containing all the options for the credential offer
|
|
38
|
+
* @returns object containing associated attachment, formats and offersAttach elements
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
createOffer(agentContext: AgentContext, {
|
|
42
|
+
credentialFormats,
|
|
43
|
+
credentialExchangeRecord,
|
|
44
|
+
attachmentId
|
|
45
|
+
}: DidCommCredentialFormatCreateOfferOptions<AnonCredsDidCommCredentialFormat>): Promise<DidCommCredentialFormatCreateOfferReturn>;
|
|
46
|
+
processOffer(agentContext: AgentContext, {
|
|
47
|
+
attachment,
|
|
48
|
+
credentialExchangeRecord
|
|
49
|
+
}: DidCommCredentialFormatProcessOptions): Promise<void>;
|
|
50
|
+
acceptOffer(agentContext: AgentContext, {
|
|
51
|
+
credentialExchangeRecord,
|
|
52
|
+
attachmentId,
|
|
53
|
+
offerAttachment,
|
|
54
|
+
credentialFormats
|
|
55
|
+
}: DidCommCredentialFormatAcceptOfferOptions<AnonCredsDidCommCredentialFormat>): Promise<DidCommCredentialFormatCreateReturn>;
|
|
56
|
+
/**
|
|
57
|
+
* Starting from a request is not supported for anoncreds credentials, this method only throws an error.
|
|
58
|
+
*/
|
|
59
|
+
createRequest(): Promise<DidCommCredentialFormatCreateReturn>;
|
|
60
|
+
/**
|
|
61
|
+
* We don't have any models to validate an anoncreds request object, for now this method does nothing
|
|
62
|
+
*/
|
|
63
|
+
processRequest(_agentContext: AgentContext, _options: DidCommCredentialFormatProcessOptions): Promise<void>;
|
|
64
|
+
acceptRequest(agentContext: AgentContext, {
|
|
65
|
+
credentialExchangeRecord,
|
|
66
|
+
attachmentId,
|
|
67
|
+
offerAttachment,
|
|
68
|
+
requestAttachment
|
|
69
|
+
}: DidCommCredentialFormatAcceptRequestOptions<AnonCredsDidCommCredentialFormat>): Promise<DidCommCredentialFormatCreateReturn>;
|
|
70
|
+
/**
|
|
71
|
+
* Processes an incoming credential - retrieve metadata, retrieve payload and store it in wallet
|
|
72
|
+
* @param options the issue credential message wrapped inside this object
|
|
73
|
+
* @param credentialExchangeRecord the credential exchange record for this credential
|
|
74
|
+
*/
|
|
75
|
+
processCredential(agentContext: AgentContext, {
|
|
76
|
+
credentialExchangeRecord,
|
|
77
|
+
attachment
|
|
78
|
+
}: DidCommCredentialFormatProcessCredentialOptions): Promise<void>;
|
|
79
|
+
supportsFormat(format: string): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Gets the attachment object for a given attachmentId. We need to get out the correct attachmentId for
|
|
82
|
+
* anoncreds and then find the corresponding attachment (if there is one)
|
|
83
|
+
* @param formats the formats object containing the attachmentId
|
|
84
|
+
* @param messageAttachments the attachments containing the payload
|
|
85
|
+
* @returns The DidCommAttachment if found or undefined
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
getAttachment(formats: DidCommCredentialFormatSpec[], messageAttachments: DidCommAttachment[]): DidCommAttachment | undefined;
|
|
89
|
+
deleteCredentialById(agentContext: AgentContext, credentialRecordId: string): Promise<void>;
|
|
90
|
+
shouldAutoRespondToProposal(_agentContext: AgentContext, {
|
|
91
|
+
offerAttachment,
|
|
92
|
+
proposalAttachment
|
|
93
|
+
}: DidCommCredentialFormatAutoRespondProposalOptions): Promise<boolean>;
|
|
94
|
+
shouldAutoRespondToOffer(_agentContext: AgentContext, {
|
|
95
|
+
offerAttachment,
|
|
96
|
+
proposalAttachment
|
|
97
|
+
}: DidCommCredentialFormatAutoRespondOfferOptions): Promise<boolean>;
|
|
98
|
+
shouldAutoRespondToRequest(_agentContext: AgentContext, {
|
|
99
|
+
offerAttachment,
|
|
100
|
+
requestAttachment
|
|
101
|
+
}: DidCommCredentialFormatAutoRespondRequestOptions): Promise<boolean>;
|
|
102
|
+
shouldAutoRespondToCredential(_agentContext: AgentContext, {
|
|
103
|
+
credentialExchangeRecord,
|
|
104
|
+
requestAttachment,
|
|
105
|
+
credentialAttachment
|
|
106
|
+
}: DidCommCredentialFormatAutoRespondCredentialOptions): Promise<boolean>;
|
|
107
|
+
private createAnonCredsOffer;
|
|
108
|
+
private assertPreviewAttributesMatchSchemaAttributes;
|
|
109
|
+
/**
|
|
110
|
+
* Returns an object of type {@link DidCommAttachment} for use in credential exchange messages.
|
|
111
|
+
* It looks up the correct format identifier and encodes the data as a base64 attachment.
|
|
112
|
+
*
|
|
113
|
+
* @param data The data to include in the attach object
|
|
114
|
+
* @param id the attach id from the formats component of the message
|
|
115
|
+
*/
|
|
116
|
+
getFormatData(data: unknown, id: string): DidCommAttachment;
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
export { AnonCredsDidCommCredentialFormatService };
|
|
120
|
+
//# sourceMappingURL=AnonCredsDidCommCredentialFormatService.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsDidCommCredentialFormatService.d.mts","names":[],"sources":["../../src/formats/AnonCredsDidCommCredentialFormatService.ts"],"sourcesContent":[],"mappings":";;;;;cAmEa,uCAAA,YACA,+BAA+B;EAD/B;EAC+B,SAAA,SAAA,EAAA,WAAA;EAmBzB;;;;EAIZ,SAAA,oBAAA,EAAA,KAAA;EACM;;;;;;;EA2CP,cAAA,CAAA,aAAA,EAhDa,YAgDb,EAAA;IAAA,iBAAA;IAAA;EAAA,CAAA,EA5CC,4CA4CD,CA5C8C,gCA4C9C,CAAA,CAAA,EA3CD,OA2CC,CA3CO,2CA2CP,CAAA;EACA,eAAA,CAAA,aAAA,EAZa,YAYb,EAAA;IAAA;EAAA,CAAA,EAXc,qCAWd,CAAA,EAVD,OAUC,CAAA,IAAA,CAAA;EACA,cAAA,CAAA,YAAA,EAJY,YAIZ,EAAA;IAAA,YAAA;IAAA,iBAAA;IAAA,wBAAA;IAAA;EAAA,CAAA,EAEC,4CAFD,CAE8C,gCAF9C,CAAA,CAAA,EAGD,OAHC,CAGO,wCAHP,CAAA;EACA;;;;;;;EAyCA,WAAA,CAAA,YAAA,EAHY,YAGZ,EAAA;IAAA,iBAAA;IAAA,wBAAA;IAAA;EAAA,CAAA,EAEC,yCAFD,CAE2C,gCAF3C,CAAA,CAAA,EAGD,OAHC,CAGO,wCAHP,CAAA;EACA,YAAA,CAAA,YAAA,EAsBY,YAtBZ,EAAA;IAAA,UAAA;IAAA;EAAA,CAAA,EAuBwC,qCAvBxC,CAAA,EAuB6E,OAvB7E,CAAA,IAAA,CAAA;EAC2C,WAAA,CAAA,YAAA,EAsC/B,YAtC+B,EAAA;IAAA,wBAAA;IAAA,YAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EA4C1C,yCA5C0C,CA4CA,gCA5CA,CAAA,CAAA,EA6C5C,OA7C4C,CA6CpC,mCA7CoC,CAAA;EAA1C;;;EAqBW,aAAA,CAAA,CAAA,EA2Dc,OA3Dd,CA2DsB,mCA3DtB,CAAA;EACZ;;;EAA6E,cAAA,CAAA,aAAA,EAkEhE,YAlEgE,EAAA,QAAA,EAmErE,qCAnEqE,CAAA,EAoE9E,OApE8E,CAAA,IAAA,CAAA;EAgBjE,aAAA,CAAA,YAAA,EAyDA,YAzDA,EAAA;IAAA,wBAAA;IAAA,YAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EA+DX,2CA/DW,CA+DiC,gCA/DjC,CAAA,CAAA,EAgEb,OAhEa,CAgEL,mCAhEK,CAAA;EAEZ;;;;;EAIC,iBAAA,CAAA,YAAA,EA2JW,YA3JX,EAAA;IAAA,wBAAA;IAAA;EAAA,CAAA,EA4JuC,+CA5JvC,CAAA,EA6JF,OA7JE,CAAA,IAAA,CAAA;EACM,cAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAAR;;;;;;;;EAqDC,aAAA,CAAA,OAAA,EAsMO,2BAtMP,EAAA,EAAA,kBAAA,EAuMkB,iBAvMlB,EAAA,CAAA,EAwMD,iBAxMC,GAAA,SAAA;EACA,oBAAA,CAAA,YAAA,EA8M4C,YA9M5C,EAAA,kBAAA,EAAA,MAAA,CAAA,EA8MuF,OA9MvF,CAAA,IAAA,CAAA;EACA,2BAAA,CAAA,aAAA,EAqNa,YArNb,EAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EAsNuC,iDAtNvC,CAAA,EAsNwF,OAtNxF,CAAA,OAAA,CAAA;EAC6C,wBAAA,CAAA,aAAA,EAiOhC,YAjOgC,EAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EAkON,8CAlOM,CAAA,EAkOwC,OAlOxC,CAAA,OAAA,CAAA;EAA5C,0BAAA,CAAA,aAAA,EA8OY,YA9OZ,EAAA;IAAA,eAAA;IAAA;EAAA,CAAA,EA+OqC,gDA/OrC,CAAA,EA+OqF,OA/OrF,CAAA,OAAA,CAAA;EACM,6BAAA,CAAA,aAAA,EAuPM,YAvPN,EAAA;IAAA,wBAAA;IAAA,iBAAA;IAAA;EAAA,CAAA,EA4PN,mDA5PM,CAAA,EA4P6C,OA5P7C,CAAA,OAAA,CAAA;EAAR,QAAA,oBAAA;EAiGa,QAAA,4CAAA;EACZ;;;;;;;EAyG4C,aAAA,CAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,MAAA,CAAA,EAsJC,iBAtJD"}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { AnonCredsCredentialDefinitionRepository } from "../repository/AnonCredsCredentialDefinitionRepository.mjs";
|
|
2
|
+
import { AnonCredsRevocationRegistryState } from "../repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.mjs";
|
|
3
|
+
import { AnonCredsRevocationRegistryDefinitionPrivateRepository } from "../repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs";
|
|
4
|
+
import "../repository/index.mjs";
|
|
5
|
+
import { AnonCredsHolderServiceSymbol } from "../services/AnonCredsHolderService.mjs";
|
|
6
|
+
import { AnonCredsIssuerServiceSymbol } from "../services/AnonCredsIssuerService.mjs";
|
|
7
|
+
import "../services/index.mjs";
|
|
8
|
+
import { fetchCredentialDefinition, fetchRevocationRegistryDefinition, fetchRevocationStatusList, fetchSchema } from "../utils/anonCredsObjects.mjs";
|
|
9
|
+
import { assertAttributesMatch, assertCredentialValuesMatch, checkCredentialValuesMatch, convertAttributesToCredentialValues } from "../utils/credential.mjs";
|
|
10
|
+
import { dateToTimestamp } from "../utils/timestamp.mjs";
|
|
11
|
+
import { AnonCredsCredentialMetadataKey, AnonCredsCredentialRequestMetadataKey } from "../utils/metadata.mjs";
|
|
12
|
+
import { getStoreCredentialOptions } from "../utils/w3cAnonCredsUtils.mjs";
|
|
13
|
+
import "../utils/index.mjs";
|
|
14
|
+
import { AnonCredsCredentialProposal } from "../models/AnonCredsCredentialProposal.mjs";
|
|
15
|
+
import { CredoError, JsonEncoder, JsonTransformer, MessageValidator, utils } from "@credo-ts/core";
|
|
16
|
+
import { DidCommAttachment, DidCommCredentialFormatSpec, DidCommCredentialProblemReportReason, DidCommProblemReportError } from "@credo-ts/didcomm";
|
|
17
|
+
|
|
18
|
+
//#region src/formats/AnonCredsDidCommCredentialFormatService.ts
|
|
19
|
+
const ANONCREDS_CREDENTIAL_OFFER = "anoncreds/credential-offer@v1.0";
|
|
20
|
+
const ANONCREDS_CREDENTIAL_REQUEST = "anoncreds/credential-request@v1.0";
|
|
21
|
+
const ANONCREDS_CREDENTIAL_FILTER = "anoncreds/credential-filter@v1.0";
|
|
22
|
+
const ANONCREDS_CREDENTIAL = "anoncreds/credential@v1.0";
|
|
23
|
+
var AnonCredsDidCommCredentialFormatService = class {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.formatKey = "anoncreds";
|
|
26
|
+
this.credentialRecordType = "w3c";
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a {@link AttachmentFormats} object dependent on the message type.
|
|
30
|
+
*
|
|
31
|
+
* @param options The object containing all the options for the proposed credential
|
|
32
|
+
* @returns object containing associated attachment, format and optionally the credential preview
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
async createProposal(_agentContext, { credentialFormats, credentialExchangeRecord }) {
|
|
36
|
+
const format = new DidCommCredentialFormatSpec({ format: ANONCREDS_CREDENTIAL_FILTER });
|
|
37
|
+
const anoncredsFormat = credentialFormats.anoncreds;
|
|
38
|
+
if (!anoncredsFormat) throw new CredoError("Missing anoncreds payload in createProposal");
|
|
39
|
+
const { attributes, ...anoncredsCredentialProposal } = anoncredsFormat;
|
|
40
|
+
const proposal = new AnonCredsCredentialProposal(anoncredsCredentialProposal);
|
|
41
|
+
try {
|
|
42
|
+
MessageValidator.validateSync(proposal);
|
|
43
|
+
} catch (_error) {
|
|
44
|
+
throw new CredoError(`Invalid proposal supplied: ${anoncredsCredentialProposal} in AnonCredsFormatService`);
|
|
45
|
+
}
|
|
46
|
+
const attachment = this.getFormatData(JsonTransformer.toJSON(proposal), format.attachmentId);
|
|
47
|
+
credentialExchangeRecord.metadata.set(AnonCredsCredentialMetadataKey, {
|
|
48
|
+
schemaId: proposal.schemaId,
|
|
49
|
+
credentialDefinitionId: proposal.credentialDefinitionId
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
format,
|
|
53
|
+
attachment,
|
|
54
|
+
previewAttributes: attributes
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
async processProposal(_agentContext, { attachment }) {
|
|
58
|
+
const proposalJson = attachment.getDataAsJson();
|
|
59
|
+
JsonTransformer.fromJSON(proposalJson, AnonCredsCredentialProposal);
|
|
60
|
+
}
|
|
61
|
+
async acceptProposal(agentContext, { attachmentId, credentialFormats, credentialExchangeRecord, proposalAttachment }) {
|
|
62
|
+
const anoncredsFormat = credentialFormats?.anoncreds;
|
|
63
|
+
const proposalJson = proposalAttachment.getDataAsJson();
|
|
64
|
+
const credentialDefinitionId = anoncredsFormat?.credentialDefinitionId ?? proposalJson.cred_def_id;
|
|
65
|
+
const attributes = anoncredsFormat?.attributes ?? credentialExchangeRecord.credentialAttributes;
|
|
66
|
+
if (!credentialDefinitionId) throw new CredoError("No credential definition id in proposal or provided as input to accept proposal method.");
|
|
67
|
+
if (!attributes) throw new CredoError("No attributes in proposal or provided as input to accept proposal method.");
|
|
68
|
+
const { format, attachment, previewAttributes } = await this.createAnonCredsOffer(agentContext, {
|
|
69
|
+
credentialExchangeRecord,
|
|
70
|
+
attachmentId,
|
|
71
|
+
attributes,
|
|
72
|
+
credentialDefinitionId,
|
|
73
|
+
revocationRegistryDefinitionId: anoncredsFormat?.revocationRegistryDefinitionId,
|
|
74
|
+
revocationRegistryIndex: anoncredsFormat?.revocationRegistryIndex
|
|
75
|
+
});
|
|
76
|
+
return {
|
|
77
|
+
format,
|
|
78
|
+
attachment,
|
|
79
|
+
previewAttributes
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Create a credential attachment format for a credential request.
|
|
84
|
+
*
|
|
85
|
+
* @param options The object containing all the options for the credential offer
|
|
86
|
+
* @returns object containing associated attachment, formats and offersAttach elements
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
async createOffer(agentContext, { credentialFormats, credentialExchangeRecord, attachmentId }) {
|
|
90
|
+
const anoncredsFormat = credentialFormats.anoncreds;
|
|
91
|
+
if (!anoncredsFormat) throw new CredoError("Missing anoncreds credential format data");
|
|
92
|
+
const { format, attachment, previewAttributes } = await this.createAnonCredsOffer(agentContext, {
|
|
93
|
+
credentialExchangeRecord,
|
|
94
|
+
attachmentId,
|
|
95
|
+
attributes: anoncredsFormat.attributes,
|
|
96
|
+
credentialDefinitionId: anoncredsFormat.credentialDefinitionId,
|
|
97
|
+
revocationRegistryDefinitionId: anoncredsFormat.revocationRegistryDefinitionId,
|
|
98
|
+
revocationRegistryIndex: anoncredsFormat.revocationRegistryIndex
|
|
99
|
+
});
|
|
100
|
+
return {
|
|
101
|
+
format,
|
|
102
|
+
attachment,
|
|
103
|
+
previewAttributes
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
async processOffer(agentContext, { attachment, credentialExchangeRecord }) {
|
|
107
|
+
agentContext.config.logger.debug(`Processing anoncreds credential offer for credential record ${credentialExchangeRecord.id}`);
|
|
108
|
+
const credOffer = attachment.getDataAsJson();
|
|
109
|
+
if (!credOffer.schema_id || !credOffer.cred_def_id) throw new DidCommProblemReportError("Invalid credential offer", { problemCode: DidCommCredentialProblemReportReason.IssuanceAbandoned });
|
|
110
|
+
}
|
|
111
|
+
async acceptOffer(agentContext, { credentialExchangeRecord, attachmentId, offerAttachment, credentialFormats }) {
|
|
112
|
+
const holderService = agentContext.dependencyManager.resolve(AnonCredsHolderServiceSymbol);
|
|
113
|
+
const credentialOffer = offerAttachment.getDataAsJson();
|
|
114
|
+
const { credentialDefinition } = await fetchCredentialDefinition(agentContext, credentialOffer.cred_def_id);
|
|
115
|
+
const { credentialRequest, credentialRequestMetadata } = await holderService.createCredentialRequest(agentContext, {
|
|
116
|
+
credentialOffer,
|
|
117
|
+
credentialDefinition,
|
|
118
|
+
linkSecretId: credentialFormats?.anoncreds?.linkSecretId
|
|
119
|
+
});
|
|
120
|
+
credentialExchangeRecord.metadata.set(AnonCredsCredentialRequestMetadataKey, credentialRequestMetadata);
|
|
121
|
+
credentialExchangeRecord.metadata.set(AnonCredsCredentialMetadataKey, {
|
|
122
|
+
credentialDefinitionId: credentialOffer.cred_def_id,
|
|
123
|
+
schemaId: credentialOffer.schema_id
|
|
124
|
+
});
|
|
125
|
+
const format = new DidCommCredentialFormatSpec({
|
|
126
|
+
attachmentId,
|
|
127
|
+
format: ANONCREDS_CREDENTIAL_REQUEST
|
|
128
|
+
});
|
|
129
|
+
return {
|
|
130
|
+
format,
|
|
131
|
+
attachment: this.getFormatData(credentialRequest, format.attachmentId)
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Starting from a request is not supported for anoncreds credentials, this method only throws an error.
|
|
136
|
+
*/
|
|
137
|
+
async createRequest() {
|
|
138
|
+
throw new CredoError("Starting from a request is not supported for anoncreds credentials");
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* We don't have any models to validate an anoncreds request object, for now this method does nothing
|
|
142
|
+
*/
|
|
143
|
+
async processRequest(_agentContext, _options) {}
|
|
144
|
+
async acceptRequest(agentContext, { credentialExchangeRecord, attachmentId, offerAttachment, requestAttachment }) {
|
|
145
|
+
const credentialAttributes = credentialExchangeRecord.credentialAttributes;
|
|
146
|
+
if (!credentialAttributes) throw new CredoError(`Missing required credential attribute values on credential record with id ${credentialExchangeRecord.id}`);
|
|
147
|
+
const anonCredsIssuerService = agentContext.dependencyManager.resolve(AnonCredsIssuerServiceSymbol);
|
|
148
|
+
const credentialOffer = offerAttachment?.getDataAsJson();
|
|
149
|
+
if (!credentialOffer) throw new CredoError("Missing anoncreds credential offer in createCredential");
|
|
150
|
+
const credentialRequest = requestAttachment.getDataAsJson();
|
|
151
|
+
if (!credentialRequest) throw new CredoError("Missing anoncreds credential request in createCredential");
|
|
152
|
+
const credentialDefinition = (await agentContext.dependencyManager.resolve(AnonCredsCredentialDefinitionRepository).getByCredentialDefinitionId(agentContext, credentialRequest.cred_def_id)).credentialDefinition.value;
|
|
153
|
+
let revocationRegistryDefinitionId;
|
|
154
|
+
let revocationRegistryIndex;
|
|
155
|
+
let revocationStatusList;
|
|
156
|
+
if (credentialDefinition.revocation) {
|
|
157
|
+
const credentialMetadata = credentialExchangeRecord.metadata.get(AnonCredsCredentialMetadataKey);
|
|
158
|
+
revocationRegistryDefinitionId = credentialMetadata?.revocationRegistryId;
|
|
159
|
+
if (credentialMetadata?.credentialRevocationId) revocationRegistryIndex = Number(credentialMetadata.credentialRevocationId);
|
|
160
|
+
if (!revocationRegistryDefinitionId || revocationRegistryIndex === void 0) throw new CredoError("Revocation registry definition id and revocation index are mandatory to issue AnonCreds revocable credentials");
|
|
161
|
+
const revocationRegistryDefinitionPrivateRecord = await agentContext.dependencyManager.resolve(AnonCredsRevocationRegistryDefinitionPrivateRepository).getByRevocationRegistryDefinitionId(agentContext, revocationRegistryDefinitionId);
|
|
162
|
+
if (revocationRegistryDefinitionPrivateRecord.state !== AnonCredsRevocationRegistryState.Active) throw new CredoError(`Revocation registry ${revocationRegistryDefinitionId} is in ${revocationRegistryDefinitionPrivateRecord.state} state`);
|
|
163
|
+
revocationStatusList = (await fetchRevocationStatusList(agentContext, revocationRegistryDefinitionId, dateToTimestamp(/* @__PURE__ */ new Date()))).revocationStatusList;
|
|
164
|
+
}
|
|
165
|
+
const { credential, credentialRevocationId } = await anonCredsIssuerService.createCredential(agentContext, {
|
|
166
|
+
credentialOffer,
|
|
167
|
+
credentialRequest,
|
|
168
|
+
credentialValues: convertAttributesToCredentialValues(credentialAttributes),
|
|
169
|
+
revocationRegistryDefinitionId,
|
|
170
|
+
revocationRegistryIndex,
|
|
171
|
+
revocationStatusList
|
|
172
|
+
});
|
|
173
|
+
if (credential.rev_reg_id) {
|
|
174
|
+
credentialExchangeRecord.metadata.add(AnonCredsCredentialMetadataKey, {
|
|
175
|
+
revocationRegistryId: revocationRegistryDefinitionId ?? void 0,
|
|
176
|
+
credentialRevocationId: credentialRevocationId ?? void 0
|
|
177
|
+
});
|
|
178
|
+
credentialExchangeRecord.setTags({
|
|
179
|
+
anonCredsRevocationRegistryId: revocationRegistryDefinitionId,
|
|
180
|
+
anonCredsCredentialRevocationId: credentialRevocationId
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
const format = new DidCommCredentialFormatSpec({
|
|
184
|
+
attachmentId,
|
|
185
|
+
format: ANONCREDS_CREDENTIAL
|
|
186
|
+
});
|
|
187
|
+
return {
|
|
188
|
+
format,
|
|
189
|
+
attachment: this.getFormatData(credential, format.attachmentId)
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Processes an incoming credential - retrieve metadata, retrieve payload and store it in wallet
|
|
194
|
+
* @param options the issue credential message wrapped inside this object
|
|
195
|
+
* @param credentialExchangeRecord the credential exchange record for this credential
|
|
196
|
+
*/
|
|
197
|
+
async processCredential(agentContext, { credentialExchangeRecord, attachment }) {
|
|
198
|
+
const credentialRequestMetadata = credentialExchangeRecord.metadata.get(AnonCredsCredentialRequestMetadataKey);
|
|
199
|
+
const anonCredsHolderService = agentContext.dependencyManager.resolve(AnonCredsHolderServiceSymbol);
|
|
200
|
+
if (!credentialRequestMetadata) throw new CredoError(`Missing required request metadata for credential exchange with thread id with id ${credentialExchangeRecord.id}`);
|
|
201
|
+
if (!credentialExchangeRecord.credentialAttributes) throw new CredoError("Missing credential attributes on credential record. Unable to check credential attributes");
|
|
202
|
+
const anonCredsCredential = attachment.getDataAsJson();
|
|
203
|
+
const { credentialDefinition, credentialDefinitionId } = await fetchCredentialDefinition(agentContext, anonCredsCredential.cred_def_id);
|
|
204
|
+
const { schema, indyNamespace } = await fetchSchema(agentContext, anonCredsCredential.schema_id);
|
|
205
|
+
const revocationRegistryResult = anonCredsCredential.rev_reg_id ? await fetchRevocationRegistryDefinition(agentContext, anonCredsCredential.rev_reg_id) : void 0;
|
|
206
|
+
const recordCredentialValues = convertAttributesToCredentialValues(credentialExchangeRecord.credentialAttributes);
|
|
207
|
+
assertCredentialValuesMatch(anonCredsCredential.values, recordCredentialValues);
|
|
208
|
+
const storeCredentialOptions = getStoreCredentialOptions({
|
|
209
|
+
credentialId: utils.uuid(),
|
|
210
|
+
credentialRequestMetadata,
|
|
211
|
+
credential: anonCredsCredential,
|
|
212
|
+
credentialDefinitionId,
|
|
213
|
+
credentialDefinition,
|
|
214
|
+
schema,
|
|
215
|
+
revocationRegistry: revocationRegistryResult?.revocationRegistryDefinition ? {
|
|
216
|
+
definition: revocationRegistryResult.revocationRegistryDefinition,
|
|
217
|
+
id: revocationRegistryResult.revocationRegistryDefinitionId
|
|
218
|
+
} : void 0
|
|
219
|
+
}, indyNamespace);
|
|
220
|
+
const credentialId = await anonCredsHolderService.storeCredential(agentContext, storeCredentialOptions);
|
|
221
|
+
if (anonCredsCredential.rev_reg_id) {
|
|
222
|
+
const credential = await anonCredsHolderService.getCredential(agentContext, { id: credentialId });
|
|
223
|
+
credentialExchangeRecord.metadata.add(AnonCredsCredentialMetadataKey, {
|
|
224
|
+
credentialRevocationId: credential.credentialRevocationId ?? void 0,
|
|
225
|
+
revocationRegistryId: credential.revocationRegistryId ?? void 0
|
|
226
|
+
});
|
|
227
|
+
credentialExchangeRecord.setTags({
|
|
228
|
+
anonCredsRevocationRegistryId: credential.revocationRegistryId,
|
|
229
|
+
anonCredsCredentialRevocationId: credential.credentialRevocationId
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
credentialExchangeRecord.credentials.push({
|
|
233
|
+
credentialRecordType: this.credentialRecordType,
|
|
234
|
+
credentialRecordId: credentialId
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
supportsFormat(format) {
|
|
238
|
+
return [
|
|
239
|
+
ANONCREDS_CREDENTIAL_REQUEST,
|
|
240
|
+
ANONCREDS_CREDENTIAL_OFFER,
|
|
241
|
+
ANONCREDS_CREDENTIAL_FILTER,
|
|
242
|
+
ANONCREDS_CREDENTIAL
|
|
243
|
+
].includes(format);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Gets the attachment object for a given attachmentId. We need to get out the correct attachmentId for
|
|
247
|
+
* anoncreds and then find the corresponding attachment (if there is one)
|
|
248
|
+
* @param formats the formats object containing the attachmentId
|
|
249
|
+
* @param messageAttachments the attachments containing the payload
|
|
250
|
+
* @returns The DidCommAttachment if found or undefined
|
|
251
|
+
*
|
|
252
|
+
*/
|
|
253
|
+
getAttachment(formats, messageAttachments) {
|
|
254
|
+
const supportedAttachmentIds = formats.filter((f) => this.supportsFormat(f.format)).map((f) => f.attachmentId);
|
|
255
|
+
return messageAttachments.find((attachment) => supportedAttachmentIds.includes(attachment.id));
|
|
256
|
+
}
|
|
257
|
+
async deleteCredentialById(agentContext, credentialRecordId) {
|
|
258
|
+
await agentContext.dependencyManager.resolve(AnonCredsHolderServiceSymbol).deleteCredential(agentContext, credentialRecordId);
|
|
259
|
+
}
|
|
260
|
+
async shouldAutoRespondToProposal(_agentContext, { offerAttachment, proposalAttachment }) {
|
|
261
|
+
const proposalJson = proposalAttachment.getDataAsJson();
|
|
262
|
+
const offerJson = offerAttachment.getDataAsJson();
|
|
263
|
+
return proposalJson.cred_def_id === offerJson.cred_def_id;
|
|
264
|
+
}
|
|
265
|
+
async shouldAutoRespondToOffer(_agentContext, { offerAttachment, proposalAttachment }) {
|
|
266
|
+
const proposalJson = proposalAttachment.getDataAsJson();
|
|
267
|
+
const offerJson = offerAttachment.getDataAsJson();
|
|
268
|
+
return proposalJson.cred_def_id === offerJson.cred_def_id;
|
|
269
|
+
}
|
|
270
|
+
async shouldAutoRespondToRequest(_agentContext, { offerAttachment, requestAttachment }) {
|
|
271
|
+
const credentialOfferJson = offerAttachment.getDataAsJson();
|
|
272
|
+
const credentialRequestJson = requestAttachment.getDataAsJson();
|
|
273
|
+
return credentialOfferJson.cred_def_id === credentialRequestJson.cred_def_id;
|
|
274
|
+
}
|
|
275
|
+
async shouldAutoRespondToCredential(_agentContext, { credentialExchangeRecord, requestAttachment, credentialAttachment }) {
|
|
276
|
+
const credentialJson = credentialAttachment.getDataAsJson();
|
|
277
|
+
const credentialRequestJson = requestAttachment.getDataAsJson();
|
|
278
|
+
if (credentialJson.cred_def_id !== credentialRequestJson.cred_def_id) return false;
|
|
279
|
+
if (!credentialExchangeRecord.credentialAttributes) return false;
|
|
280
|
+
return checkCredentialValuesMatch(convertAttributesToCredentialValues(credentialExchangeRecord.credentialAttributes), credentialJson.values);
|
|
281
|
+
}
|
|
282
|
+
async createAnonCredsOffer(agentContext, { credentialExchangeRecord, attachmentId, credentialDefinitionId, revocationRegistryDefinitionId, revocationRegistryIndex, attributes }) {
|
|
283
|
+
const anonCredsIssuerService = agentContext.dependencyManager.resolve(AnonCredsIssuerServiceSymbol);
|
|
284
|
+
const format = new DidCommCredentialFormatSpec({
|
|
285
|
+
attachmentId,
|
|
286
|
+
format: ANONCREDS_CREDENTIAL_OFFER
|
|
287
|
+
});
|
|
288
|
+
const offer = await anonCredsIssuerService.createCredentialOffer(agentContext, { credentialDefinitionId });
|
|
289
|
+
await this.assertPreviewAttributesMatchSchemaAttributes(agentContext, offer, attributes);
|
|
290
|
+
if ((await agentContext.dependencyManager.resolve(AnonCredsCredentialDefinitionRepository).getByCredentialDefinitionId(agentContext, offer.cred_def_id)).credentialDefinition.value.revocation) {
|
|
291
|
+
if (!revocationRegistryDefinitionId || revocationRegistryIndex === void 0) throw new CredoError("AnonCreds revocable credentials require revocationRegistryDefinitionId and revocationRegistryIndex");
|
|
292
|
+
credentialExchangeRecord.setTags({
|
|
293
|
+
anonCredsRevocationRegistryId: revocationRegistryDefinitionId,
|
|
294
|
+
anonCredsCredentialRevocationId: revocationRegistryIndex.toString()
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
credentialExchangeRecord.metadata.set(AnonCredsCredentialMetadataKey, {
|
|
298
|
+
schemaId: offer.schema_id,
|
|
299
|
+
credentialDefinitionId: offer.cred_def_id,
|
|
300
|
+
credentialRevocationId: revocationRegistryIndex?.toString(),
|
|
301
|
+
revocationRegistryId: revocationRegistryDefinitionId
|
|
302
|
+
});
|
|
303
|
+
return {
|
|
304
|
+
format,
|
|
305
|
+
attachment: this.getFormatData(offer, format.attachmentId),
|
|
306
|
+
previewAttributes: attributes
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
async assertPreviewAttributesMatchSchemaAttributes(agentContext, offer, attributes) {
|
|
310
|
+
const { schema } = await fetchSchema(agentContext, offer.schema_id);
|
|
311
|
+
assertAttributesMatch(schema, attributes);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Returns an object of type {@link DidCommAttachment} for use in credential exchange messages.
|
|
315
|
+
* It looks up the correct format identifier and encodes the data as a base64 attachment.
|
|
316
|
+
*
|
|
317
|
+
* @param data The data to include in the attach object
|
|
318
|
+
* @param id the attach id from the formats component of the message
|
|
319
|
+
*/
|
|
320
|
+
getFormatData(data, id) {
|
|
321
|
+
return new DidCommAttachment({
|
|
322
|
+
id,
|
|
323
|
+
mimeType: "application/json",
|
|
324
|
+
data: { base64: JsonEncoder.toBase64(data) }
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
//#endregion
|
|
330
|
+
export { AnonCredsDidCommCredentialFormatService };
|
|
331
|
+
//# sourceMappingURL=AnonCredsDidCommCredentialFormatService.mjs.map
|