@credo-ts/anoncreds 0.5.0-alpha.101
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 +35 -0
- package/build/AnonCredsApi.d.ts +91 -0
- package/build/AnonCredsApi.js +577 -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 +19 -0
- package/build/AnonCredsModule.js +41 -0
- package/build/AnonCredsModule.js.map +1 -0
- package/build/AnonCredsModuleConfig.d.ts +28 -0
- package/build/AnonCredsModuleConfig.js +23 -0
- package/build/AnonCredsModuleConfig.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/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 +2 -0
- package/build/error/index.js +19 -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 +455 -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 +375 -0
- package/build/formats/AnonCredsProofFormatService.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 +414 -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 +384 -0
- package/build/formats/LegacyIndyProofFormatService.js.map +1 -0
- package/build/formats/index.d.ts +8 -0
- package/build/formats/index.js +30 -0
- package/build/formats/index.js.map +1 -0
- package/build/index.d.ts +16 -0
- package/build/index.js +41 -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 +100 -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 +38 -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/protocols/credentials/v1/V1CredentialProtocol.d.ts +162 -0
- package/build/protocols/credentials/v1/V1CredentialProtocol.js +901 -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 +826 -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 +15 -0
- package/build/services/AnonCredsHolderService.js +5 -0
- package/build/services/AnonCredsHolderService.js.map +1 -0
- package/build/services/AnonCredsHolderServiceOptions.d.ts +82 -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 +6 -0
- package/build/services/AnonCredsVerifierService.js +5 -0
- package/build/services/AnonCredsVerifierService.js.map +1 -0
- package/build/services/AnonCredsVerifierServiceOptions.d.ts +20 -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/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 +62 -0
- package/build/utils/credential.js +169 -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 +22 -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 +13 -0
- package/build/utils/index.js +36 -0
- package/build/utils/index.js.map +1 -0
- package/build/utils/indyIdentifiers.d.ts +48 -0
- package/build/utils/indyIdentifiers.js +146 -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 +7 -0
- package/build/utils/linkSecret.js +24 -0
- package/build/utils/linkSecret.js.map +1 -0
- package/build/utils/metadata.d.ts +24 -0
- package/build/utils/metadata.js +18 -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/package.json +41 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1CredentialProtocol.js","sourceRoot":"","sources":["../../../../src/protocols/credentials/v1/V1CredentialProtocol.ts"],"names":[],"mappings":";;;AAaA,yCAmBuB;AAEvB,6FAAyF;AACzF,0CAAiG;AAEjG,yCAOmB;AACnB,yCAWmB;AAMnB,MAAa,oBACX,SAAQ,6BAA2D;IAKnE,YAAmB,EAAE,oBAAoB,EAA8B;QACrE,KAAK,EAAE,CAAA;QAMT;;WAEG;QACa,YAAO,GAAG,IAAI,CAAA;QAP5B,0GAA0G;QAC1G,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAA;IAClD,CAAC;IAOD;;OAEG;IACI,QAAQ,CAAC,iBAAoC,EAAE,eAAgC;QACpF,iEAAiE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credo-ts/core';
|
|
3
|
+
import { V1CredentialProblemReportMessage } from '../messages';
|
|
4
|
+
export interface V1CredentialProblemReportErrorOptions extends ProblemReportErrorOptions {
|
|
5
|
+
problemCode: CredentialProblemReportReason;
|
|
6
|
+
}
|
|
7
|
+
export declare class V1CredentialProblemReportError extends ProblemReportError {
|
|
8
|
+
problemReport: V1CredentialProblemReportMessage;
|
|
9
|
+
constructor(message: string, { problemCode }: V1CredentialProblemReportErrorOptions);
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V1CredentialProblemReportError = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
const messages_1 = require("../messages");
|
|
6
|
+
class V1CredentialProblemReportError extends core_1.ProblemReportError {
|
|
7
|
+
constructor(message, { problemCode }) {
|
|
8
|
+
super(message, { problemCode });
|
|
9
|
+
this.problemReport = new messages_1.V1CredentialProblemReportMessage({
|
|
10
|
+
description: {
|
|
11
|
+
en: message,
|
|
12
|
+
code: problemCode,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.V1CredentialProblemReportError = V1CredentialProblemReportError;
|
|
18
|
+
//# sourceMappingURL=V1CredentialProblemReportError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1CredentialProblemReportError.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/errors/V1CredentialProblemReportError.ts"],"names":[],"mappings":";;;AAEA,yCAAmD;AAEnD,0CAA8D;AAM9D,MAAa,8BAA+B,SAAQ,yBAAkB;IAGpE,YAAmB,OAAe,EAAE,EAAE,WAAW,EAAyC;QACxF,KAAK,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,CAAC,CAAA;QAC/B,IAAI,CAAC,aAAa,GAAG,IAAI,2CAAgC,CAAC;YACxD,WAAW,EAAE;gBACX,EAAE,EAAE,OAAO;gBACX,IAAI,EAAE,WAAW;aAClB;SACF,CAAC,CAAA;IACJ,CAAC;CACF;AAZD,wEAYC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { V1CredentialProblemReportError, V1CredentialProblemReportErrorOptions } from './V1CredentialProblemReportError';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V1CredentialProblemReportError = void 0;
|
|
4
|
+
var V1CredentialProblemReportError_1 = require("./V1CredentialProblemReportError");
|
|
5
|
+
Object.defineProperty(exports, "V1CredentialProblemReportError", { enumerable: true, get: function () { return V1CredentialProblemReportError_1.V1CredentialProblemReportError; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/errors/index.ts"],"names":[],"mappings":";;;AAAA,mFAAwH;AAA/G,gJAAA,8BAA8B,OAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { V1CredentialProtocol } from '../V1CredentialProtocol';
|
|
2
|
+
import type { MessageHandler, MessageHandlerInboundMessage } from '@credo-ts/core';
|
|
3
|
+
import { V1CredentialAckMessage } from '../messages';
|
|
4
|
+
export declare class V1CredentialAckHandler implements MessageHandler {
|
|
5
|
+
private credentialProtocol;
|
|
6
|
+
supportedMessages: (typeof V1CredentialAckMessage)[];
|
|
7
|
+
constructor(credentialProtocol: V1CredentialProtocol);
|
|
8
|
+
handle(messageContext: MessageHandlerInboundMessage<V1CredentialAckHandler>): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V1CredentialAckHandler = void 0;
|
|
4
|
+
const messages_1 = require("../messages");
|
|
5
|
+
class V1CredentialAckHandler {
|
|
6
|
+
constructor(credentialProtocol) {
|
|
7
|
+
this.supportedMessages = [messages_1.V1CredentialAckMessage];
|
|
8
|
+
this.credentialProtocol = credentialProtocol;
|
|
9
|
+
}
|
|
10
|
+
async handle(messageContext) {
|
|
11
|
+
await this.credentialProtocol.processAck(messageContext);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.V1CredentialAckHandler = V1CredentialAckHandler;
|
|
15
|
+
//# sourceMappingURL=V1CredentialAckHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1CredentialAckHandler.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/handlers/V1CredentialAckHandler.ts"],"names":[],"mappings":";;;AAGA,0CAAoD;AAEpD,MAAa,sBAAsB;IAIjC,YAAmB,kBAAwC;QAFpD,sBAAiB,GAAG,CAAC,iCAAsB,CAAC,CAAA;QAGjD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAA;IAC9C,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,cAAoE;QACtF,MAAM,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;IAC1D,CAAC;CACF;AAXD,wDAWC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { V1CredentialProtocol } from '../V1CredentialProtocol';
|
|
2
|
+
import type { MessageHandler, MessageHandlerInboundMessage } from '@credo-ts/core';
|
|
3
|
+
import { V1CredentialProblemReportMessage } from '../messages';
|
|
4
|
+
export declare class V1CredentialProblemReportHandler implements MessageHandler {
|
|
5
|
+
private credentialProtocol;
|
|
6
|
+
supportedMessages: (typeof V1CredentialProblemReportMessage)[];
|
|
7
|
+
constructor(credentialProtocol: V1CredentialProtocol);
|
|
8
|
+
handle(messageContext: MessageHandlerInboundMessage<V1CredentialProblemReportHandler>): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V1CredentialProblemReportHandler = void 0;
|
|
4
|
+
const messages_1 = require("../messages");
|
|
5
|
+
class V1CredentialProblemReportHandler {
|
|
6
|
+
constructor(credentialProtocol) {
|
|
7
|
+
this.supportedMessages = [messages_1.V1CredentialProblemReportMessage];
|
|
8
|
+
this.credentialProtocol = credentialProtocol;
|
|
9
|
+
}
|
|
10
|
+
async handle(messageContext) {
|
|
11
|
+
await this.credentialProtocol.processProblemReport(messageContext);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.V1CredentialProblemReportHandler = V1CredentialProblemReportHandler;
|
|
15
|
+
//# sourceMappingURL=V1CredentialProblemReportHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1CredentialProblemReportHandler.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/handlers/V1CredentialProblemReportHandler.ts"],"names":[],"mappings":";;;AAGA,0CAA8D;AAE9D,MAAa,gCAAgC;IAI3C,YAAmB,kBAAwC;QAFpD,sBAAiB,GAAG,CAAC,2CAAgC,CAAC,CAAA;QAG3D,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAA;IAC9C,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,cAA8E;QAChG,MAAM,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAA;IACpE,CAAC;CACF;AAXD,4EAWC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { V1CredentialProtocol } from '../V1CredentialProtocol';
|
|
2
|
+
import type { MessageHandler, MessageHandlerInboundMessage } from '@credo-ts/core';
|
|
3
|
+
import { V1IssueCredentialMessage } from '../messages';
|
|
4
|
+
export declare class V1IssueCredentialHandler implements MessageHandler {
|
|
5
|
+
private credentialProtocol;
|
|
6
|
+
supportedMessages: (typeof V1IssueCredentialMessage)[];
|
|
7
|
+
constructor(credentialProtocol: V1CredentialProtocol);
|
|
8
|
+
handle(messageContext: MessageHandlerInboundMessage<V1IssueCredentialHandler>): Promise<import("@credo-ts/core").OutboundMessageContext<import("@credo-ts/core").AgentMessage> | undefined>;
|
|
9
|
+
private acceptCredential;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V1IssueCredentialHandler = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
const messages_1 = require("../messages");
|
|
6
|
+
class V1IssueCredentialHandler {
|
|
7
|
+
constructor(credentialProtocol) {
|
|
8
|
+
this.supportedMessages = [messages_1.V1IssueCredentialMessage];
|
|
9
|
+
this.credentialProtocol = credentialProtocol;
|
|
10
|
+
}
|
|
11
|
+
async handle(messageContext) {
|
|
12
|
+
const credentialRecord = await this.credentialProtocol.processCredential(messageContext);
|
|
13
|
+
const shouldAutoRespond = await this.credentialProtocol.shouldAutoRespondToCredential(messageContext.agentContext, {
|
|
14
|
+
credentialRecord,
|
|
15
|
+
credentialMessage: messageContext.message,
|
|
16
|
+
});
|
|
17
|
+
if (shouldAutoRespond) {
|
|
18
|
+
return await this.acceptCredential(credentialRecord, messageContext);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
async acceptCredential(credentialRecord, messageContext) {
|
|
22
|
+
messageContext.agentContext.config.logger.info(`Automatically sending acknowledgement with autoAccept`);
|
|
23
|
+
const { message } = await this.credentialProtocol.acceptCredential(messageContext.agentContext, {
|
|
24
|
+
credentialRecord,
|
|
25
|
+
});
|
|
26
|
+
const requestMessage = await this.credentialProtocol.findRequestMessage(messageContext.agentContext, credentialRecord.id);
|
|
27
|
+
if (!requestMessage) {
|
|
28
|
+
throw new core_1.AriesFrameworkError(`No request message found for credential record with id '${credentialRecord.id}'`);
|
|
29
|
+
}
|
|
30
|
+
return (0, core_1.getOutboundMessageContext)(messageContext.agentContext, {
|
|
31
|
+
connectionRecord: messageContext.connection,
|
|
32
|
+
message,
|
|
33
|
+
associatedRecord: credentialRecord,
|
|
34
|
+
lastReceivedMessage: messageContext.message,
|
|
35
|
+
lastSentMessage: requestMessage,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.V1IssueCredentialHandler = V1IssueCredentialHandler;
|
|
40
|
+
//# sourceMappingURL=V1IssueCredentialHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1IssueCredentialHandler.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/handlers/V1IssueCredentialHandler.ts"],"names":[],"mappings":";;;AAGA,yCAA+E;AAE/E,0CAAsD;AAEtD,MAAa,wBAAwB;IAKnC,YAAmB,kBAAwC;QAFpD,sBAAiB,GAAG,CAAC,mCAAwB,CAAC,CAAA;QAGnD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAA;IAC9C,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,cAAsE;QACxF,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAA;QAExF,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,6BAA6B,CAAC,cAAc,CAAC,YAAY,EAAE;YACjH,gBAAgB;YAChB,iBAAiB,EAAE,cAAc,CAAC,OAAO;SAC1C,CAAC,CAAA;QAEF,IAAI,iBAAiB,EAAE;YACrB,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAA;SACrE;IACH,CAAC;IAEO,KAAK,CAAC,gBAAgB,CAC5B,gBAA0C,EAC1C,cAAsE;QAEtE,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAA;QACvG,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,cAAc,CAAC,YAAY,EAAE;YAC9F,gBAAgB;SACjB,CAAC,CAAA;QAEF,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CACrE,cAAc,CAAC,YAAY,EAC3B,gBAAgB,CAAC,EAAE,CACpB,CAAA;QACD,IAAI,CAAC,cAAc,EAAE;YACnB,MAAM,IAAI,0BAAmB,CAAC,2DAA2D,gBAAgB,CAAC,EAAE,GAAG,CAAC,CAAA;SACjH;QAED,OAAO,IAAA,gCAAyB,EAAC,cAAc,CAAC,YAAY,EAAE;YAC5D,gBAAgB,EAAE,cAAc,CAAC,UAAU;YAC3C,OAAO;YACP,gBAAgB,EAAE,gBAAgB;YAClC,mBAAmB,EAAE,cAAc,CAAC,OAAO;YAC3C,eAAe,EAAE,cAAc;SAChC,CAAC,CAAA;IACJ,CAAC;CACF;AA/CD,4DA+CC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { V1CredentialProtocol } from '../V1CredentialProtocol';
|
|
2
|
+
import type { MessageHandler, MessageHandlerInboundMessage } from '@credo-ts/core';
|
|
3
|
+
import { V1OfferCredentialMessage } from '../messages';
|
|
4
|
+
export declare class V1OfferCredentialHandler implements MessageHandler {
|
|
5
|
+
private credentialProtocol;
|
|
6
|
+
supportedMessages: (typeof V1OfferCredentialMessage)[];
|
|
7
|
+
constructor(credentialProtocol: V1CredentialProtocol);
|
|
8
|
+
handle(messageContext: MessageHandlerInboundMessage<V1OfferCredentialHandler>): Promise<import("@credo-ts/core").OutboundMessageContext<import("@credo-ts/core").AgentMessage> | undefined>;
|
|
9
|
+
private acceptOffer;
|
|
10
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V1OfferCredentialHandler = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
const messages_1 = require("../messages");
|
|
6
|
+
class V1OfferCredentialHandler {
|
|
7
|
+
constructor(credentialProtocol) {
|
|
8
|
+
this.supportedMessages = [messages_1.V1OfferCredentialMessage];
|
|
9
|
+
this.credentialProtocol = credentialProtocol;
|
|
10
|
+
}
|
|
11
|
+
async handle(messageContext) {
|
|
12
|
+
const credentialRecord = await this.credentialProtocol.processOffer(messageContext);
|
|
13
|
+
const shouldAutoRespond = await this.credentialProtocol.shouldAutoRespondToOffer(messageContext.agentContext, {
|
|
14
|
+
credentialRecord,
|
|
15
|
+
offerMessage: messageContext.message,
|
|
16
|
+
});
|
|
17
|
+
if (shouldAutoRespond) {
|
|
18
|
+
return await this.acceptOffer(credentialRecord, messageContext);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
async acceptOffer(credentialRecord, messageContext) {
|
|
22
|
+
messageContext.agentContext.config.logger.info(`Automatically sending request with autoAccept`);
|
|
23
|
+
const { message } = await this.credentialProtocol.acceptOffer(messageContext.agentContext, { credentialRecord });
|
|
24
|
+
return (0, core_1.getOutboundMessageContext)(messageContext.agentContext, {
|
|
25
|
+
connectionRecord: messageContext.connection,
|
|
26
|
+
message,
|
|
27
|
+
associatedRecord: credentialRecord,
|
|
28
|
+
lastReceivedMessage: messageContext.message,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.V1OfferCredentialHandler = V1OfferCredentialHandler;
|
|
33
|
+
//# sourceMappingURL=V1OfferCredentialHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1OfferCredentialHandler.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/handlers/V1OfferCredentialHandler.ts"],"names":[],"mappings":";;;AAGA,yCAA0D;AAE1D,0CAAsD;AAEtD,MAAa,wBAAwB;IAInC,YAAmB,kBAAwC;QAFpD,sBAAiB,GAAG,CAAC,mCAAwB,CAAC,CAAA;QAGnD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAA;IAC9C,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,cAAsE;QACxF,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,cAAc,CAAC,CAAA;QAEnF,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,wBAAwB,CAAC,cAAc,CAAC,YAAY,EAAE;YAC5G,gBAAgB;YAChB,YAAY,EAAE,cAAc,CAAC,OAAO;SACrC,CAAC,CAAA;QAEF,IAAI,iBAAiB,EAAE;YACrB,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAA;SAChE;IACH,CAAC;IAEO,KAAK,CAAC,WAAW,CACvB,gBAA0C,EAC1C,cAAsE;QAEtE,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAA;QAC/F,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,cAAc,CAAC,YAAY,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAA;QAEhH,OAAO,IAAA,gCAAyB,EAAC,cAAc,CAAC,YAAY,EAAE;YAC5D,gBAAgB,EAAE,cAAc,CAAC,UAAU;YAC3C,OAAO;YACP,gBAAgB,EAAE,gBAAgB;YAClC,mBAAmB,EAAE,cAAc,CAAC,OAAO;SAC5C,CAAC,CAAA;IACJ,CAAC;CACF;AAnCD,4DAmCC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { V1CredentialProtocol } from '../V1CredentialProtocol';
|
|
2
|
+
import type { MessageHandler, MessageHandlerInboundMessage } from '@credo-ts/core';
|
|
3
|
+
import { V1ProposeCredentialMessage } from '../messages';
|
|
4
|
+
export declare class V1ProposeCredentialHandler implements MessageHandler {
|
|
5
|
+
private credentialProtocol;
|
|
6
|
+
supportedMessages: (typeof V1ProposeCredentialMessage)[];
|
|
7
|
+
constructor(credentialProtocol: V1CredentialProtocol);
|
|
8
|
+
handle(messageContext: MessageHandlerInboundMessage<V1ProposeCredentialHandler>): Promise<import("@credo-ts/core").OutboundMessageContext<import("@credo-ts/core").AgentMessage> | undefined>;
|
|
9
|
+
private acceptProposal;
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V1ProposeCredentialHandler = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
const messages_1 = require("../messages");
|
|
6
|
+
class V1ProposeCredentialHandler {
|
|
7
|
+
constructor(credentialProtocol) {
|
|
8
|
+
this.supportedMessages = [messages_1.V1ProposeCredentialMessage];
|
|
9
|
+
this.credentialProtocol = credentialProtocol;
|
|
10
|
+
}
|
|
11
|
+
async handle(messageContext) {
|
|
12
|
+
const credentialRecord = await this.credentialProtocol.processProposal(messageContext);
|
|
13
|
+
const shouldAutoAcceptProposal = await this.credentialProtocol.shouldAutoRespondToProposal(messageContext.agentContext, {
|
|
14
|
+
credentialRecord,
|
|
15
|
+
proposalMessage: messageContext.message,
|
|
16
|
+
});
|
|
17
|
+
if (shouldAutoAcceptProposal) {
|
|
18
|
+
return await this.acceptProposal(credentialRecord, messageContext);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
async acceptProposal(credentialRecord, messageContext) {
|
|
22
|
+
messageContext.agentContext.config.logger.info(`Automatically sending offer with autoAccept`);
|
|
23
|
+
if (!messageContext.connection) {
|
|
24
|
+
messageContext.agentContext.config.logger.error('No connection on the messageContext, aborting auto accept');
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const { message } = await this.credentialProtocol.acceptProposal(messageContext.agentContext, {
|
|
28
|
+
credentialRecord,
|
|
29
|
+
});
|
|
30
|
+
return (0, core_1.getOutboundMessageContext)(messageContext.agentContext, {
|
|
31
|
+
message,
|
|
32
|
+
connectionRecord: messageContext.connection,
|
|
33
|
+
associatedRecord: credentialRecord,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.V1ProposeCredentialHandler = V1ProposeCredentialHandler;
|
|
38
|
+
//# sourceMappingURL=V1ProposeCredentialHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1ProposeCredentialHandler.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/handlers/V1ProposeCredentialHandler.ts"],"names":[],"mappings":";;;AAGA,yCAA0D;AAE1D,0CAAwD;AAExD,MAAa,0BAA0B;IAIrC,YAAmB,kBAAwC;QAFpD,sBAAiB,GAAG,CAAC,qCAA0B,CAAC,CAAA;QAGrD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAA;IAC9C,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,cAAwE;QAC1F,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,cAAc,CAAC,CAAA;QAEtF,MAAM,wBAAwB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,2BAA2B,CACxF,cAAc,CAAC,YAAY,EAC3B;YACE,gBAAgB;YAChB,eAAe,EAAE,cAAc,CAAC,OAAO;SACxC,CACF,CAAA;QAED,IAAI,wBAAwB,EAAE;YAC5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAA;SACnE;IACH,CAAC;IAEO,KAAK,CAAC,cAAc,CAC1B,gBAA0C,EAC1C,cAAwE;QAExE,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAA;QAE7F,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE;YAC9B,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAA;YAC5G,OAAM;SACP;QAED,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,YAAY,EAAE;YAC5F,gBAAgB;SACjB,CAAC,CAAA;QAEF,OAAO,IAAA,gCAAyB,EAAC,cAAc,CAAC,YAAY,EAAE;YAC5D,OAAO;YACP,gBAAgB,EAAE,cAAc,CAAC,UAAU;YAC3C,gBAAgB,EAAE,gBAAgB;SACnC,CAAC,CAAA;IACJ,CAAC;CACF;AA7CD,gEA6CC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { V1CredentialProtocol } from '../V1CredentialProtocol';
|
|
2
|
+
import type { MessageHandler, MessageHandlerInboundMessage } from '@credo-ts/core';
|
|
3
|
+
import { V1RequestCredentialMessage } from '../messages';
|
|
4
|
+
export declare class V1RequestCredentialHandler implements MessageHandler {
|
|
5
|
+
private credentialProtocol;
|
|
6
|
+
supportedMessages: (typeof V1RequestCredentialMessage)[];
|
|
7
|
+
constructor(credentialProtocol: V1CredentialProtocol);
|
|
8
|
+
handle(messageContext: MessageHandlerInboundMessage<V1RequestCredentialHandler>): Promise<import("@credo-ts/core").OutboundMessageContext<import("@credo-ts/core").AgentMessage> | undefined>;
|
|
9
|
+
private acceptRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V1RequestCredentialHandler = void 0;
|
|
4
|
+
const core_1 = require("@credo-ts/core");
|
|
5
|
+
const messages_1 = require("../messages");
|
|
6
|
+
class V1RequestCredentialHandler {
|
|
7
|
+
constructor(credentialProtocol) {
|
|
8
|
+
this.supportedMessages = [messages_1.V1RequestCredentialMessage];
|
|
9
|
+
this.credentialProtocol = credentialProtocol;
|
|
10
|
+
}
|
|
11
|
+
async handle(messageContext) {
|
|
12
|
+
const credentialRecord = await this.credentialProtocol.processRequest(messageContext);
|
|
13
|
+
const shouldAutoRespond = await this.credentialProtocol.shouldAutoRespondToRequest(messageContext.agentContext, {
|
|
14
|
+
credentialRecord,
|
|
15
|
+
requestMessage: messageContext.message,
|
|
16
|
+
});
|
|
17
|
+
if (shouldAutoRespond) {
|
|
18
|
+
return await this.acceptRequest(credentialRecord, messageContext);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
async acceptRequest(credentialRecord, messageContext) {
|
|
22
|
+
messageContext.agentContext.config.logger.info(`Automatically sending credential with autoAccept`);
|
|
23
|
+
const offerMessage = await this.credentialProtocol.findOfferMessage(messageContext.agentContext, credentialRecord.id);
|
|
24
|
+
if (!offerMessage) {
|
|
25
|
+
throw new core_1.AriesFrameworkError(`Could not find offer message for credential record with id ${credentialRecord.id}`);
|
|
26
|
+
}
|
|
27
|
+
const { message } = await this.credentialProtocol.acceptRequest(messageContext.agentContext, {
|
|
28
|
+
credentialRecord,
|
|
29
|
+
});
|
|
30
|
+
return (0, core_1.getOutboundMessageContext)(messageContext.agentContext, {
|
|
31
|
+
connectionRecord: messageContext.connection,
|
|
32
|
+
message,
|
|
33
|
+
associatedRecord: credentialRecord,
|
|
34
|
+
lastReceivedMessage: messageContext.message,
|
|
35
|
+
lastSentMessage: offerMessage,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.V1RequestCredentialHandler = V1RequestCredentialHandler;
|
|
40
|
+
//# sourceMappingURL=V1RequestCredentialHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1RequestCredentialHandler.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/handlers/V1RequestCredentialHandler.ts"],"names":[],"mappings":";;;AAGA,yCAA+E;AAE/E,0CAAwD;AAExD,MAAa,0BAA0B;IAIrC,YAAmB,kBAAwC;QAFpD,sBAAiB,GAAG,CAAC,qCAA0B,CAAC,CAAA;QAGrD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAA;IAC9C,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,cAAwE;QAC1F,MAA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|
|
3
|
+
export * from './V1OfferCredentialHandler';
|
|
4
|
+
export * from './V1ProposeCredentialHandler';
|
|
5
|
+
export * from './V1RequestCredentialHandler';
|
|
6
|
+
export * from './V1CredentialProblemReportHandler';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./V1CredentialAckHandler"), exports);
|
|
18
|
+
__exportStar(require("./V1IssueCredentialHandler"), exports);
|
|
19
|
+
__exportStar(require("./V1OfferCredentialHandler"), exports);
|
|
20
|
+
__exportStar(require("./V1ProposeCredentialHandler"), exports);
|
|
21
|
+
__exportStar(require("./V1RequestCredentialHandler"), exports);
|
|
22
|
+
__exportStar(require("./V1CredentialProblemReportHandler"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/handlers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,6DAA0C;AAC1C,6DAA0C;AAC1C,+DAA4C;AAC5C,+DAA4C;AAC5C,qEAAkD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./V1CredentialProtocol"), exports);
|
|
18
|
+
__exportStar(require("./messages"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/protocols/credentials/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,6CAA0B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AckMessageOptions } from '@credo-ts/core';
|
|
2
|
+
import { AckMessage } from '@credo-ts/core';
|
|
3
|
+
export type V1CredentialAckMessageOptions = AckMessageOptions;
|
|
4
|
+
/**
|
|
5
|
+
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0015-acks/README.md#explicit-acks
|
|
6
|
+
*/
|
|
7
|
+
export declare class V1CredentialAckMessage extends AckMessage {
|
|
8
|
+
readonly allowDidSovPrefix = true;
|
|
9
|
+
/**
|
|
10
|
+
* Create new CredentialAckMessage instance.
|
|
11
|
+
* @param options
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: V1CredentialAckMessageOptions);
|
|
14
|
+
readonly type: string;
|
|
15
|
+
static readonly type: import("@credo-ts/core/build/utils/messageType").ParsedMessageType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.V1CredentialAckMessage = void 0;
|
|
13
|
+
const core_1 = require("@credo-ts/core");
|
|
14
|
+
/**
|
|
15
|
+
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0015-acks/README.md#explicit-acks
|
|
16
|
+
*/
|
|
17
|
+
class V1CredentialAckMessage extends core_1.AckMessage {
|
|
18
|
+
/**
|
|
19
|
+
* Create new CredentialAckMessage instance.
|
|
20
|
+
* @param options
|
|
21
|
+
*/
|
|
22
|
+
constructor(options) {
|
|
23
|
+
super(options);
|
|
24
|
+
this.allowDidSovPrefix = true;
|
|
25
|
+
this.type = V1CredentialAckMessage.type.messageTypeUri;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
V1CredentialAckMessage.type = (0, core_1.parseMessageType)('https://didcomm.org/issue-credential/1.0/ack');
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, core_1.IsValidMessageType)(V1CredentialAckMessage.type),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], V1CredentialAckMessage.prototype, "type", void 0);
|
|
33
|
+
exports.V1CredentialAckMessage = V1CredentialAckMessage;
|
|
34
|
+
//# sourceMappingURL=V1CredentialAckMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1CredentialAckMessage.js","sourceRoot":"","sources":["../../../../../src/protocols/credentials/v1/messages/V1CredentialAckMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAiF;AAIjF;;GAEG;AACH,MAAa,sBAAuB,SAAQ,iBAAU;IAGpD;;;OAGG;IACH,YAAmB,OAAsC;QACvD,KAAK,CAAC,OAAO,CAAC,CAAA;QAPA,sBAAiB,GAAG,IAAI,CAAA;QAWxB,SAAI,GAAG,sBAAsB,CAAC,IAAI,CAAC,cAAc,CAAA;IAHjE,CAAC;;AAIsB,2BAAI,GAAG,IAAA,uBAAgB,EAAC,8CAA8C,CAAC,CAAA;AAF9F;IAAC,IAAA,yBAAkB,EAAC,sBAAsB,CAAC,IAAI,CAAC;;oDACiB;AAZnE,wDAcC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CredentialPreviewOptions } from '@credo-ts/core';
|
|
2
|
+
import { CredentialPreviewAttribute } from '@credo-ts/core';
|
|
3
|
+
/**
|
|
4
|
+
* Credential preview inner message class.
|
|
5
|
+
*
|
|
6
|
+
* This is not a message but an inner object for other messages in this protocol. It is used construct a preview of the data for the credential.
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0036-issue-credential/README.md#preview-credential
|
|
9
|
+
*/
|
|
10
|
+
export declare class V1CredentialPreview {
|
|
11
|
+
constructor(options: CredentialPreviewOptions);
|
|
12
|
+
readonly type: string;
|
|
13
|
+
static readonly type: import("@credo-ts/core/build/utils/messageType").ParsedMessageType;
|
|
14
|
+
attributes: CredentialPreviewAttribute[];
|
|
15
|
+
toJSON(): Record<string, unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Create a credential preview from a record with name and value entries.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const preview = CredentialPreview.fromRecord({
|
|
21
|
+
* name: "Bob",
|
|
22
|
+
* age: "20"
|
|
23
|
+
* })
|
|
24
|
+
*/
|
|
25
|
+
static fromRecord(record: Record<string, string>): V1CredentialPreview;
|
|
26
|
+
}
|