@credo-ts/anoncreds 0.4.1-alpha.157
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/LICENSE +202 -0
- package/README.md +31 -0
- package/build/AnonCredsApi.d.ts +97 -0
- package/build/AnonCredsApi.js +582 -0
- package/build/AnonCredsApi.js.map +1 -0
- package/build/AnonCredsApiOptions.d.ts +24 -0
- package/build/AnonCredsApiOptions.js +3 -0
- package/build/AnonCredsApiOptions.js.map +1 -0
- package/build/AnonCredsModule.d.ts +24 -0
- package/build/AnonCredsModule.js +56 -0
- package/build/AnonCredsModule.js.map +1 -0
- package/build/AnonCredsModuleConfig.d.ts +72 -0
- package/build/AnonCredsModuleConfig.js +31 -0
- package/build/AnonCredsModuleConfig.js.map +1 -0
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.d.ts +27 -0
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.js +241 -0
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.js.map +1 -0
- package/build/anoncreds-rs/AnonCredsRsHolderService.d.ts +37 -0
- package/build/anoncreds-rs/AnonCredsRsHolderService.js +590 -0
- package/build/anoncreds-rs/AnonCredsRsHolderService.js.map +1 -0
- package/build/anoncreds-rs/AnonCredsRsIssuerService.d.ts +12 -0
- package/build/anoncreds-rs/AnonCredsRsIssuerService.js +253 -0
- package/build/anoncreds-rs/AnonCredsRsIssuerService.js.map +1 -0
- package/build/anoncreds-rs/AnonCredsRsVerifierService.d.ts +8 -0
- package/build/anoncreds-rs/AnonCredsRsVerifierService.js +157 -0
- package/build/anoncreds-rs/AnonCredsRsVerifierService.js.map +1 -0
- package/build/anoncreds-rs/index.d.ts +3 -0
- package/build/anoncreds-rs/index.js +10 -0
- package/build/anoncreds-rs/index.js.map +1 -0
- package/build/anoncreds-rs/utils.d.ts +23 -0
- package/build/anoncreds-rs/utils.js +71 -0
- package/build/anoncreds-rs/utils.js.map +1 -0
- package/build/error/AnonCredsError.d.ts +6 -0
- package/build/error/AnonCredsError.js +11 -0
- package/build/error/AnonCredsError.js.map +1 -0
- package/build/error/AnonCredsRsError.d.ts +6 -0
- package/build/error/AnonCredsRsError.js +11 -0
- package/build/error/AnonCredsRsError.js.map +1 -0
- package/build/error/AnonCredsStoreRecordError.d.ts +6 -0
- package/build/error/AnonCredsStoreRecordError.js +11 -0
- package/build/error/AnonCredsStoreRecordError.js.map +1 -0
- package/build/error/index.d.ts +3 -0
- package/build/error/index.js +20 -0
- package/build/error/index.js.map +1 -0
- package/build/formats/AnonCredsCredentialFormat.d.ts +79 -0
- package/build/formats/AnonCredsCredentialFormat.js +3 -0
- package/build/formats/AnonCredsCredentialFormat.js.map +1 -0
- package/build/formats/AnonCredsCredentialFormatService.d.ts +80 -0
- package/build/formats/AnonCredsCredentialFormatService.js +422 -0
- package/build/formats/AnonCredsCredentialFormatService.js.map +1 -0
- package/build/formats/AnonCredsProofFormat.d.ts +70 -0
- package/build/formats/AnonCredsProofFormat.js +3 -0
- package/build/formats/AnonCredsProofFormat.js.map +1 -0
- package/build/formats/AnonCredsProofFormatService.d.ts +58 -0
- package/build/formats/AnonCredsProofFormatService.js +360 -0
- package/build/formats/AnonCredsProofFormatService.js.map +1 -0
- package/build/formats/DataIntegrityCredentialFormatService.d.ts +89 -0
- package/build/formats/DataIntegrityCredentialFormatService.js +773 -0
- package/build/formats/DataIntegrityCredentialFormatService.js.map +1 -0
- package/build/formats/LegacyIndyCredentialFormat.d.ts +32 -0
- package/build/formats/LegacyIndyCredentialFormat.js +3 -0
- package/build/formats/LegacyIndyCredentialFormat.js.map +1 -0
- package/build/formats/LegacyIndyCredentialFormatService.d.ts +80 -0
- package/build/formats/LegacyIndyCredentialFormatService.js +388 -0
- package/build/formats/LegacyIndyCredentialFormatService.js.map +1 -0
- package/build/formats/LegacyIndyProofFormat.d.ts +29 -0
- package/build/formats/LegacyIndyProofFormat.js +3 -0
- package/build/formats/LegacyIndyProofFormat.js.map +1 -0
- package/build/formats/LegacyIndyProofFormatService.d.ts +58 -0
- package/build/formats/LegacyIndyProofFormatService.js +374 -0
- package/build/formats/LegacyIndyProofFormatService.js.map +1 -0
- package/build/formats/index.d.ts +9 -0
- package/build/formats/index.js +32 -0
- package/build/formats/index.js.map +1 -0
- package/build/index.d.ts +17 -0
- package/build/index.js +46 -0
- package/build/index.js.map +1 -0
- package/build/models/AnonCredsCredentialProposal.d.ts +62 -0
- package/build/models/AnonCredsCredentialProposal.js +81 -0
- package/build/models/AnonCredsCredentialProposal.js.map +1 -0
- package/build/models/AnonCredsProofRequest.d.ts +27 -0
- package/build/models/AnonCredsProofRequest.js +82 -0
- package/build/models/AnonCredsProofRequest.js.map +1 -0
- package/build/models/AnonCredsRequestedAttribute.d.ts +16 -0
- package/build/models/AnonCredsRequestedAttribute.js +56 -0
- package/build/models/AnonCredsRequestedAttribute.js.map +1 -0
- package/build/models/AnonCredsRequestedPredicate.d.ts +19 -0
- package/build/models/AnonCredsRequestedPredicate.js +61 -0
- package/build/models/AnonCredsRequestedPredicate.js.map +1 -0
- package/build/models/AnonCredsRestriction.d.ts +55 -0
- package/build/models/AnonCredsRestriction.js +160 -0
- package/build/models/AnonCredsRestriction.js.map +1 -0
- package/build/models/AnonCredsRestrictionWrapper.d.ts +4 -0
- package/build/models/AnonCredsRestrictionWrapper.js +25 -0
- package/build/models/AnonCredsRestrictionWrapper.js.map +1 -0
- package/build/models/AnonCredsRevocationInterval.d.ts +5 -0
- package/build/models/AnonCredsRevocationInterval.js +33 -0
- package/build/models/AnonCredsRevocationInterval.js.map +1 -0
- package/build/models/exchange.d.ts +97 -0
- package/build/models/exchange.js +5 -0
- package/build/models/exchange.js.map +1 -0
- package/build/models/index.d.ts +4 -0
- package/build/models/index.js +21 -0
- package/build/models/index.js.map +1 -0
- package/build/models/internal.d.ts +33 -0
- package/build/models/internal.js +3 -0
- package/build/models/internal.js.map +1 -0
- package/build/models/registry.d.ts +39 -0
- package/build/models/registry.js +3 -0
- package/build/models/registry.js.map +1 -0
- package/build/models/utils.d.ts +22 -0
- package/build/models/utils.js +3 -0
- package/build/models/utils.js.map +1 -0
- package/build/protocols/credentials/v1/V1CredentialProtocol.d.ts +162 -0
- package/build/protocols/credentials/v1/V1CredentialProtocol.js +943 -0
- package/build/protocols/credentials/v1/V1CredentialProtocol.js.map +1 -0
- package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.d.ts +10 -0
- package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.js +18 -0
- package/build/protocols/credentials/v1/errors/V1CredentialProblemReportError.js.map +1 -0
- package/build/protocols/credentials/v1/errors/index.d.ts +1 -0
- package/build/protocols/credentials/v1/errors/index.js +6 -0
- package/build/protocols/credentials/v1/errors/index.js.map +1 -0
- package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.d.ts +9 -0
- package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.js +15 -0
- package/build/protocols/credentials/v1/handlers/V1CredentialAckHandler.js.map +1 -0
- package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.d.ts +9 -0
- package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.js +15 -0
- package/build/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.js.map +1 -0
- package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.d.ts +10 -0
- package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.js +40 -0
- package/build/protocols/credentials/v1/handlers/V1IssueCredentialHandler.js.map +1 -0
- package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.d.ts +10 -0
- package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.js +33 -0
- package/build/protocols/credentials/v1/handlers/V1OfferCredentialHandler.js.map +1 -0
- package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.d.ts +10 -0
- package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.js +38 -0
- package/build/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.js.map +1 -0
- package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.d.ts +10 -0
- package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.js +40 -0
- package/build/protocols/credentials/v1/handlers/V1RequestCredentialHandler.js.map +1 -0
- package/build/protocols/credentials/v1/handlers/index.d.ts +6 -0
- package/build/protocols/credentials/v1/handlers/index.js +23 -0
- package/build/protocols/credentials/v1/handlers/index.js.map +1 -0
- package/build/protocols/credentials/v1/index.d.ts +2 -0
- package/build/protocols/credentials/v1/index.js +19 -0
- package/build/protocols/credentials/v1/index.js.map +1 -0
- package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.d.ts +16 -0
- package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.js +34 -0
- package/build/protocols/credentials/v1/messages/V1CredentialAckMessage.js.map +1 -0
- package/build/protocols/credentials/v1/messages/V1CredentialPreview.d.ts +26 -0
- package/build/protocols/credentials/v1/messages/V1CredentialPreview.js +69 -0
- package/build/protocols/credentials/v1/messages/V1CredentialPreview.js.map +1 -0
- package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.d.ts +16 -0
- package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.js +34 -0
- package/build/protocols/credentials/v1/messages/V1CredentialProblemReportMessage.js.map +1 -0
- package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.d.ts +19 -0
- package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.js +62 -0
- package/build/protocols/credentials/v1/messages/V1IssueCredentialMessage.js.map +1 -0
- package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.d.ts +27 -0
- package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.js +75 -0
- package/build/protocols/credentials/v1/messages/V1OfferCredentialMessage.js.map +1 -0
- package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.d.ts +59 -0
- package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.js +109 -0
- package/build/protocols/credentials/v1/messages/V1ProposeCredentialMessage.js.map +1 -0
- package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.d.ts +19 -0
- package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.js +61 -0
- package/build/protocols/credentials/v1/messages/V1RequestCredentialMessage.js.map +1 -0
- package/build/protocols/credentials/v1/messages/index.d.ts +7 -0
- package/build/protocols/credentials/v1/messages/index.js +24 -0
- package/build/protocols/credentials/v1/messages/index.js.map +1 -0
- package/build/protocols/index.d.ts +2 -0
- package/build/protocols/index.js +19 -0
- package/build/protocols/index.js.map +1 -0
- package/build/protocols/proofs/v1/V1ProofProtocol.d.ts +50 -0
- package/build/protocols/proofs/v1/V1ProofProtocol.js +860 -0
- package/build/protocols/proofs/v1/V1ProofProtocol.js.map +1 -0
- package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.d.ts +12 -0
- package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.js +19 -0
- package/build/protocols/proofs/v1/errors/V1PresentationProblemReportError.js.map +1 -0
- package/build/protocols/proofs/v1/errors/index.d.ts +1 -0
- package/build/protocols/proofs/v1/errors/index.js +18 -0
- package/build/protocols/proofs/v1/errors/index.js.map +1 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.d.ts +9 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.js +15 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationAckHandler.js.map +1 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationHandler.d.ts +10 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationHandler.js +40 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationHandler.js.map +1 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.d.ts +9 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.js +15 -0
- package/build/protocols/proofs/v1/handlers/V1PresentationProblemReportHandler.js.map +1 -0
- package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.d.ts +11 -0
- package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.js +38 -0
- package/build/protocols/proofs/v1/handlers/V1ProposePresentationHandler.js.map +1 -0
- package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.d.ts +10 -0
- package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.js +35 -0
- package/build/protocols/proofs/v1/handlers/V1RequestPresentationHandler.js.map +1 -0
- package/build/protocols/proofs/v1/handlers/index.d.ts +5 -0
- package/build/protocols/proofs/v1/handlers/index.js +22 -0
- package/build/protocols/proofs/v1/handlers/index.js.map +1 -0
- package/build/protocols/proofs/v1/index.d.ts +4 -0
- package/build/protocols/proofs/v1/index.js +21 -0
- package/build/protocols/proofs/v1/index.js.map +1 -0
- package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.d.ts +8 -0
- package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.js +27 -0
- package/build/protocols/proofs/v1/messages/V1PresentationAckMessage.js.map +1 -0
- package/build/protocols/proofs/v1/messages/V1PresentationMessage.d.ts +31 -0
- package/build/protocols/proofs/v1/messages/V1PresentationMessage.js +67 -0
- package/build/protocols/proofs/v1/messages/V1PresentationMessage.js.map +1 -0
- package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.d.ts +16 -0
- package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.js +34 -0
- package/build/protocols/proofs/v1/messages/V1PresentationProblemReportMessage.js.map +1 -0
- package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.d.ts +26 -0
- package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.js +53 -0
- package/build/protocols/proofs/v1/messages/V1ProposePresentationMessage.js.map +1 -0
- package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.d.ts +29 -0
- package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.js +65 -0
- package/build/protocols/proofs/v1/messages/V1RequestPresentationMessage.js.map +1 -0
- package/build/protocols/proofs/v1/messages/index.d.ts +5 -0
- package/build/protocols/proofs/v1/messages/index.js +22 -0
- package/build/protocols/proofs/v1/messages/index.js.map +1 -0
- package/build/protocols/proofs/v1/models/V1PresentationPreview.d.ts +50 -0
- package/build/protocols/proofs/v1/models/V1PresentationPreview.js +130 -0
- package/build/protocols/proofs/v1/models/V1PresentationPreview.js.map +1 -0
- package/build/protocols/proofs/v1/models/index.d.ts +1 -0
- package/build/protocols/proofs/v1/models/index.js +18 -0
- package/build/protocols/proofs/v1/models/index.js.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.d.ts +20 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.js +22 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRecord.js.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.d.ts +8 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.js +35 -0
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.js.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionRecord.d.ts +38 -0
- package/build/repository/AnonCredsCredentialDefinitionRecord.js +29 -0
- package/build/repository/AnonCredsCredentialDefinitionRecord.js.map +1 -0
- package/build/repository/AnonCredsCredentialDefinitionRepository.d.ts +8 -0
- package/build/repository/AnonCredsCredentialDefinitionRepository.js +53 -0
- package/build/repository/AnonCredsCredentialDefinitionRepository.js.map +1 -0
- package/build/repository/AnonCredsCredentialRecord.d.ts +48 -0
- package/build/repository/AnonCredsCredentialRecord.js +37 -0
- package/build/repository/AnonCredsCredentialRecord.js.map +1 -0
- package/build/repository/AnonCredsCredentialRepository.d.ts +10 -0
- package/build/repository/AnonCredsCredentialRepository.js +41 -0
- package/build/repository/AnonCredsCredentialRepository.js.map +1 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.d.ts +20 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.js +22 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRecord.js.map +1 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.d.ts +8 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.js +35 -0
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.js.map +1 -0
- package/build/repository/AnonCredsLinkSecretRecord.d.ts +23 -0
- package/build/repository/AnonCredsLinkSecretRecord.js +22 -0
- package/build/repository/AnonCredsLinkSecretRecord.js.map +1 -0
- package/build/repository/AnonCredsLinkSecretRepository.d.ts +10 -0
- package/build/repository/AnonCredsLinkSecretRepository.js +41 -0
- package/build/repository/AnonCredsLinkSecretRepository.js.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.d.ts +34 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.js +30 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.js.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.ts +10 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js +38 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.ts +24 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.js +22 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.js.map +1 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.d.ts +9 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.js +38 -0
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.js.map +1 -0
- package/build/repository/AnonCredsSchemaRecord.d.ts +38 -0
- package/build/repository/AnonCredsSchemaRecord.js +29 -0
- package/build/repository/AnonCredsSchemaRecord.js.map +1 -0
- package/build/repository/AnonCredsSchemaRepository.d.ts +8 -0
- package/build/repository/AnonCredsSchemaRepository.js +53 -0
- package/build/repository/AnonCredsSchemaRepository.js.map +1 -0
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.d.ts +9 -0
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.js +9 -0
- package/build/repository/anonCredsCredentialDefinitionRecordMetadataTypes.js.map +1 -0
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.d.ts +9 -0
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.js +9 -0
- package/build/repository/anonCredsRevocationRegistryDefinitionRecordMetadataTypes.js.map +1 -0
- package/build/repository/anonCredsSchemaRecordMetadataTypes.d.ts +9 -0
- package/build/repository/anonCredsSchemaRecordMetadataTypes.js +9 -0
- package/build/repository/anonCredsSchemaRecordMetadataTypes.js.map +1 -0
- package/build/repository/index.d.ts +16 -0
- package/build/repository/index.js +33 -0
- package/build/repository/index.js.map +1 -0
- package/build/services/AnonCredsHolderService.d.ts +18 -0
- package/build/services/AnonCredsHolderService.js +5 -0
- package/build/services/AnonCredsHolderService.js.map +1 -0
- package/build/services/AnonCredsHolderServiceOptions.d.ts +99 -0
- package/build/services/AnonCredsHolderServiceOptions.js +3 -0
- package/build/services/AnonCredsHolderServiceOptions.js.map +1 -0
- package/build/services/AnonCredsIssuerService.d.ts +14 -0
- package/build/services/AnonCredsIssuerService.js +5 -0
- package/build/services/AnonCredsIssuerService.js.map +1 -0
- package/build/services/AnonCredsIssuerServiceOptions.d.ts +61 -0
- package/build/services/AnonCredsIssuerServiceOptions.js +3 -0
- package/build/services/AnonCredsIssuerServiceOptions.js.map +1 -0
- package/build/services/AnonCredsVerifierService.d.ts +7 -0
- package/build/services/AnonCredsVerifierService.js +5 -0
- package/build/services/AnonCredsVerifierService.js.map +1 -0
- package/build/services/AnonCredsVerifierServiceOptions.d.ts +25 -0
- package/build/services/AnonCredsVerifierServiceOptions.js +3 -0
- package/build/services/AnonCredsVerifierServiceOptions.js.map +1 -0
- package/build/services/index.d.ts +8 -0
- package/build/services/index.js +27 -0
- package/build/services/index.js.map +1 -0
- package/build/services/registry/AnonCredsRegistry.d.ts +25 -0
- package/build/services/registry/AnonCredsRegistry.js +3 -0
- package/build/services/registry/AnonCredsRegistry.js.map +1 -0
- package/build/services/registry/AnonCredsRegistryService.d.ts +10 -0
- package/build/services/registry/AnonCredsRegistryService.js +33 -0
- package/build/services/registry/AnonCredsRegistryService.js.map +1 -0
- package/build/services/registry/CredentialDefinitionOptions.d.ts +34 -0
- package/build/services/registry/CredentialDefinitionOptions.js +3 -0
- package/build/services/registry/CredentialDefinitionOptions.js.map +1 -0
- package/build/services/registry/RevocationRegistryDefinitionOptions.d.ts +34 -0
- package/build/services/registry/RevocationRegistryDefinitionOptions.js +3 -0
- package/build/services/registry/RevocationRegistryDefinitionOptions.js.map +1 -0
- package/build/services/registry/RevocationStatusListOptions.d.ts +32 -0
- package/build/services/registry/RevocationStatusListOptions.js +3 -0
- package/build/services/registry/RevocationStatusListOptions.js.map +1 -0
- package/build/services/registry/SchemaOptions.d.ts +34 -0
- package/build/services/registry/SchemaOptions.js +3 -0
- package/build/services/registry/SchemaOptions.js.map +1 -0
- package/build/services/registry/base.d.ts +19 -0
- package/build/services/registry/base.js +3 -0
- package/build/services/registry/base.js.map +1 -0
- package/build/services/registry/index.d.ts +7 -0
- package/build/services/registry/index.js +23 -0
- package/build/services/registry/index.js.map +1 -0
- package/build/services/tails/BasicTailsFileService.d.ts +23 -0
- package/build/services/tails/BasicTailsFileService.js +65 -0
- package/build/services/tails/BasicTailsFileService.js.map +1 -0
- package/build/services/tails/TailsFileService.d.ts +42 -0
- package/build/services/tails/TailsFileService.js +3 -0
- package/build/services/tails/TailsFileService.js.map +1 -0
- package/build/services/tails/index.d.ts +2 -0
- package/build/services/tails/index.js +19 -0
- package/build/services/tails/index.js.map +1 -0
- package/build/updates/0.3.1-0.4/credentialDefinition.d.ts +18 -0
- package/build/updates/0.3.1-0.4/credentialDefinition.js +57 -0
- package/build/updates/0.3.1-0.4/credentialDefinition.js.map +1 -0
- package/build/updates/0.3.1-0.4/credentialExchangeRecord.d.ts +69 -0
- package/build/updates/0.3.1-0.4/credentialExchangeRecord.js +122 -0
- package/build/updates/0.3.1-0.4/credentialExchangeRecord.js.map +1 -0
- package/build/updates/0.3.1-0.4/index.d.ts +2 -0
- package/build/updates/0.3.1-0.4/index.js +15 -0
- package/build/updates/0.3.1-0.4/index.js.map +1 -0
- package/build/updates/0.3.1-0.4/linkSecret.d.ts +6 -0
- package/build/updates/0.3.1-0.4/linkSecret.js +36 -0
- package/build/updates/0.3.1-0.4/linkSecret.js.map +1 -0
- package/build/updates/0.3.1-0.4/schema.d.ts +15 -0
- package/build/updates/0.3.1-0.4/schema.js +42 -0
- package/build/updates/0.3.1-0.4/schema.js.map +1 -0
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.d.ts +5 -0
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.js +118 -0
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.js.map +1 -0
- package/build/updates/0.4-0.5/index.d.ts +2 -0
- package/build/updates/0.4-0.5/index.js +9 -0
- package/build/updates/0.4-0.5/index.js.map +1 -0
- package/build/utils/anonCredsObjects.d.ts +26 -0
- package/build/utils/anonCredsObjects.js +82 -0
- package/build/utils/anonCredsObjects.js.map +1 -0
- package/build/utils/areRequestsEqual.d.ts +6 -0
- package/build/utils/areRequestsEqual.js +136 -0
- package/build/utils/areRequestsEqual.js.map +1 -0
- package/build/utils/composeAutoAccept.d.ts +15 -0
- package/build/utils/composeAutoAccept.js +27 -0
- package/build/utils/composeAutoAccept.js.map +1 -0
- package/build/utils/createRequestFromPreview.d.ts +10 -0
- package/build/utils/createRequestFromPreview.js +72 -0
- package/build/utils/createRequestFromPreview.js.map +1 -0
- package/build/utils/credential.d.ts +68 -0
- package/build/utils/credential.js +188 -0
- package/build/utils/credential.js.map +1 -0
- package/build/utils/credentialPreviewAttributes.d.ts +2 -0
- package/build/utils/credentialPreviewAttributes.js +25 -0
- package/build/utils/credentialPreviewAttributes.js.map +1 -0
- package/build/utils/getRevocationRegistries.d.ts +14 -0
- package/build/utils/getRevocationRegistries.js +152 -0
- package/build/utils/getRevocationRegistries.js.map +1 -0
- package/build/utils/hasDuplicateGroupNames.d.ts +2 -0
- package/build/utils/hasDuplicateGroupNames.js +23 -0
- package/build/utils/hasDuplicateGroupNames.js.map +1 -0
- package/build/utils/index.d.ts +16 -0
- package/build/utils/index.js +46 -0
- package/build/utils/index.js.map +1 -0
- package/build/utils/indyIdentifiers.d.ts +66 -0
- package/build/utils/indyIdentifiers.js +296 -0
- package/build/utils/indyIdentifiers.js.map +1 -0
- package/build/utils/isMap.d.ts +5 -0
- package/build/utils/isMap.js +18 -0
- package/build/utils/isMap.js.map +1 -0
- package/build/utils/linkSecret.d.ts +9 -0
- package/build/utils/linkSecret.js +44 -0
- package/build/utils/linkSecret.js.map +1 -0
- package/build/utils/metadata.d.ts +35 -0
- package/build/utils/metadata.js +24 -0
- package/build/utils/metadata.js.map +1 -0
- package/build/utils/proverDid.d.ts +8 -0
- package/build/utils/proverDid.js +16 -0
- package/build/utils/proverDid.js.map +1 -0
- package/build/utils/revocationInterval.d.ts +7 -0
- package/build/utils/revocationInterval.js +15 -0
- package/build/utils/revocationInterval.js.map +1 -0
- package/build/utils/sortRequestedCredentialsMatches.d.ts +8 -0
- package/build/utils/sortRequestedCredentialsMatches.js +33 -0
- package/build/utils/sortRequestedCredentialsMatches.js.map +1 -0
- package/build/utils/timestamp.d.ts +1 -0
- package/build/utils/timestamp.js +7 -0
- package/build/utils/timestamp.js.map +1 -0
- package/build/utils/w3cAnonCredsUtils.d.ts +35 -0
- package/build/utils/w3cAnonCredsUtils.js +124 -0
- package/build/utils/w3cAnonCredsUtils.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnonCredsCredentialDefinitionRecord = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
const indyIdentifiers_1 = require("../utils/indyIdentifiers");
|
|
6
|
+
class AnonCredsCredentialDefinitionRecord extends core_1.BaseRecord {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
var _a;
|
|
9
|
+
super();
|
|
10
|
+
this.type = AnonCredsCredentialDefinitionRecord.type;
|
|
11
|
+
if (props) {
|
|
12
|
+
this.id = (_a = props.id) !== null && _a !== void 0 ? _a : core_1.utils.uuid();
|
|
13
|
+
this.credentialDefinitionId = props.credentialDefinitionId;
|
|
14
|
+
this.credentialDefinition = props.credentialDefinition;
|
|
15
|
+
this.methodName = props.methodName;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
getTags() {
|
|
19
|
+
let unqualifiedCredentialDefinitionId = undefined;
|
|
20
|
+
if ((0, indyIdentifiers_1.isDidIndyCredentialDefinitionId)(this.credentialDefinitionId)) {
|
|
21
|
+
const { namespaceIdentifier, schemaSeqNo, tag } = (0, indyIdentifiers_1.parseIndyCredentialDefinitionId)(this.credentialDefinitionId);
|
|
22
|
+
unqualifiedCredentialDefinitionId = (0, indyIdentifiers_1.getUnqualifiedCredentialDefinitionId)(namespaceIdentifier, schemaSeqNo, tag);
|
|
23
|
+
}
|
|
24
|
+
return Object.assign(Object.assign({}, this._tags), { credentialDefinitionId: this.credentialDefinitionId, schemaId: this.credentialDefinition.schemaId, issuerId: this.credentialDefinition.issuerId, tag: this.credentialDefinition.tag, methodName: this.methodName, unqualifiedCredentialDefinitionId });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.AnonCredsCredentialDefinitionRecord = AnonCredsCredentialDefinitionRecord;
|
|
28
|
+
AnonCredsCredentialDefinitionRecord.type = 'AnonCredsCredentialDefinitionRecord';
|
|
29
|
+
//# sourceMappingURL=AnonCredsCredentialDefinitionRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialDefinitionRecord.js","sourceRoot":"","sources":["../../src/repository/AnonCredsCredentialDefinitionRecord.ts"],"names":[],"mappings":";;;AAIA,yCAAkD;AAElD,8DAIiC;AAsBjC,MAAa,mCAAoC,SAAQ,iBAIxD;IAaC,YAAmB,KAA+C;;QAChE,KAAK,EAAE,CAAA;QAZO,SAAI,GAAG,mCAAmC,CAAC,IAAI,CAAA;QAc7D,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,MAAA,KAAK,CAAC,EAAE,mCAAI,YAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC,sBAAsB,CAAA;YAC1D,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAA;YACtD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;SACnC;IACH,CAAC;IAEM,OAAO;QACZ,IAAI,iCAAiC,GAAuB,SAAS,CAAA;QACrE,IAAI,IAAA,iDAA+B,EAAC,IAAI,CAAC,sBAAsB,CAAC,EAAE;YAChE,MAAM,EAAE,mBAAmB,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,IAAA,iDAA+B,EAAC,IAAI,CAAC,sBAAsB,CAAC,CAAA;YAE9G,iCAAiC,GAAG,IAAA,sDAAoC,EAAC,mBAAmB,EAAE,WAAW,EAAE,GAAG,CAAC,CAAA;SAChH;QAED,uCACK,IAAI,CAAC,KAAK,KACb,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAC5C,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAC5C,GAAG,EAAE,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAClC,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,iCAAiC,IAClC;IACH,CAAC;;AA7CH,kFA8CC;AAzCwB,wCAAI,GAAG,qCAAqC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AgentContext } from '@credo-ts/core';
|
|
2
|
+
import { Repository, StorageService, EventEmitter } from '@credo-ts/core';
|
|
3
|
+
import { AnonCredsCredentialDefinitionRecord } from './AnonCredsCredentialDefinitionRecord';
|
|
4
|
+
export declare class AnonCredsCredentialDefinitionRepository extends Repository<AnonCredsCredentialDefinitionRecord> {
|
|
5
|
+
constructor(storageService: StorageService<AnonCredsCredentialDefinitionRecord>, eventEmitter: EventEmitter);
|
|
6
|
+
getByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string): Promise<AnonCredsCredentialDefinitionRecord>;
|
|
7
|
+
findByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string): Promise<AnonCredsCredentialDefinitionRecord | null>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AnonCredsCredentialDefinitionRepository = void 0;
|
|
16
|
+
const core_1 = require("@credo-ts/core");
|
|
17
|
+
const AnonCredsCredentialDefinitionRecord_1 = require("./AnonCredsCredentialDefinitionRecord");
|
|
18
|
+
let AnonCredsCredentialDefinitionRepository = class AnonCredsCredentialDefinitionRepository extends core_1.Repository {
|
|
19
|
+
constructor(storageService, eventEmitter) {
|
|
20
|
+
super(AnonCredsCredentialDefinitionRecord_1.AnonCredsCredentialDefinitionRecord, storageService, eventEmitter);
|
|
21
|
+
}
|
|
22
|
+
async getByCredentialDefinitionId(agentContext, credentialDefinitionId) {
|
|
23
|
+
return this.getSingleByQuery(agentContext, {
|
|
24
|
+
$or: [
|
|
25
|
+
{
|
|
26
|
+
credentialDefinitionId,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
unqualifiedCredentialDefinitionId: credentialDefinitionId,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async findByCredentialDefinitionId(agentContext, credentialDefinitionId) {
|
|
35
|
+
return this.findSingleByQuery(agentContext, {
|
|
36
|
+
$or: [
|
|
37
|
+
{
|
|
38
|
+
credentialDefinitionId,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
unqualifiedCredentialDefinitionId: credentialDefinitionId,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
AnonCredsCredentialDefinitionRepository = __decorate([
|
|
48
|
+
(0, core_1.injectable)(),
|
|
49
|
+
__param(0, (0, core_1.inject)(core_1.InjectionSymbols.StorageService)),
|
|
50
|
+
__metadata("design:paramtypes", [Object, core_1.EventEmitter])
|
|
51
|
+
], AnonCredsCredentialDefinitionRepository);
|
|
52
|
+
exports.AnonCredsCredentialDefinitionRepository = AnonCredsCredentialDefinitionRepository;
|
|
53
|
+
//# sourceMappingURL=AnonCredsCredentialDefinitionRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialDefinitionRepository.js","sourceRoot":"","sources":["../../src/repository/AnonCredsCredentialDefinitionRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAA+G;AAE/G,+FAA2F;AAGpF,IAAM,uCAAuC,GAA7C,MAAM,uCAAwC,SAAQ,iBAA+C;IAC1G,YAC2C,cAAmE,EAC5G,YAA0B;QAE1B,KAAK,CAAC,yEAAmC,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IAC1E,CAAC;IAEM,KAAK,CAAC,2BAA2B,CAAC,YAA0B,EAAE,sBAA8B;QACjG,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE;YACzC,GAAG,EAAE;gBACH;oBACE,sBAAsB;iBACvB;gBACD;oBACE,iCAAiC,EAAE,sBAAsB;iBAC1D;aACF;SACF,CAAC,CAAA;IACJ,CAAC;IAEM,KAAK,CAAC,4BAA4B,CAAC,YAA0B,EAAE,sBAA8B;QAClG,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE;YAC1C,GAAG,EAAE;gBACH;oBACE,sBAAsB;iBACvB;gBACD;oBACE,iCAAiC,EAAE,sBAAsB;iBAC1D;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAjCY,uCAAuC;IADnD,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,mBAAY;GAHjB,uCAAuC,CAiCnD;AAjCY,0FAAuC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { AnonCredsCredential } from '../models';
|
|
2
|
+
import type { Tags } from '@credo-ts/core';
|
|
3
|
+
import { BaseRecord } from '@credo-ts/core';
|
|
4
|
+
export interface AnonCredsCredentialRecordProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
createdAt?: Date;
|
|
7
|
+
credential: AnonCredsCredential;
|
|
8
|
+
credentialId: string;
|
|
9
|
+
credentialRevocationId?: string;
|
|
10
|
+
linkSecretId: string;
|
|
11
|
+
schemaName: string;
|
|
12
|
+
schemaVersion: string;
|
|
13
|
+
schemaIssuerId: string;
|
|
14
|
+
issuerId: string;
|
|
15
|
+
methodName: string;
|
|
16
|
+
}
|
|
17
|
+
export type DefaultAnonCredsCredentialTags = {
|
|
18
|
+
credentialId: string;
|
|
19
|
+
linkSecretId: string;
|
|
20
|
+
credentialDefinitionId: string;
|
|
21
|
+
credentialRevocationId?: string;
|
|
22
|
+
revocationRegistryId?: string;
|
|
23
|
+
schemaId: string;
|
|
24
|
+
methodName: string;
|
|
25
|
+
[key: `attr::${string}::marker`]: true | undefined;
|
|
26
|
+
[key: `attr::${string}::value`]: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
export type CustomAnonCredsCredentialTags = {
|
|
29
|
+
schemaName: string;
|
|
30
|
+
schemaVersion: string;
|
|
31
|
+
schemaIssuerId: string;
|
|
32
|
+
issuerId: string;
|
|
33
|
+
};
|
|
34
|
+
export declare class AnonCredsCredentialRecord extends BaseRecord<DefaultAnonCredsCredentialTags, CustomAnonCredsCredentialTags> {
|
|
35
|
+
static readonly type = "AnonCredsCredentialRecord";
|
|
36
|
+
readonly type = "AnonCredsCredentialRecord";
|
|
37
|
+
readonly credentialId: string;
|
|
38
|
+
readonly credentialRevocationId?: string;
|
|
39
|
+
readonly linkSecretId: string;
|
|
40
|
+
readonly credential: AnonCredsCredential;
|
|
41
|
+
/**
|
|
42
|
+
* AnonCreds method name. We don't use names explicitly from the registry (there's no identifier for a registry)
|
|
43
|
+
* @see https://hyperledger.github.io/anoncreds-methods-registry/
|
|
44
|
+
*/
|
|
45
|
+
readonly methodName: string;
|
|
46
|
+
constructor(props: AnonCredsCredentialRecordProps);
|
|
47
|
+
getTags(): Tags<DefaultAnonCredsCredentialTags, CustomAnonCredsCredentialTags>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnonCredsCredentialRecord = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
class AnonCredsCredentialRecord extends core_1.BaseRecord {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
super();
|
|
9
|
+
this.type = AnonCredsCredentialRecord.type;
|
|
10
|
+
if (props) {
|
|
11
|
+
this.id = (_a = props.id) !== null && _a !== void 0 ? _a : core_1.utils.uuid();
|
|
12
|
+
this.createdAt = (_b = props.createdAt) !== null && _b !== void 0 ? _b : new Date();
|
|
13
|
+
this.credentialId = props.credentialId;
|
|
14
|
+
this.credential = props.credential;
|
|
15
|
+
this.credentialRevocationId = props.credentialRevocationId;
|
|
16
|
+
this.linkSecretId = props.linkSecretId;
|
|
17
|
+
this.methodName = props.methodName;
|
|
18
|
+
this.setTags({
|
|
19
|
+
issuerId: props.issuerId,
|
|
20
|
+
schemaIssuerId: props.schemaIssuerId,
|
|
21
|
+
schemaName: props.schemaName,
|
|
22
|
+
schemaVersion: props.schemaVersion,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
getTags() {
|
|
27
|
+
const tags = Object.assign(Object.assign({}, this._tags), { credentialDefinitionId: this.credential.cred_def_id, schemaId: this.credential.schema_id, credentialId: this.credentialId, credentialRevocationId: this.credentialRevocationId, revocationRegistryId: this.credential.rev_reg_id, linkSecretId: this.linkSecretId, methodName: this.methodName });
|
|
28
|
+
for (const [key, value] of Object.entries(this.credential.values)) {
|
|
29
|
+
tags[`attr::${key}::value`] = value.raw;
|
|
30
|
+
tags[`attr::${key}::marker`] = true;
|
|
31
|
+
}
|
|
32
|
+
return tags;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.AnonCredsCredentialRecord = AnonCredsCredentialRecord;
|
|
36
|
+
AnonCredsCredentialRecord.type = 'AnonCredsCredentialRecord';
|
|
37
|
+
//# sourceMappingURL=AnonCredsCredentialRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialRecord.js","sourceRoot":"","sources":["../../src/repository/AnonCredsCredentialRecord.ts"],"names":[],"mappings":";;;AAGA,yCAAkD;AAqClD,MAAa,yBAA0B,SAAQ,iBAG9C;IAeC,YAAmB,KAAqC;;QACtD,KAAK,EAAE,CAAA;QAdO,SAAI,GAAG,yBAAyB,CAAC,IAAI,CAAA;QAgBnD,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,MAAA,KAAK,CAAC,EAAE,mCAAI,YAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,SAAS,GAAG,MAAA,KAAK,CAAC,SAAS,mCAAI,IAAI,IAAI,EAAE,CAAA;YAC9C,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;YACtC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;YAClC,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC,sBAAsB,CAAA;YAC1D,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;YACtC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;YAClC,IAAI,CAAC,OAAO,CAAC;gBACX,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,cAAc,EAAE,KAAK,CAAC,cAAc;gBACpC,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,aAAa,EAAE,KAAK,CAAC,aAAa;aACnC,CAAC,CAAA;SACH;IACH,CAAC;IAEM,OAAO;QACZ,MAAM,IAAI,mCACL,IAAI,CAAC,KAAK,KACb,sBAAsB,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,EACnD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,EACnC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,oBAAoB,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,EAChD,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,UAAU,EAAE,IAAI,CAAC,UAAU,GAC5B,CAAA;QAED,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YACjE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,KAAK,CAAC,GAAG,CAAA;YACvC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,GAAG,IAAI,CAAA;SACpC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;;AAxDH,8DAyDC;AArDwB,8BAAI,GAAG,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentContext } from '@credo-ts/core';
|
|
2
|
+
import { Repository, StorageService, EventEmitter } from '@credo-ts/core';
|
|
3
|
+
import { AnonCredsCredentialRecord } from './AnonCredsCredentialRecord';
|
|
4
|
+
export declare class AnonCredsCredentialRepository extends Repository<AnonCredsCredentialRecord> {
|
|
5
|
+
constructor(storageService: StorageService<AnonCredsCredentialRecord>, eventEmitter: EventEmitter);
|
|
6
|
+
getByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string): Promise<AnonCredsCredentialRecord>;
|
|
7
|
+
findByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string): Promise<AnonCredsCredentialRecord | null>;
|
|
8
|
+
getByCredentialId(agentContext: AgentContext, credentialId: string): Promise<AnonCredsCredentialRecord>;
|
|
9
|
+
findByCredentialId(agentContext: AgentContext, credentialId: string): Promise<AnonCredsCredentialRecord | null>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AnonCredsCredentialRepository = void 0;
|
|
16
|
+
const core_1 = require("@credo-ts/core");
|
|
17
|
+
const AnonCredsCredentialRecord_1 = require("./AnonCredsCredentialRecord");
|
|
18
|
+
let AnonCredsCredentialRepository = class AnonCredsCredentialRepository extends core_1.Repository {
|
|
19
|
+
constructor(storageService, eventEmitter) {
|
|
20
|
+
super(AnonCredsCredentialRecord_1.AnonCredsCredentialRecord, storageService, eventEmitter);
|
|
21
|
+
}
|
|
22
|
+
async getByCredentialDefinitionId(agentContext, credentialDefinitionId) {
|
|
23
|
+
return this.getSingleByQuery(agentContext, { credentialDefinitionId });
|
|
24
|
+
}
|
|
25
|
+
async findByCredentialDefinitionId(agentContext, credentialDefinitionId) {
|
|
26
|
+
return this.findSingleByQuery(agentContext, { credentialDefinitionId });
|
|
27
|
+
}
|
|
28
|
+
async getByCredentialId(agentContext, credentialId) {
|
|
29
|
+
return this.getSingleByQuery(agentContext, { credentialId });
|
|
30
|
+
}
|
|
31
|
+
async findByCredentialId(agentContext, credentialId) {
|
|
32
|
+
return this.findSingleByQuery(agentContext, { credentialId });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
AnonCredsCredentialRepository = __decorate([
|
|
36
|
+
(0, core_1.injectable)(),
|
|
37
|
+
__param(0, (0, core_1.inject)(core_1.InjectionSymbols.StorageService)),
|
|
38
|
+
__metadata("design:paramtypes", [Object, core_1.EventEmitter])
|
|
39
|
+
], AnonCredsCredentialRepository);
|
|
40
|
+
exports.AnonCredsCredentialRepository = AnonCredsCredentialRepository;
|
|
41
|
+
//# sourceMappingURL=AnonCredsCredentialRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialRepository.js","sourceRoot":"","sources":["../../src/repository/AnonCredsCredentialRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAA+G;AAE/G,2EAAuE;AAGhE,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,iBAAqC;IACtF,YAC2C,cAAyD,EAClG,YAA0B;QAE1B,KAAK,CAAC,qDAAyB,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IAChE,CAAC;IAEM,KAAK,CAAC,2BAA2B,CAAC,YAA0B,EAAE,sBAA8B;QACjG,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EAAE,sBAAsB,EAAE,CAAC,CAAA;IACxE,CAAC;IAEM,KAAK,CAAC,4BAA4B,CAAC,YAA0B,EAAE,sBAA8B;QAClG,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,EAAE,sBAAsB,EAAE,CAAC,CAAA;IACzE,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,YAA0B,EAAE,YAAoB;QAC7E,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA;IAC9D,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAAC,YAA0B,EAAE,YAAoB;QAC9E,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA;IAC/D,CAAC;CACF,CAAA;AAvBY,6BAA6B;IADzC,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,mBAAY;GAHjB,6BAA6B,CAuBzC;AAvBY,sEAA6B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TagsBase } from '@credo-ts/core';
|
|
2
|
+
import { BaseRecord } from '@credo-ts/core';
|
|
3
|
+
export interface AnonCredsKeyCorrectnessProofRecordProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
credentialDefinitionId: string;
|
|
6
|
+
value: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
export type DefaultAnonCredsKeyCorrectnessProofPrivateTags = {
|
|
9
|
+
credentialDefinitionId: string;
|
|
10
|
+
};
|
|
11
|
+
export declare class AnonCredsKeyCorrectnessProofRecord extends BaseRecord<DefaultAnonCredsKeyCorrectnessProofPrivateTags, TagsBase> {
|
|
12
|
+
static readonly type = "AnonCredsKeyCorrectnessProofRecord";
|
|
13
|
+
readonly type = "AnonCredsKeyCorrectnessProofRecord";
|
|
14
|
+
readonly credentialDefinitionId: string;
|
|
15
|
+
readonly value: Record<string, unknown>;
|
|
16
|
+
constructor(props: AnonCredsKeyCorrectnessProofRecordProps);
|
|
17
|
+
getTags(): {
|
|
18
|
+
credentialDefinitionId: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnonCredsKeyCorrectnessProofRecord = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
class AnonCredsKeyCorrectnessProofRecord extends core_1.BaseRecord {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
var _a;
|
|
8
|
+
super();
|
|
9
|
+
this.type = AnonCredsKeyCorrectnessProofRecord.type;
|
|
10
|
+
if (props) {
|
|
11
|
+
this.id = (_a = props.id) !== null && _a !== void 0 ? _a : core_1.utils.uuid();
|
|
12
|
+
this.credentialDefinitionId = props.credentialDefinitionId;
|
|
13
|
+
this.value = props.value;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
getTags() {
|
|
17
|
+
return Object.assign(Object.assign({}, this._tags), { credentialDefinitionId: this.credentialDefinitionId });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.AnonCredsKeyCorrectnessProofRecord = AnonCredsKeyCorrectnessProofRecord;
|
|
21
|
+
AnonCredsKeyCorrectnessProofRecord.type = 'AnonCredsKeyCorrectnessProofRecord';
|
|
22
|
+
//# sourceMappingURL=AnonCredsKeyCorrectnessProofRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsKeyCorrectnessProofRecord.js","sourceRoot":"","sources":["../../src/repository/AnonCredsKeyCorrectnessProofRecord.ts"],"names":[],"mappings":";;;AAEA,yCAAkD;AAYlD,MAAa,kCAAmC,SAAQ,iBAGvD;IAOC,YAAmB,KAA8C;;QAC/D,KAAK,EAAE,CAAA;QANO,SAAI,GAAG,kCAAkC,CAAC,IAAI,CAAA;QAQ5D,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,MAAA,KAAK,CAAC,EAAE,mCAAI,YAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC,sBAAsB,CAAA;YAC1D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;SACzB;IACH,CAAC;IAEM,OAAO;QACZ,uCACK,IAAI,CAAC,KAAK,KACb,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,IACpD;IACH,CAAC;;AAzBH,gFA0BC;AAtBwB,uCAAI,GAAG,oCAAoC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AgentContext } from '@credo-ts/core';
|
|
2
|
+
import { Repository, StorageService, EventEmitter } from '@credo-ts/core';
|
|
3
|
+
import { AnonCredsKeyCorrectnessProofRecord } from './AnonCredsKeyCorrectnessProofRecord';
|
|
4
|
+
export declare class AnonCredsKeyCorrectnessProofRepository extends Repository<AnonCredsKeyCorrectnessProofRecord> {
|
|
5
|
+
constructor(storageService: StorageService<AnonCredsKeyCorrectnessProofRecord>, eventEmitter: EventEmitter);
|
|
6
|
+
getByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string): Promise<AnonCredsKeyCorrectnessProofRecord>;
|
|
7
|
+
findByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string): Promise<AnonCredsKeyCorrectnessProofRecord | null>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AnonCredsKeyCorrectnessProofRepository = void 0;
|
|
16
|
+
const core_1 = require("@credo-ts/core");
|
|
17
|
+
const AnonCredsKeyCorrectnessProofRecord_1 = require("./AnonCredsKeyCorrectnessProofRecord");
|
|
18
|
+
let AnonCredsKeyCorrectnessProofRepository = class AnonCredsKeyCorrectnessProofRepository extends core_1.Repository {
|
|
19
|
+
constructor(storageService, eventEmitter) {
|
|
20
|
+
super(AnonCredsKeyCorrectnessProofRecord_1.AnonCredsKeyCorrectnessProofRecord, storageService, eventEmitter);
|
|
21
|
+
}
|
|
22
|
+
async getByCredentialDefinitionId(agentContext, credentialDefinitionId) {
|
|
23
|
+
return this.getSingleByQuery(agentContext, { credentialDefinitionId });
|
|
24
|
+
}
|
|
25
|
+
async findByCredentialDefinitionId(agentContext, credentialDefinitionId) {
|
|
26
|
+
return this.findSingleByQuery(agentContext, { credentialDefinitionId });
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
AnonCredsKeyCorrectnessProofRepository = __decorate([
|
|
30
|
+
(0, core_1.injectable)(),
|
|
31
|
+
__param(0, (0, core_1.inject)(core_1.InjectionSymbols.StorageService)),
|
|
32
|
+
__metadata("design:paramtypes", [Object, core_1.EventEmitter])
|
|
33
|
+
], AnonCredsKeyCorrectnessProofRepository);
|
|
34
|
+
exports.AnonCredsKeyCorrectnessProofRepository = AnonCredsKeyCorrectnessProofRepository;
|
|
35
|
+
//# sourceMappingURL=AnonCredsKeyCorrectnessProofRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsKeyCorrectnessProofRepository.js","sourceRoot":"","sources":["../../src/repository/AnonCredsKeyCorrectnessProofRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAA+G;AAE/G,6FAAyF;AAGlF,IAAM,sCAAsC,GAA5C,MAAM,sCAAuC,SAAQ,iBAA8C;IACxG,YAC2C,cAAkE,EAC3G,YAA0B;QAE1B,KAAK,CAAC,uEAAkC,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IACzE,CAAC;IAEM,KAAK,CAAC,2BAA2B,CAAC,YAA0B,EAAE,sBAA8B;QACjG,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EAAE,sBAAsB,EAAE,CAAC,CAAA;IACxE,CAAC;IAEM,KAAK,CAAC,4BAA4B,CAAC,YAA0B,EAAE,sBAA8B;QAClG,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,EAAE,sBAAsB,EAAE,CAAC,CAAA;IACzE,CAAC;CACF,CAAA;AAfY,sCAAsC;IADlD,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,mBAAY;GAHjB,sCAAsC,CAelD;AAfY,wFAAsC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TagsBase } from '@credo-ts/core';
|
|
2
|
+
import { BaseRecord } from '@credo-ts/core';
|
|
3
|
+
export interface AnonCredsLinkSecretRecordProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
linkSecretId: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
}
|
|
8
|
+
export type DefaultAnonCredsLinkSecretTags = {
|
|
9
|
+
linkSecretId: string;
|
|
10
|
+
};
|
|
11
|
+
export type CustomAnonCredsLinkSecretTags = TagsBase & {
|
|
12
|
+
isDefault?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare class AnonCredsLinkSecretRecord extends BaseRecord<DefaultAnonCredsLinkSecretTags, TagsBase> {
|
|
15
|
+
static readonly type = "AnonCredsLinkSecretRecord";
|
|
16
|
+
readonly type = "AnonCredsLinkSecretRecord";
|
|
17
|
+
readonly linkSecretId: string;
|
|
18
|
+
readonly value?: string;
|
|
19
|
+
constructor(props: AnonCredsLinkSecretRecordProps);
|
|
20
|
+
getTags(): {
|
|
21
|
+
linkSecretId: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnonCredsLinkSecretRecord = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
class AnonCredsLinkSecretRecord extends core_1.BaseRecord {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
var _a;
|
|
8
|
+
super();
|
|
9
|
+
this.type = AnonCredsLinkSecretRecord.type;
|
|
10
|
+
if (props) {
|
|
11
|
+
this.id = (_a = props.id) !== null && _a !== void 0 ? _a : core_1.utils.uuid();
|
|
12
|
+
this.linkSecretId = props.linkSecretId;
|
|
13
|
+
this.value = props.value;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
getTags() {
|
|
17
|
+
return Object.assign(Object.assign({}, this._tags), { linkSecretId: this.linkSecretId });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.AnonCredsLinkSecretRecord = AnonCredsLinkSecretRecord;
|
|
21
|
+
AnonCredsLinkSecretRecord.type = 'AnonCredsLinkSecretRecord';
|
|
22
|
+
//# sourceMappingURL=AnonCredsLinkSecretRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsLinkSecretRecord.js","sourceRoot":"","sources":["../../src/repository/AnonCredsLinkSecretRecord.ts"],"names":[],"mappings":";;;AAEA,yCAAkD;AAgBlD,MAAa,yBAA0B,SAAQ,iBAAoD;IAOjG,YAAmB,KAAqC;;QACtD,KAAK,EAAE,CAAA;QANO,SAAI,GAAG,yBAAyB,CAAC,IAAI,CAAA;QAQnD,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,MAAA,KAAK,CAAC,EAAE,mCAAI,YAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;YACtC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;SACzB;IACH,CAAC;IAEM,OAAO;QACZ,uCACK,IAAI,CAAC,KAAK,KACb,YAAY,EAAE,IAAI,CAAC,YAAY,IAChC;IACH,CAAC;;AAtBH,8DAuBC;AAtBwB,8BAAI,GAAG,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentContext } from '@credo-ts/core';
|
|
2
|
+
import { Repository, StorageService, EventEmitter } from '@credo-ts/core';
|
|
3
|
+
import { AnonCredsLinkSecretRecord } from './AnonCredsLinkSecretRecord';
|
|
4
|
+
export declare class AnonCredsLinkSecretRepository extends Repository<AnonCredsLinkSecretRecord> {
|
|
5
|
+
constructor(storageService: StorageService<AnonCredsLinkSecretRecord>, eventEmitter: EventEmitter);
|
|
6
|
+
getDefault(agentContext: AgentContext): Promise<AnonCredsLinkSecretRecord>;
|
|
7
|
+
findDefault(agentContext: AgentContext): Promise<AnonCredsLinkSecretRecord | null>;
|
|
8
|
+
getByLinkSecretId(agentContext: AgentContext, linkSecretId: string): Promise<AnonCredsLinkSecretRecord>;
|
|
9
|
+
findByLinkSecretId(agentContext: AgentContext, linkSecretId: string): Promise<AnonCredsLinkSecretRecord | null>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AnonCredsLinkSecretRepository = void 0;
|
|
16
|
+
const core_1 = require("@credo-ts/core");
|
|
17
|
+
const AnonCredsLinkSecretRecord_1 = require("./AnonCredsLinkSecretRecord");
|
|
18
|
+
let AnonCredsLinkSecretRepository = class AnonCredsLinkSecretRepository extends core_1.Repository {
|
|
19
|
+
constructor(storageService, eventEmitter) {
|
|
20
|
+
super(AnonCredsLinkSecretRecord_1.AnonCredsLinkSecretRecord, storageService, eventEmitter);
|
|
21
|
+
}
|
|
22
|
+
async getDefault(agentContext) {
|
|
23
|
+
return this.getSingleByQuery(agentContext, { isDefault: true });
|
|
24
|
+
}
|
|
25
|
+
async findDefault(agentContext) {
|
|
26
|
+
return this.findSingleByQuery(agentContext, { isDefault: true });
|
|
27
|
+
}
|
|
28
|
+
async getByLinkSecretId(agentContext, linkSecretId) {
|
|
29
|
+
return this.getSingleByQuery(agentContext, { linkSecretId });
|
|
30
|
+
}
|
|
31
|
+
async findByLinkSecretId(agentContext, linkSecretId) {
|
|
32
|
+
return this.findSingleByQuery(agentContext, { linkSecretId });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
AnonCredsLinkSecretRepository = __decorate([
|
|
36
|
+
(0, core_1.injectable)(),
|
|
37
|
+
__param(0, (0, core_1.inject)(core_1.InjectionSymbols.StorageService)),
|
|
38
|
+
__metadata("design:paramtypes", [Object, core_1.EventEmitter])
|
|
39
|
+
], AnonCredsLinkSecretRepository);
|
|
40
|
+
exports.AnonCredsLinkSecretRepository = AnonCredsLinkSecretRepository;
|
|
41
|
+
//# sourceMappingURL=AnonCredsLinkSecretRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsLinkSecretRepository.js","sourceRoot":"","sources":["../../src/repository/AnonCredsLinkSecretRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAA+G;AAE/G,2EAAuE;AAGhE,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,iBAAqC;IACtF,YAC2C,cAAyD,EAClG,YAA0B;QAE1B,KAAK,CAAC,qDAAyB,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IAChE,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,YAA0B;QAChD,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IACjE,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,YAA0B;QACjD,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAClE,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,YAA0B,EAAE,YAAoB;QAC7E,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA;IAC9D,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAAC,YAA0B,EAAE,YAAoB;QAC9E,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,CAAC,CAAA;IAC/D,CAAC;CACF,CAAA;AAvBY,6BAA6B;IADzC,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,mBAAY;GAHjB,6BAA6B,CAuBzC;AAvBY,sEAA6B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { TagsBase } from '@credo-ts/core';
|
|
2
|
+
import { BaseRecord } from '@credo-ts/core';
|
|
3
|
+
export declare enum AnonCredsRevocationRegistryState {
|
|
4
|
+
Created = "created",
|
|
5
|
+
Active = "active",
|
|
6
|
+
Full = "full"
|
|
7
|
+
}
|
|
8
|
+
export interface AnonCredsRevocationRegistryDefinitionPrivateRecordProps {
|
|
9
|
+
id?: string;
|
|
10
|
+
revocationRegistryDefinitionId: string;
|
|
11
|
+
credentialDefinitionId: string;
|
|
12
|
+
value: Record<string, unknown>;
|
|
13
|
+
index?: number;
|
|
14
|
+
state?: AnonCredsRevocationRegistryState;
|
|
15
|
+
}
|
|
16
|
+
export type DefaultAnonCredsRevocationRegistryPrivateTags = {
|
|
17
|
+
revocationRegistryDefinitionId: string;
|
|
18
|
+
credentialDefinitionId: string;
|
|
19
|
+
state: AnonCredsRevocationRegistryState;
|
|
20
|
+
};
|
|
21
|
+
export declare class AnonCredsRevocationRegistryDefinitionPrivateRecord extends BaseRecord<DefaultAnonCredsRevocationRegistryPrivateTags, TagsBase> {
|
|
22
|
+
static readonly type = "AnonCredsRevocationRegistryDefinitionPrivateRecord";
|
|
23
|
+
readonly type = "AnonCredsRevocationRegistryDefinitionPrivateRecord";
|
|
24
|
+
readonly revocationRegistryDefinitionId: string;
|
|
25
|
+
readonly credentialDefinitionId: string;
|
|
26
|
+
readonly value: Record<string, unknown>;
|
|
27
|
+
state: AnonCredsRevocationRegistryState;
|
|
28
|
+
constructor(props: AnonCredsRevocationRegistryDefinitionPrivateRecordProps);
|
|
29
|
+
getTags(): {
|
|
30
|
+
revocationRegistryDefinitionId: string;
|
|
31
|
+
credentialDefinitionId: string;
|
|
32
|
+
state: AnonCredsRevocationRegistryState;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnonCredsRevocationRegistryDefinitionPrivateRecord = exports.AnonCredsRevocationRegistryState = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
var AnonCredsRevocationRegistryState;
|
|
6
|
+
(function (AnonCredsRevocationRegistryState) {
|
|
7
|
+
AnonCredsRevocationRegistryState["Created"] = "created";
|
|
8
|
+
AnonCredsRevocationRegistryState["Active"] = "active";
|
|
9
|
+
AnonCredsRevocationRegistryState["Full"] = "full";
|
|
10
|
+
})(AnonCredsRevocationRegistryState = exports.AnonCredsRevocationRegistryState || (exports.AnonCredsRevocationRegistryState = {}));
|
|
11
|
+
class AnonCredsRevocationRegistryDefinitionPrivateRecord extends core_1.BaseRecord {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
super();
|
|
15
|
+
this.type = AnonCredsRevocationRegistryDefinitionPrivateRecord.type;
|
|
16
|
+
if (props) {
|
|
17
|
+
this.id = (_a = props.id) !== null && _a !== void 0 ? _a : core_1.utils.uuid();
|
|
18
|
+
this.revocationRegistryDefinitionId = props.revocationRegistryDefinitionId;
|
|
19
|
+
this.credentialDefinitionId = props.credentialDefinitionId;
|
|
20
|
+
this.value = props.value;
|
|
21
|
+
this.state = (_b = props.state) !== null && _b !== void 0 ? _b : AnonCredsRevocationRegistryState.Created;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
getTags() {
|
|
25
|
+
return Object.assign(Object.assign({}, this._tags), { revocationRegistryDefinitionId: this.revocationRegistryDefinitionId, credentialDefinitionId: this.credentialDefinitionId, state: this.state });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.AnonCredsRevocationRegistryDefinitionPrivateRecord = AnonCredsRevocationRegistryDefinitionPrivateRecord;
|
|
29
|
+
AnonCredsRevocationRegistryDefinitionPrivateRecord.type = 'AnonCredsRevocationRegistryDefinitionPrivateRecord';
|
|
30
|
+
//# sourceMappingURL=AnonCredsRevocationRegistryDefinitionPrivateRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsRevocationRegistryDefinitionPrivateRecord.js","sourceRoot":"","sources":["../../src/repository/AnonCredsRevocationRegistryDefinitionPrivateRecord.ts"],"names":[],"mappings":";;;AAEA,yCAAkD;AAElD,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IAC1C,uDAAmB,CAAA;IACnB,qDAAiB,CAAA;IACjB,iDAAa,CAAA;AACf,CAAC,EAJW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAI3C;AAiBD,MAAa,kDAAmD,SAAQ,iBAGvE;IAUC,YAAmB,KAA8D;;QAC/E,KAAK,EAAE,CAAA;QATO,SAAI,GAAG,kDAAkD,CAAC,IAAI,CAAA;QAW5E,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,EAAE,GAAG,MAAA,KAAK,CAAC,EAAE,mCAAI,YAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,8BAA8B,GAAG,KAAK,CAAC,8BAA8B,CAAA;YAC1E,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC,sBAAsB,CAAA;YAC1D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;YACxB,IAAI,CAAC,KAAK,GAAG,MAAA,KAAK,CAAC,KAAK,mCAAI,gCAAgC,CAAC,OAAO,CAAA;SACrE;IACH,CAAC;IAEM,OAAO;QACZ,uCACK,IAAI,CAAC,KAAK,KACb,8BAA8B,EAAE,IAAI,CAAC,8BAA8B,EACnE,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,KAAK,EAAE,IAAI,CAAC,KAAK,IAClB;IACH,CAAC;;AAhCH,gHAiCC;AA7BwB,uDAAI,GAAG,oDAAoD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AnonCredsRevocationRegistryState } from './AnonCredsRevocationRegistryDefinitionPrivateRecord';
|
|
2
|
+
import type { AgentContext } from '@credo-ts/core';
|
|
3
|
+
import { Repository, StorageService, EventEmitter } from '@credo-ts/core';
|
|
4
|
+
import { AnonCredsRevocationRegistryDefinitionPrivateRecord } from './AnonCredsRevocationRegistryDefinitionPrivateRecord';
|
|
5
|
+
export declare class AnonCredsRevocationRegistryDefinitionPrivateRepository extends Repository<AnonCredsRevocationRegistryDefinitionPrivateRecord> {
|
|
6
|
+
constructor(storageService: StorageService<AnonCredsRevocationRegistryDefinitionPrivateRecord>, eventEmitter: EventEmitter);
|
|
7
|
+
getByRevocationRegistryDefinitionId(agentContext: AgentContext, revocationRegistryDefinitionId: string): Promise<AnonCredsRevocationRegistryDefinitionPrivateRecord>;
|
|
8
|
+
findByRevocationRegistryDefinitionId(agentContext: AgentContext, revocationRegistryDefinitionId: string): Promise<AnonCredsRevocationRegistryDefinitionPrivateRecord | null>;
|
|
9
|
+
findAllByCredentialDefinitionIdAndState(agentContext: AgentContext, credentialDefinitionId: string, state?: AnonCredsRevocationRegistryState): Promise<AnonCredsRevocationRegistryDefinitionPrivateRecord[]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AnonCredsRevocationRegistryDefinitionPrivateRepository = void 0;
|
|
16
|
+
const core_1 = require("@credo-ts/core");
|
|
17
|
+
const AnonCredsRevocationRegistryDefinitionPrivateRecord_1 = require("./AnonCredsRevocationRegistryDefinitionPrivateRecord");
|
|
18
|
+
let AnonCredsRevocationRegistryDefinitionPrivateRepository = class AnonCredsRevocationRegistryDefinitionPrivateRepository extends core_1.Repository {
|
|
19
|
+
constructor(storageService, eventEmitter) {
|
|
20
|
+
super(AnonCredsRevocationRegistryDefinitionPrivateRecord_1.AnonCredsRevocationRegistryDefinitionPrivateRecord, storageService, eventEmitter);
|
|
21
|
+
}
|
|
22
|
+
async getByRevocationRegistryDefinitionId(agentContext, revocationRegistryDefinitionId) {
|
|
23
|
+
return this.getSingleByQuery(agentContext, { revocationRegistryDefinitionId });
|
|
24
|
+
}
|
|
25
|
+
async findByRevocationRegistryDefinitionId(agentContext, revocationRegistryDefinitionId) {
|
|
26
|
+
return this.findSingleByQuery(agentContext, { revocationRegistryDefinitionId });
|
|
27
|
+
}
|
|
28
|
+
async findAllByCredentialDefinitionIdAndState(agentContext, credentialDefinitionId, state) {
|
|
29
|
+
return this.findByQuery(agentContext, { credentialDefinitionId, state });
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
AnonCredsRevocationRegistryDefinitionPrivateRepository = __decorate([
|
|
33
|
+
(0, core_1.injectable)(),
|
|
34
|
+
__param(0, (0, core_1.inject)(core_1.InjectionSymbols.StorageService)),
|
|
35
|
+
__metadata("design:paramtypes", [Object, core_1.EventEmitter])
|
|
36
|
+
], AnonCredsRevocationRegistryDefinitionPrivateRepository);
|
|
37
|
+
exports.AnonCredsRevocationRegistryDefinitionPrivateRepository = AnonCredsRevocationRegistryDefinitionPrivateRepository;
|
|
38
|
+
//# sourceMappingURL=AnonCredsRevocationRegistryDefinitionPrivateRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnonCredsRevocationRegistryDefinitionPrivateRepository.js","sourceRoot":"","sources":["../../src/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,yCAA+G;AAE/G,6HAAyH;AAGlH,IAAM,sDAAsD,GAA5D,MAAM,sDAAuD,SAAQ,iBAA8D;IACxI,YAEE,cAAkF,EAClF,YAA0B;QAE1B,KAAK,CAAC,uGAAkD,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IACzF,CAAC;IAEM,KAAK,CAAC,mCAAmC,CAAC,YAA0B,EAAE,8BAAsC;QACjH,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EAAE,8BAA8B,EAAE,CAAC,CAAA;IAChF,CAAC;IAEM,KAAK,CAAC,oCAAoC,CAC/C,YAA0B,EAC1B,8BAAsC;QAEtC,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,EAAE,8BAA8B,EAAE,CAAC,CAAA;IACjF,CAAC;IAEM,KAAK,CAAC,uCAAuC,CAClD,YAA0B,EAC1B,sBAA8B,EAC9B,KAAwC;QAExC,OAAO,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC,CAAA;IAC1E,CAAC;CACF,CAAA;AA3BY,sDAAsD;IADlE,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAE1B,mBAAY;GAJjB,sDAAsD,CA2BlE;AA3BY,wHAAsD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AnonCredsRevocationRegistryDefinitionRecordMetadata } from './anonCredsRevocationRegistryDefinitionRecordMetadataTypes';
|
|
2
|
+
import type { AnonCredsRevocationRegistryDefinition } from '../models';
|
|
3
|
+
import type { TagsBase } from '@credo-ts/core';
|
|
4
|
+
import { BaseRecord } from '@credo-ts/core';
|
|
5
|
+
export interface AnonCredsRevocationRegistryDefinitionRecordProps {
|
|
6
|
+
id?: string;
|
|
7
|
+
revocationRegistryDefinitionId: string;
|
|
8
|
+
revocationRegistryDefinition: AnonCredsRevocationRegistryDefinition;
|
|
9
|
+
}
|
|
10
|
+
export type DefaultAnonCredsRevocationRegistryDefinitionTags = {
|
|
11
|
+
revocationRegistryDefinitionId: string;
|
|
12
|
+
credentialDefinitionId: string;
|
|
13
|
+
};
|
|
14
|
+
export declare class AnonCredsRevocationRegistryDefinitionRecord extends BaseRecord<DefaultAnonCredsRevocationRegistryDefinitionTags, TagsBase, AnonCredsRevocationRegistryDefinitionRecordMetadata> {
|
|
15
|
+
static readonly type = "AnonCredsRevocationRegistryDefinitionRecord";
|
|
16
|
+
readonly type = "AnonCredsRevocationRegistryDefinitionRecord";
|
|
17
|
+
readonly revocationRegistryDefinitionId: string;
|
|
18
|
+
readonly revocationRegistryDefinition: AnonCredsRevocationRegistryDefinition;
|
|
19
|
+
constructor(props: AnonCredsRevocationRegistryDefinitionRecordProps);
|
|
20
|
+
getTags(): {
|
|
21
|
+
revocationRegistryDefinitionId: string;
|
|
22
|
+
credentialDefinitionId: string;
|
|
23
|
+
};
|
|
24
|
+
}
|