@credo-ts/anoncreds 0.6.0-pr-2444-20251010162514 → 0.6.0-pr-2454-20251015095608
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/AnonCredsApi.d.mts +4 -4
- package/build/AnonCredsApi.d.mts.map +1 -1
- package/build/AnonCredsApi.d.ts +4 -4
- package/build/AnonCredsApi.d.ts.map +1 -1
- package/build/AnonCredsApi.js +14 -14
- package/build/AnonCredsApi.mjs +14 -14
- package/build/AnonCredsApi.mjs.map +1 -1
- package/build/AnonCredsModule.d.mts.map +1 -1
- package/build/AnonCredsModule.d.ts.map +1 -1
- package/build/AnonCredsModule.js +7 -7
- package/build/AnonCredsModule.mjs +7 -7
- package/build/AnonCredsModule.mjs.map +1 -1
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.js +1 -1
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.mjs +1 -1
- package/build/anoncreds-rs/AnonCredsDataIntegrityService.mjs.map +1 -1
- package/build/anoncreds-rs/AnonCredsRsHolderService.js +6 -6
- package/build/anoncreds-rs/AnonCredsRsHolderService.mjs +6 -6
- package/build/anoncreds-rs/AnonCredsRsHolderService.mjs.map +1 -1
- package/build/anoncreds-rs/AnonCredsRsIssuerService.js +3 -3
- package/build/anoncreds-rs/AnonCredsRsIssuerService.mjs +3 -3
- package/build/anoncreds-rs/AnonCredsRsIssuerService.mjs.map +1 -1
- package/build/anoncreds-rs/AnonCredsRsVerifierService.mjs.map +1 -1
- package/build/anoncreds-rs/utils.js +1 -1
- package/build/anoncreds-rs/utils.mjs +1 -1
- package/build/anoncreds-rs/utils.mjs.map +1 -1
- package/build/error/index.js +1 -1
- package/build/error/index.mjs +1 -1
- package/build/formats/AnonCredsDidCommCredentialFormatService.d.mts.map +1 -1
- package/build/formats/AnonCredsDidCommCredentialFormatService.d.ts.map +1 -1
- package/build/formats/AnonCredsDidCommCredentialFormatService.js +5 -5
- package/build/formats/AnonCredsDidCommCredentialFormatService.mjs +5 -5
- package/build/formats/AnonCredsDidCommCredentialFormatService.mjs.map +1 -1
- package/build/formats/AnonCredsDidCommProofFormat.d.mts +1 -1
- package/build/formats/AnonCredsDidCommProofFormat.d.ts +1 -1
- package/build/formats/AnonCredsDidCommProofFormatService.d.mts.map +1 -1
- package/build/formats/AnonCredsDidCommProofFormatService.d.ts.map +1 -1
- package/build/formats/AnonCredsDidCommProofFormatService.js +5 -5
- package/build/formats/AnonCredsDidCommProofFormatService.mjs +5 -5
- package/build/formats/AnonCredsDidCommProofFormatService.mjs.map +1 -1
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.mts +4 -18
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.mts.map +1 -1
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.ts +4 -18
- package/build/formats/DataIntegrityDidCommCredentialFormatService.d.ts.map +1 -1
- package/build/formats/DataIntegrityDidCommCredentialFormatService.js +16 -16
- package/build/formats/DataIntegrityDidCommCredentialFormatService.mjs +16 -16
- package/build/formats/DataIntegrityDidCommCredentialFormatService.mjs.map +1 -1
- package/build/formats/LegacyIndyDidCommCredentialFormatService.d.mts.map +1 -1
- package/build/formats/LegacyIndyDidCommCredentialFormatService.d.ts.map +1 -1
- package/build/formats/LegacyIndyDidCommCredentialFormatService.js +3 -3
- package/build/formats/LegacyIndyDidCommCredentialFormatService.mjs +3 -3
- package/build/formats/LegacyIndyDidCommCredentialFormatService.mjs.map +1 -1
- package/build/formats/LegacyIndyDidCommProofFormat.d.mts +1 -1
- package/build/formats/LegacyIndyDidCommProofFormat.d.ts +1 -1
- package/build/formats/LegacyIndyDidCommProofFormatService.d.mts.map +1 -1
- package/build/formats/LegacyIndyDidCommProofFormatService.d.ts.map +1 -1
- package/build/formats/LegacyIndyDidCommProofFormatService.js +8 -8
- package/build/formats/LegacyIndyDidCommProofFormatService.mjs +8 -8
- package/build/formats/LegacyIndyDidCommProofFormatService.mjs.map +1 -1
- package/build/formats/index.js +1 -1
- package/build/formats/index.mjs +1 -1
- package/build/index.d.mts +30 -30
- package/build/index.d.ts +30 -30
- package/build/index.js +25 -25
- package/build/index.mjs +25 -25
- package/build/models/AnonCredsCredentialProposal.js +2 -2
- package/build/models/AnonCredsCredentialProposal.mjs +1 -1
- package/build/models/AnonCredsProofRequest.js +2 -2
- package/build/models/AnonCredsProofRequest.mjs +1 -1
- package/build/models/AnonCredsProofRequest.mjs.map +1 -1
- package/build/models/AnonCredsRequestedAttribute.js +2 -2
- package/build/models/AnonCredsRequestedAttribute.mjs +1 -1
- package/build/models/AnonCredsRequestedAttribute.mjs.map +1 -1
- package/build/models/AnonCredsRequestedPredicate.js +3 -3
- package/build/models/AnonCredsRequestedPredicate.mjs +2 -2
- package/build/models/AnonCredsRequestedPredicate.mjs.map +1 -1
- package/build/models/AnonCredsRestriction.js +2 -2
- package/build/models/AnonCredsRestriction.mjs +1 -1
- package/build/models/AnonCredsRestrictionWrapper.js +2 -2
- package/build/models/AnonCredsRestrictionWrapper.mjs +1 -1
- package/build/models/exchange.mjs.map +1 -1
- package/build/models/index.js +1 -1
- package/build/models/index.mjs +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.mts +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.mts.map +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.ts +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.d.ts.map +1 -1
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.js +4 -4
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.mjs +4 -4
- package/build/protocols/credentials/v1/DidCommCredentialV1Protocol.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/DidCommIssueCredentialV1Handler.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/DidCommOfferCredentialV1Handler.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/DidCommProposeCredentialV1Handler.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/DidCommRequestCredentialV1Handler.mjs.map +1 -1
- package/build/protocols/credentials/v1/handlers/index.js +1 -1
- package/build/protocols/credentials/v1/handlers/index.mjs +1 -1
- package/build/protocols/credentials/v1/index.js +2 -2
- package/build/protocols/credentials/v1/index.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1AckMessage.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.d.ts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1Preview.mjs.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommCredentialV1ProblemReportMessage.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.d.ts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommIssueCredentialV1Message.mjs.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.d.ts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommOfferCredentialV1Message.mjs.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommProposeCredentialV1Message.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.mts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.mts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.ts +2 -2
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.d.ts.map +1 -1
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.js +4 -4
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.mjs +2 -2
- package/build/protocols/credentials/v1/messages/DidCommRequestCredentialV1Message.mjs.map +1 -1
- package/build/protocols/credentials/v1/messages/index.js +2 -2
- package/build/protocols/credentials/v1/messages/index.mjs +2 -2
- package/build/protocols/index.js +5 -5
- package/build/protocols/index.mjs +5 -5
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.mts +2 -2
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.mts.map +1 -1
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.ts +2 -2
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.d.ts.map +1 -1
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.js +6 -6
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.mjs +6 -6
- package/build/protocols/proofs/v1/DidCommProofV1Protocol.mjs.map +1 -1
- package/build/protocols/proofs/v1/handlers/DidCommPresentationV1Handler.mjs.map +1 -1
- package/build/protocols/proofs/v1/handlers/DidCommProposePresentationV1Handler.mjs.map +1 -1
- package/build/protocols/proofs/v1/handlers/DidCommRequestPresentationV1Handler.mjs.map +1 -1
- package/build/protocols/proofs/v1/handlers/index.js +1 -1
- package/build/protocols/proofs/v1/handlers/index.mjs +1 -1
- package/build/protocols/proofs/v1/index.js +4 -4
- package/build/protocols/proofs/v1/index.mjs +4 -4
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1AckMessage.d.ts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.mts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.ts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.d.ts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.js +4 -4
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.mjs +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1Message.mjs.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.mts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.ts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.ts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.js +4 -4
- package/build/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.mjs +2 -2
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.mts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.mts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.ts +2 -2
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.ts.map +1 -1
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.js +4 -4
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.mjs +2 -2
- package/build/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.mjs.map +1 -1
- package/build/protocols/proofs/v1/messages/index.js +3 -3
- package/build/protocols/proofs/v1/messages/index.mjs +3 -3
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.mts +1 -1
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.mts.map +1 -1
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.ts +2 -2
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.ts.map +1 -1
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.js +6 -6
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.mjs +4 -4
- package/build/protocols/proofs/v1/models/DidCommPresentationV1Preview.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.js +2 -2
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.mjs +2 -2
- package/build/repository/AnonCredsCredentialDefinitionPrivateRepository.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.d.mts.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.d.ts.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.js +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.mjs +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRecord.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRepository.js +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRepository.mjs +1 -1
- package/build/repository/AnonCredsCredentialDefinitionRepository.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialRecord.d.mts.map +1 -1
- package/build/repository/AnonCredsCredentialRecord.d.ts.map +1 -1
- package/build/repository/AnonCredsCredentialRecord.mjs.map +1 -1
- package/build/repository/AnonCredsCredentialRepository.js +1 -1
- package/build/repository/AnonCredsCredentialRepository.mjs +1 -1
- package/build/repository/AnonCredsCredentialRepository.mjs.map +1 -1
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.js +1 -1
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.mjs +1 -1
- package/build/repository/AnonCredsKeyCorrectnessProofRepository.mjs.map +1 -1
- package/build/repository/AnonCredsLinkSecretRepository.js +1 -1
- package/build/repository/AnonCredsLinkSecretRepository.mjs +1 -1
- package/build/repository/AnonCredsLinkSecretRepository.mjs.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.mts.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.d.ts.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.js +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionPrivateRepository.mjs.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.mts.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.d.ts.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRecord.mjs.map +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.js +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.mjs +1 -1
- package/build/repository/AnonCredsRevocationRegistryDefinitionRepository.mjs.map +1 -1
- package/build/repository/AnonCredsSchemaRecord.d.mts.map +1 -1
- package/build/repository/AnonCredsSchemaRecord.d.ts.map +1 -1
- package/build/repository/AnonCredsSchemaRecord.js +1 -1
- package/build/repository/AnonCredsSchemaRecord.mjs +1 -1
- package/build/repository/AnonCredsSchemaRecord.mjs.map +1 -1
- package/build/repository/AnonCredsSchemaRepository.js +1 -1
- package/build/repository/AnonCredsSchemaRepository.mjs +1 -1
- package/build/repository/AnonCredsSchemaRepository.mjs.map +1 -1
- package/build/repository/index.js +6 -6
- package/build/repository/index.mjs +6 -6
- package/build/services/AnonCredsHolderService.d.mts +1 -1
- package/build/services/AnonCredsHolderService.d.ts +1 -1
- package/build/services/AnonCredsHolderServiceOptions.d.mts +1 -1
- package/build/services/AnonCredsHolderServiceOptions.d.ts +1 -1
- package/build/services/index.js +3 -3
- package/build/services/index.mjs +3 -3
- package/build/services/registry/AnonCredsRegistryService.d.mts.map +1 -1
- package/build/services/registry/AnonCredsRegistryService.d.ts.map +1 -1
- package/build/services/registry/AnonCredsRegistryService.js +1 -1
- package/build/services/registry/AnonCredsRegistryService.mjs +1 -1
- package/build/services/registry/AnonCredsRegistryService.mjs.map +1 -1
- package/build/services/tails/BasicTailsFileService.d.mts.map +1 -1
- package/build/services/tails/BasicTailsFileService.d.ts.map +1 -1
- package/build/services/tails/BasicTailsFileService.mjs.map +1 -1
- package/build/updates/0.3.1-0.4/credentialDefinition.js +1 -1
- package/build/updates/0.3.1-0.4/credentialDefinition.mjs +1 -1
- package/build/updates/0.3.1-0.4/credentialDefinition.mjs.map +1 -1
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.js +3 -3
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.mjs +3 -3
- package/build/updates/0.4-0.5/anonCredsCredentialRecord.mjs.map +1 -1
- package/build/utils/anonCredsObjects.d.mts.map +1 -1
- package/build/utils/anonCredsObjects.d.ts.map +1 -1
- package/build/utils/anonCredsObjects.mjs.map +1 -1
- package/build/utils/areRequestsEqual.mjs.map +1 -1
- package/build/utils/bytesToBigint.mjs.map +1 -1
- package/build/utils/createRequestFromPreview.mjs.map +1 -1
- package/build/utils/credential.d.mts.map +1 -1
- package/build/utils/credential.d.ts.map +1 -1
- package/build/utils/credential.mjs.map +1 -1
- package/build/utils/getCredentialsForAnonCredsRequest.js +3 -3
- package/build/utils/getCredentialsForAnonCredsRequest.mjs +3 -3
- package/build/utils/getCredentialsForAnonCredsRequest.mjs.map +1 -1
- package/build/utils/getRevocationRegistries.mjs.map +1 -1
- package/build/utils/hasDuplicateGroupNames.mjs.map +1 -1
- package/build/utils/index.js +9 -9
- package/build/utils/index.mjs +9 -9
- package/build/utils/indyIdentifiers.d.mts.map +1 -1
- package/build/utils/indyIdentifiers.d.ts.map +1 -1
- package/build/utils/indyIdentifiers.mjs.map +1 -1
- package/build/utils/isMap.mjs.map +1 -1
- package/build/utils/revocationInterval.d.mts.map +1 -1
- package/build/utils/revocationInterval.d.ts.map +1 -1
- package/build/utils/revocationInterval.mjs.map +1 -1
- package/build/utils/w3cAnonCredsUtils.d.mts.map +1 -1
- package/build/utils/w3cAnonCredsUtils.d.ts.map +1 -1
- package/build/utils/w3cAnonCredsUtils.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommPresentationV1Message.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1Message.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1Message.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1Message.ts"],"sourcesContent":["import { DidCommAttachment, DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\nimport { Expose, Type } from 'class-transformer'\nimport { IsArray, IsInstance, IsOptional, IsString, ValidateNested } from 'class-validator'\nimport type { AnonCredsProof } from '../../../../models'\n\nexport const INDY_PROOF_ATTACHMENT_ID = 'libindy-presentation-0'\n\nexport interface DidCommPresentationV1MessageOptions {\n id?: string\n comment?: string\n presentationAttachments: DidCommAttachment[]\n attachments?: DidCommAttachment[]\n}\n\n/**\n * Presentation Message part of Present Proof Protocol used as a response to a {@link PresentationRequestMessage | Presentation Request Message} from prover to verifier.\n * Contains signed presentations.\n *\n * @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0037-present-proof/README.md#presentation\n */\nexport class DidCommPresentationV1Message extends DidCommMessage {\n public readonly allowDidSovPrefix = true\n public constructor(options: DidCommPresentationV1MessageOptions) {\n super()\n\n if (options) {\n this.id = options.id ?? this.generateId()\n this.comment = options.comment\n this.presentationAttachments = options.presentationAttachments\n this.appendedAttachments = options.attachments\n }\n }\n\n @IsValidMessageType(DidCommPresentationV1Message.type)\n public readonly type = DidCommPresentationV1Message.type.messageTypeUri\n public static readonly type = parseMessageType('https://didcomm.org/present-proof/1.0/presentation')\n\n /**\n * Provides some human readable information about this request for a presentation.\n */\n @IsOptional()\n @IsString()\n public comment?: string\n\n /**\n * An array of attachments containing the presentation in the requested format(s).\n */\n @Expose({ name: 'presentations~attach' })\n @Type(() => DidCommAttachment)\n @IsArray()\n @ValidateNested({\n each: true,\n })\n @IsInstance(DidCommAttachment, { each: true })\n public presentationAttachments!: DidCommAttachment[]\n\n public get indyProof(): AnonCredsProof | null {\n const attachment =\n this.presentationAttachments.find((attachment) => attachment.id === INDY_PROOF_ATTACHMENT_ID) ?? null\n\n const proofJson = attachment?.getDataAsJson<AnonCredsProof>() ?? null\n\n return proofJson\n }\n\n public getPresentationAttachmentById(id: string): DidCommAttachment | undefined {\n return this.presentationAttachments.find((attachment) => attachment.id === id)\n }\n}\n"],"mappings":";;;;;;;AAKA,MAAa,2BAA2B;;;;;;;AAexC,IAAa,+BAAb,MAAa,qCAAqC,eAAe;CAE/D,AAAO,YAAY,SAA8C;AAC/D,SAAO;OAFO,oBAAoB;OAapB,OAAO,6BAA6B,KAAK;AATvD,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,UAAU,QAAQ;AACvB,QAAK,0BAA0B,QAAQ;AACvC,QAAK,sBAAsB,QAAQ;;;CA2BvC,IAAW,YAAmC;AAM5C,UAJE,KAAK,wBAAwB,MAAM,eAAe,WAAW,OAAO,yBAAyB,IAAI,OAErE,eAA+B,IAAI;;CAKnE,AAAO,8BAA8B,IAA2C;AAC9E,SAAO,KAAK,wBAAwB,MAAM,eAAe,WAAW,OAAO,GAAG;;;6BA/BzD,OAAO,iBAAiB,qDAAqD;YAFnG,mBAAmB,6BAA6B,KAAK;;CAOrD,YAAY;CACZ,UAAU;;;;CAMV,OAAO,EAAE,MAAM,wBAAwB,CAAC;CACxC,WAAW,kBAAkB;CAC7B,SAAS;CACT,eAAe,EACd,MAAM,MACP,CAAC;CACD,WAAW,mBAAmB,EAAE,MAAM,MAAM,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _credo_ts_didcomm10 from "@credo-ts/didcomm";
|
|
2
2
|
import { DidCommProblemReportMessage, DidCommProblemReportMessageOptions } from "@credo-ts/didcomm";
|
|
3
3
|
|
|
4
4
|
//#region src/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.ts
|
|
@@ -9,7 +9,7 @@ type DidCommPresentationV1ProblemReportMessageOptions = DidCommProblemReportMess
|
|
|
9
9
|
declare class DidCommPresentationV1ProblemReportMessage extends DidCommProblemReportMessage {
|
|
10
10
|
readonly allowDidSovPrefix = true;
|
|
11
11
|
readonly type: string;
|
|
12
|
-
static readonly type:
|
|
12
|
+
static readonly type: _credo_ts_didcomm10.ParsedMessageType;
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
export { DidCommPresentationV1ProblemReportMessage, DidCommPresentationV1ProblemReportMessageOptions };
|
package/build/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommPresentationV1ProblemReportMessage.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.ts"],"sourcesContent":[],"mappings":";;;;KAIY,gDAAA,GAAmD;;AAA/D;AAKA;AAAuD,cAA1C,yCAAA,SAAkD,2BAAA,CAAR;WAAA,iBAK1B,GAAA,IAAA;WALkC,IAAA,EAAA,MAAA;EAA2B,gBAAA,IAAA,EAAnC,
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1ProblemReportMessage.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommPresentationV1ProblemReportMessage.ts"],"sourcesContent":[],"mappings":";;;;KAIY,gDAAA,GAAmD;;AAA/D;AAKA;AAAuD,cAA1C,yCAAA,SAAkD,2BAAA,CAAR;WAAA,iBAK1B,GAAA,IAAA;WALkC,IAAA,EAAA,MAAA;EAA2B,gBAAA,IAAA,EAAnC,mBAAA,CAK1B,iBAL6D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DidCommPresentationV1Preview } from "../models/DidCommPresentationV1Preview.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _credo_ts_didcomm11 from "@credo-ts/didcomm";
|
|
3
3
|
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
4
4
|
|
|
5
5
|
//#region src/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.ts
|
|
@@ -17,7 +17,7 @@ declare class DidCommProposePresentationV1Message extends DidCommMessage {
|
|
|
17
17
|
readonly allowDidSovPrefix = true;
|
|
18
18
|
constructor(options: DidCommProposePresentationV1MessageOptions);
|
|
19
19
|
readonly type: string;
|
|
20
|
-
static readonly type:
|
|
20
|
+
static readonly type: _credo_ts_didcomm11.ParsedMessageType;
|
|
21
21
|
/**
|
|
22
22
|
* Provides some human readable information about the proposed presentation.
|
|
23
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommProposePresentationV1Message.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;UAMiB,0CAAA;;;EAAA,oBAAA,EAGO,4BAHmC;AAW3D;;;;;;AAAuE,cAA1D,mCAAA,SAA4C,cAAA,CAAc;;uBAEzC;;wBAA0C,
|
|
1
|
+
{"version":3,"file":"DidCommProposePresentationV1Message.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;UAMiB,0CAAA;;;EAAA,oBAAA,EAGO,4BAHmC;AAW3D;;;;;;AAAuE,cAA1D,mCAAA,SAA4C,cAAA,CAAc;;uBAEzC;;wBAA0C,mBAAA,CAY3C;;;;;;;;wBAgBG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DidCommPresentationV1Preview } from "../models/DidCommPresentationV1Preview.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _credo_ts_didcomm11 from "@credo-ts/didcomm";
|
|
3
3
|
import { DidCommMessage } from "@credo-ts/didcomm";
|
|
4
4
|
|
|
5
5
|
//#region src/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.d.ts
|
|
@@ -17,7 +17,7 @@ declare class DidCommProposePresentationV1Message extends DidCommMessage {
|
|
|
17
17
|
readonly allowDidSovPrefix = true;
|
|
18
18
|
constructor(options: DidCommProposePresentationV1MessageOptions);
|
|
19
19
|
readonly type: string;
|
|
20
|
-
static readonly type:
|
|
20
|
+
static readonly type: _credo_ts_didcomm11.ParsedMessageType;
|
|
21
21
|
/**
|
|
22
22
|
* Provides some human readable information about the proposed presentation.
|
|
23
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommProposePresentationV1Message.d.ts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;UAMiB,0CAAA;;;EAAA,oBAAA,EAGO,4BAHmC;AAW3D;;;;;;AAAuE,cAA1D,mCAAA,SAA4C,cAAA,CAAc;;uBAEzC;;wBAA0C,
|
|
1
|
+
{"version":3,"file":"DidCommProposePresentationV1Message.d.ts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;UAMiB,0CAAA;;;EAAA,oBAAA,EAGO,4BAHmC;AAW3D;;;;;;AAAuE,cAA1D,mCAAA,SAA4C,cAAA,CAAc;;uBAEzC;;wBAA0C,mBAAA,CAY3C;;;;;;;;wBAgBG"}
|
|
@@ -2,12 +2,12 @@ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.
|
|
|
2
2
|
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
3
|
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
4
4
|
const require_DidCommPresentationV1Preview = require('../models/DidCommPresentationV1Preview.js');
|
|
5
|
-
let class_transformer = require("class-transformer");
|
|
6
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
7
|
-
let class_validator = require("class-validator");
|
|
8
|
-
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
9
5
|
let __credo_ts_didcomm = require("@credo-ts/didcomm");
|
|
10
6
|
__credo_ts_didcomm = require_rolldown_runtime.__toESM(__credo_ts_didcomm);
|
|
7
|
+
let class_validator = require("class-validator");
|
|
8
|
+
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
9
|
+
let class_transformer = require("class-transformer");
|
|
10
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
11
11
|
|
|
12
12
|
//#region src/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.ts
|
|
13
13
|
var _ref;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
2
|
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
3
3
|
import { DidCommPresentationV1Preview } from "../models/DidCommPresentationV1Preview.mjs";
|
|
4
|
-
import { Expose, Type } from "class-transformer";
|
|
5
|
-
import { IsInstance, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
6
4
|
import { DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
5
|
+
import { IsInstance, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
6
|
+
import { Expose, Type } from "class-transformer";
|
|
7
7
|
|
|
8
8
|
//#region src/protocols/proofs/v1/messages/DidCommProposePresentationV1Message.ts
|
|
9
9
|
var _ref;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LegacyIndyProofRequest } from "../../../../formats/LegacyIndyDidCommProofFormat.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _credo_ts_didcomm7 from "@credo-ts/didcomm";
|
|
3
3
|
import { DidCommAttachment, DidCommMessage } from "@credo-ts/didcomm";
|
|
4
4
|
|
|
5
5
|
//#region src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.ts
|
|
@@ -18,7 +18,7 @@ declare class DidCommRequestPresentationV1Message extends DidCommMessage {
|
|
|
18
18
|
readonly allowDidSovPrefix = true;
|
|
19
19
|
constructor(options: DidCommRequestPresentationV1MessageOptions);
|
|
20
20
|
readonly type: string;
|
|
21
|
-
static readonly type:
|
|
21
|
+
static readonly type: _credo_ts_didcomm7.ParsedMessageType;
|
|
22
22
|
/**
|
|
23
23
|
* Provides some human readable information about this request for a presentation.
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommRequestPresentationV1Message.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DidCommRequestPresentationV1Message.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;UAKiB,0CAAA;;;EAAA,kBAAA,EAGK,iBAHL,EAAA;AAMjB;AAOa,cAPA,gCAAA,GAOoC,gCAAA;;;;;;AA0CF,cA1ClC,mCAAA,SAA4C,cAAA,CA0CV;WA1CU,iBAAA,GAAA,IAAA;EAAc,WAAA,CAAA,OAAA,EAGzC,0CAHyC;;wBAGC,kBAAA,CAY3C;;;;;;;;sBAmBC;0BAEG;wCAMc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LegacyIndyProofRequest } from "../../../../formats/LegacyIndyDidCommProofFormat.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _credo_ts_didcomm7 from "@credo-ts/didcomm";
|
|
3
3
|
import { DidCommAttachment, DidCommMessage } from "@credo-ts/didcomm";
|
|
4
4
|
|
|
5
5
|
//#region src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.d.ts
|
|
@@ -18,7 +18,7 @@ declare class DidCommRequestPresentationV1Message extends DidCommMessage {
|
|
|
18
18
|
readonly allowDidSovPrefix = true;
|
|
19
19
|
constructor(options: DidCommRequestPresentationV1MessageOptions);
|
|
20
20
|
readonly type: string;
|
|
21
|
-
static readonly type:
|
|
21
|
+
static readonly type: _credo_ts_didcomm7.ParsedMessageType;
|
|
22
22
|
/**
|
|
23
23
|
* Provides some human readable information about this request for a presentation.
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommRequestPresentationV1Message.d.ts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DidCommRequestPresentationV1Message.d.ts","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.ts"],"sourcesContent":[],"mappings":";;;;;UAKiB,0CAAA;;;EAAA,kBAAA,EAGK,iBAHL,EAAA;AAMjB;AAOa,cAPA,gCAAA,GAOoC,gCAAA;;;;;;AA0CF,cA1ClC,mCAAA,SAA4C,cAAA,CA0CV;WA1CU,iBAAA,GAAA,IAAA;EAAc,WAAA,CAAA,OAAA,EAGzC,0CAHyC;;wBAGC,kBAAA,CAY3C;;;;;;;;sBAmBC;0BAEG;wCAMc"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
|
|
2
2
|
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
3
|
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
4
|
-
let class_transformer = require("class-transformer");
|
|
5
|
-
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
6
|
-
let class_validator = require("class-validator");
|
|
7
|
-
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
8
4
|
let __credo_ts_didcomm = require("@credo-ts/didcomm");
|
|
9
5
|
__credo_ts_didcomm = require_rolldown_runtime.__toESM(__credo_ts_didcomm);
|
|
6
|
+
let class_validator = require("class-validator");
|
|
7
|
+
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
8
|
+
let class_transformer = require("class-transformer");
|
|
9
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
10
10
|
|
|
11
11
|
//#region src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.ts
|
|
12
12
|
const INDY_PROOF_REQUEST_ATTACHMENT_ID = "libindy-request-presentation-0";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
2
|
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
3
|
-
import { Expose, Type } from "class-transformer";
|
|
4
|
-
import { IsArray, IsInstance, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
5
3
|
import { DidCommAttachment, DidCommMessage, IsValidMessageType, parseMessageType } from "@credo-ts/didcomm";
|
|
4
|
+
import { IsArray, IsInstance, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
5
|
+
import { Expose, Type } from "class-transformer";
|
|
6
6
|
|
|
7
7
|
//#region src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.ts
|
|
8
8
|
const INDY_PROOF_REQUEST_ATTACHMENT_ID = "libindy-request-presentation-0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommRequestPresentationV1Message.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"DidCommRequestPresentationV1Message.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/messages/DidCommRequestPresentationV1Message.ts"],"sourcesContent":["import { DidCommAttachment, DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm'\nimport { Expose, Type } from 'class-transformer'\nimport { IsArray, IsInstance, IsOptional, IsString, ValidateNested } from 'class-validator'\nimport type { LegacyIndyProofRequest } from '../../../../formats'\n\nexport interface DidCommRequestPresentationV1MessageOptions {\n id?: string\n comment?: string\n requestAttachments: DidCommAttachment[]\n}\n\nexport const INDY_PROOF_REQUEST_ATTACHMENT_ID = 'libindy-request-presentation-0'\n\n/**\n * Request Presentation Message part of Present Proof Protocol used to initiate request from verifier to prover.\n *\n * @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0037-present-proof/README.md#request-presentation\n */\nexport class DidCommRequestPresentationV1Message extends DidCommMessage {\n public readonly allowDidSovPrefix = true\n\n public constructor(options: DidCommRequestPresentationV1MessageOptions) {\n super()\n\n if (options) {\n this.id = options.id ?? this.generateId()\n this.comment = options.comment\n this.requestAttachments = options.requestAttachments\n }\n }\n\n @IsValidMessageType(DidCommRequestPresentationV1Message.type)\n public readonly type = DidCommRequestPresentationV1Message.type.messageTypeUri\n public static readonly type = parseMessageType('https://didcomm.org/present-proof/1.0/request-presentation')\n\n /**\n * Provides some human readable information about this request for a presentation.\n */\n @IsOptional()\n @IsString()\n public comment?: string\n\n /**\n * An array of attachments defining the acceptable formats for the presentation.\n */\n @Expose({ name: 'request_presentations~attach' })\n @Type(() => DidCommAttachment)\n @IsArray()\n @ValidateNested({\n each: true,\n })\n @IsInstance(DidCommAttachment, { each: true })\n public requestAttachments!: DidCommAttachment[]\n\n public get indyProofRequest(): LegacyIndyProofRequest | null {\n const attachment = this.requestAttachments.find((attachment) => attachment.id === INDY_PROOF_REQUEST_ATTACHMENT_ID)\n // Extract proof request from attachment\n return attachment?.getDataAsJson<LegacyIndyProofRequest>() ?? null\n }\n\n public getRequestAttachmentById(id: string): DidCommAttachment | undefined {\n return this.requestAttachments.find((attachment) => attachment.id === id)\n }\n}\n"],"mappings":";;;;;;;AAWA,MAAa,mCAAmC;;;;;;AAOhD,IAAa,sCAAb,MAAa,4CAA4C,eAAe;CAGtE,AAAO,YAAY,SAAqD;AACtE,SAAO;OAHO,oBAAoB;OAapB,OAAO,oCAAoC,KAAK;AAR9D,MAAI,SAAS;AACX,QAAK,KAAK,QAAQ,MAAM,KAAK,YAAY;AACzC,QAAK,UAAU,QAAQ;AACvB,QAAK,qBAAqB,QAAQ;;;CA2BtC,IAAW,mBAAkD;AAG3D,SAFmB,KAAK,mBAAmB,MAAM,eAAe,WAAW,OAAO,iCAAiC,EAEhG,eAAuC,IAAI;;CAGhE,AAAO,yBAAyB,IAA2C;AACzE,SAAO,KAAK,mBAAmB,MAAM,eAAe,WAAW,OAAO,GAAG;;;oCA5BpD,OAAO,iBAAiB,6DAA6D;YAF3G,mBAAmB,oCAAoC,KAAK;;CAO5D,YAAY;CACZ,UAAU;;;;CAMV,OAAO,EAAE,MAAM,gCAAgC,CAAC;CAChD,WAAW,kBAAkB;CAC7B,SAAS;CACT,eAAe,EACd,MAAM,MACP,CAAC;CACD,WAAW,mBAAmB,EAAE,MAAM,MAAM,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
const require_DidCommPresentationV1AckMessage = require('./DidCommPresentationV1AckMessage.js');
|
|
2
|
+
const require_DidCommPresentationV1Message = require('./DidCommPresentationV1Message.js');
|
|
3
|
+
const require_DidCommPresentationV1ProblemReportMessage = require('./DidCommPresentationV1ProblemReportMessage.js');
|
|
1
4
|
const require_DidCommProposePresentationV1Message = require('./DidCommProposePresentationV1Message.js');
|
|
2
5
|
const require_DidCommRequestPresentationV1Message = require('./DidCommRequestPresentationV1Message.js');
|
|
3
|
-
const require_DidCommPresentationV1ProblemReportMessage = require('./DidCommPresentationV1ProblemReportMessage.js');
|
|
4
|
-
const require_DidCommPresentationV1Message = require('./DidCommPresentationV1Message.js');
|
|
5
|
-
const require_DidCommPresentationV1AckMessage = require('./DidCommPresentationV1AckMessage.js');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { DidCommPresentationV1AckMessage } from "./DidCommPresentationV1AckMessage.mjs";
|
|
2
|
+
import { DidCommPresentationV1Message, INDY_PROOF_ATTACHMENT_ID } from "./DidCommPresentationV1Message.mjs";
|
|
3
|
+
import { DidCommPresentationV1ProblemReportMessage } from "./DidCommPresentationV1ProblemReportMessage.mjs";
|
|
1
4
|
import { DidCommProposePresentationV1Message } from "./DidCommProposePresentationV1Message.mjs";
|
|
2
5
|
import { DidCommRequestPresentationV1Message, INDY_PROOF_REQUEST_ATTACHMENT_ID } from "./DidCommRequestPresentationV1Message.mjs";
|
|
3
|
-
import { DidCommPresentationV1ProblemReportMessage } from "./DidCommPresentationV1ProblemReportMessage.mjs";
|
|
4
|
-
import { DidCommPresentationV1Message, INDY_PROOF_ATTACHMENT_ID } from "./DidCommPresentationV1Message.mjs";
|
|
5
|
-
import { DidCommPresentationV1AckMessage } from "./DidCommPresentationV1AckMessage.mjs";
|
|
@@ -45,8 +45,8 @@ interface V1PresentationPreviewOptions {
|
|
|
45
45
|
*/
|
|
46
46
|
declare class DidCommPresentationV1Preview {
|
|
47
47
|
constructor(options: V1PresentationPreviewOptions);
|
|
48
|
-
readonly type: string;
|
|
49
48
|
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
49
|
+
readonly type: string;
|
|
50
50
|
attributes: DidCommPresentationV1PreviewAttribute[];
|
|
51
51
|
predicates: DidCommPresentationV1PreviewPredicate[];
|
|
52
52
|
toJSON(): Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommPresentationV1Preview.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/models/DidCommPresentationV1Preview.ts"],"sourcesContent":[],"mappings":";;;;UAkBiB,4CAAA;;;EAAA,QAAA,CAAA,EAAA,MAAA;EAQJ,KAAA,CAAA,EAAA,MAAA;EAAqC,QAAA,CAAA,EAAA,MAAA;;AAgC/B,cAhCN,qCAAA,CAgCM;EAAM,WAAA,CAAA,OAAA,EA/BK,4CA+BL;EAKR,IAAA,EAAA,MAAA;EAOJ,sBAAA,CAAA,EAAA,MAAA;EAAqC,QAAA,CAAA,EAAA,MAAA;OACpB,CAAA,EAAA,MAAA;UAkBT,CAAA,EAAA,MAAA;QAKF,CAAA,CAAA,EApCA,MAoCA,CAAA,MAAA,EAAA,OAAA,CAAA;;AAKF,UApCA,4CAAA,CAoC4B;EAAA,IAAA,EAAA,MAAA;wBAC9B,EAAA,MAAA;WACA,EAnCF,sBAmCE;EAA4C,SAAA,EAAA,MAAA;AAU3D;AAAyC,cAzC5B,qCAAA,CAyC4B;aACX,CAAA,OAAA,EAzCA,4CAyCA;MAA4B,EAAA,MAAA;
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1Preview.d.mts","names":[],"sources":["../../../../../src/protocols/proofs/v1/models/DidCommPresentationV1Preview.ts"],"sourcesContent":[],"mappings":";;;;UAkBiB,4CAAA;;;EAAA,QAAA,CAAA,EAAA,MAAA;EAQJ,KAAA,CAAA,EAAA,MAAA;EAAqC,QAAA,CAAA,EAAA,MAAA;;AAgC/B,cAhCN,qCAAA,CAgCM;EAAM,WAAA,CAAA,OAAA,EA/BK,4CA+BL;EAKR,IAAA,EAAA,MAAA;EAOJ,sBAAA,CAAA,EAAA,MAAA;EAAqC,QAAA,CAAA,EAAA,MAAA;OACpB,CAAA,EAAA,MAAA;UAkBT,CAAA,EAAA,MAAA;QAKF,CAAA,CAAA,EApCA,MAoCA,CAAA,MAAA,EAAA,OAAA,CAAA;;AAKF,UApCA,4CAAA,CAoC4B;EAAA,IAAA,EAAA,MAAA;wBAC9B,EAAA,MAAA;WACA,EAnCF,sBAmCE;EAA4C,SAAA,EAAA,MAAA;AAU3D;AAAyC,cAzC5B,qCAAA,CAyC4B;aACX,CAAA,OAAA,EAzCA,4CAyCA;MAA4B,EAAA,MAAA;wBAmBpC,EAAA,MAAA;WAKA,EA/CD,sBA+CC;WAEH,EAAA,MAAA;EAAM,MAAA,CAAA,CAAA,EA5CN,MA4CM,CAAA,MAAA,EAAA,OAAA,CAAA;;UAvCR,4BAAA;eACF;eACA;;;;;;;;;cAUF,4BAAA;uBACiB;wBAA4B,kBAAA,CAO7B;;cAYP;cAKA;YAEH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnonCredsPredicateType } from "../../../../models/exchange.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _credo_ts_didcomm0 from "@credo-ts/didcomm";
|
|
3
3
|
|
|
4
4
|
//#region src/protocols/proofs/v1/models/DidCommPresentationV1Preview.d.ts
|
|
5
5
|
interface DidCommPresentationV1PreviewAttributeOptions {
|
|
@@ -45,8 +45,8 @@ interface V1PresentationPreviewOptions {
|
|
|
45
45
|
*/
|
|
46
46
|
declare class DidCommPresentationV1Preview {
|
|
47
47
|
constructor(options: V1PresentationPreviewOptions);
|
|
48
|
+
static readonly type: _credo_ts_didcomm0.ParsedMessageType;
|
|
48
49
|
readonly type: string;
|
|
49
|
-
static readonly type: _credo_ts_didcomm7.ParsedMessageType;
|
|
50
50
|
attributes: DidCommPresentationV1PreviewAttribute[];
|
|
51
51
|
predicates: DidCommPresentationV1PreviewPredicate[];
|
|
52
52
|
toJSON(): Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommPresentationV1Preview.d.ts","names":[],"sources":["../../../../../src/protocols/proofs/v1/models/DidCommPresentationV1Preview.ts"],"sourcesContent":[],"mappings":";;;;UAkBiB,4CAAA;;;EAAA,QAAA,CAAA,EAAA,MAAA;EAQJ,KAAA,CAAA,EAAA,MAAA;EAAqC,QAAA,CAAA,EAAA,MAAA;;AAgC/B,cAhCN,qCAAA,CAgCM;EAAM,WAAA,CAAA,OAAA,EA/BK,4CA+BL;EAKR,IAAA,EAAA,MAAA;EAOJ,sBAAA,CAAA,EAAA,MAAA;EAAqC,QAAA,CAAA,EAAA,MAAA;OACpB,CAAA,EAAA,MAAA;UAkBT,CAAA,EAAA,MAAA;QAKF,CAAA,CAAA,EApCA,MAoCA,CAAA,MAAA,EAAA,OAAA,CAAA;;AAKF,UApCA,4CAAA,CAoC4B;EAAA,IAAA,EAAA,MAAA;wBAC9B,EAAA,MAAA;WACA,EAnCF,sBAmCE;EAA4C,SAAA,EAAA,MAAA;AAU3D;AAAyC,cAzC5B,qCAAA,CAyC4B;aACX,CAAA,OAAA,EAzCA,4CAyCA;MAA4B,EAAA,MAAA;
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1Preview.d.ts","names":[],"sources":["../../../../../src/protocols/proofs/v1/models/DidCommPresentationV1Preview.ts"],"sourcesContent":[],"mappings":";;;;UAkBiB,4CAAA;;;EAAA,QAAA,CAAA,EAAA,MAAA;EAQJ,KAAA,CAAA,EAAA,MAAA;EAAqC,QAAA,CAAA,EAAA,MAAA;;AAgC/B,cAhCN,qCAAA,CAgCM;EAAM,WAAA,CAAA,OAAA,EA/BK,4CA+BL;EAKR,IAAA,EAAA,MAAA;EAOJ,sBAAA,CAAA,EAAA,MAAA;EAAqC,QAAA,CAAA,EAAA,MAAA;OACpB,CAAA,EAAA,MAAA;UAkBT,CAAA,EAAA,MAAA;QAKF,CAAA,CAAA,EApCA,MAoCA,CAAA,MAAA,EAAA,OAAA,CAAA;;AAKF,UApCA,4CAAA,CAoC4B;EAAA,IAAA,EAAA,MAAA;wBAC9B,EAAA,MAAA;WACA,EAnCF,sBAmCE;EAA4C,SAAA,EAAA,MAAA;AAU3D;AAAyC,cAzC5B,qCAAA,CAyC4B;aACX,CAAA,OAAA,EAzCA,4CAyCA;MAA4B,EAAA,MAAA;wBAmBpC,EAAA,MAAA;WAKA,EA/CD,sBA+CC;WAEH,EAAA,MAAA;EAAM,MAAA,CAAA,CAAA,EA5CN,MA4CM,CAAA,MAAA,EAAA,OAAA,CAAA;;UAvCR,4BAAA;eACF;eACA;;;;;;;;;cAUF,4BAAA;uBACiB;wBAA4B,kBAAA,CAO7B;;cAYP;cAKA;YAEH"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_exchange = require('../../../../models/exchange.js');
|
|
3
2
|
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
4
3
|
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
5
|
-
require('../../../../models/index.js');
|
|
6
4
|
const require_indyIdentifiers = require('../../../../utils/indyIdentifiers.js');
|
|
7
5
|
require('../../../../utils/index.js');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
let class_validator = require("class-validator");
|
|
11
|
-
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
6
|
+
const require_exchange = require('../../../../models/exchange.js');
|
|
7
|
+
require('../../../../models/index.js');
|
|
12
8
|
let __credo_ts_core = require("@credo-ts/core");
|
|
13
9
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
14
10
|
let __credo_ts_didcomm = require("@credo-ts/didcomm");
|
|
15
11
|
__credo_ts_didcomm = require_rolldown_runtime.__toESM(__credo_ts_didcomm);
|
|
12
|
+
let class_validator = require("class-validator");
|
|
13
|
+
class_validator = require_rolldown_runtime.__toESM(class_validator);
|
|
14
|
+
let class_transformer = require("class-transformer");
|
|
15
|
+
class_transformer = require_rolldown_runtime.__toESM(class_transformer);
|
|
16
16
|
|
|
17
17
|
//#region src/protocols/proofs/v1/models/DidCommPresentationV1Preview.ts
|
|
18
18
|
var DidCommPresentationV1PreviewAttribute = class {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { anonCredsPredicateType } from "../../../../models/exchange.mjs";
|
|
2
1
|
import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
3
2
|
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
4
|
-
import "../../../../models/index.mjs";
|
|
5
3
|
import { unqualifiedCredentialDefinitionIdRegex } from "../../../../utils/indyIdentifiers.mjs";
|
|
6
4
|
import "../../../../utils/index.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
5
|
+
import { anonCredsPredicateType } from "../../../../models/exchange.mjs";
|
|
6
|
+
import "../../../../models/index.mjs";
|
|
9
7
|
import { JsonTransformer } from "@credo-ts/core";
|
|
10
8
|
import { IsValidMessageType, parseMessageType, replaceLegacyDidSovPrefix } from "@credo-ts/didcomm";
|
|
9
|
+
import { IsIn, IsInstance, IsInt, IsMimeType, IsOptional, IsString, Matches, ValidateIf, ValidateNested } from "class-validator";
|
|
10
|
+
import { Expose, Transform, Type } from "class-transformer";
|
|
11
11
|
|
|
12
12
|
//#region src/protocols/proofs/v1/models/DidCommPresentationV1Preview.ts
|
|
13
13
|
var DidCommPresentationV1PreviewAttribute = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommPresentationV1Preview.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/models/DidCommPresentationV1Preview.ts"],"sourcesContent":["import { JsonTransformer } from '@credo-ts/core'\nimport { IsValidMessageType, parseMessageType, replaceLegacyDidSovPrefix } from '@credo-ts/didcomm'\nimport { Expose, Transform, Type } from 'class-transformer'\nimport {\n IsIn,\n IsInstance,\n IsInt,\n IsMimeType,\n IsOptional,\n IsString,\n Matches,\n ValidateIf,\n ValidateNested,\n} from 'class-validator'\n\nimport { type AnonCredsPredicateType, anonCredsPredicateType } from '../../../../models'\nimport { unqualifiedCredentialDefinitionIdRegex } from '../../../../utils'\n\nexport interface DidCommPresentationV1PreviewAttributeOptions {\n name: string\n credentialDefinitionId?: string\n mimeType?: string\n value?: string\n referent?: string\n}\n\nexport class DidCommPresentationV1PreviewAttribute {\n public constructor(options: DidCommPresentationV1PreviewAttributeOptions) {\n if (options) {\n this.name = options.name\n this.credentialDefinitionId = options.credentialDefinitionId\n this.mimeType = options.mimeType\n this.value = options.value\n this.referent = options.referent\n }\n }\n\n public name!: string\n\n @Expose({ name: 'cred_def_id' })\n @IsString()\n @ValidateIf((o: DidCommPresentationV1PreviewAttribute) => o.referent !== undefined)\n @Matches(unqualifiedCredentialDefinitionIdRegex)\n public credentialDefinitionId?: string\n\n @Expose({ name: 'mime-type' })\n @IsOptional()\n @IsMimeType()\n public mimeType?: string\n\n @IsString()\n @IsOptional()\n public value?: string\n\n @IsString()\n @IsOptional()\n public referent?: string\n\n public toJSON(): Record<string, unknown> {\n return JsonTransformer.toJSON(this)\n }\n}\n\nexport interface DidCommPresentationV1PreviewPredicateOptions {\n name: string\n credentialDefinitionId: string\n predicate: AnonCredsPredicateType\n threshold: number\n}\n\nexport class DidCommPresentationV1PreviewPredicate {\n public constructor(options: DidCommPresentationV1PreviewPredicateOptions) {\n if (options) {\n this.name = options.name\n this.credentialDefinitionId = options.credentialDefinitionId\n this.predicate = options.predicate\n this.threshold = options.threshold\n }\n }\n\n @IsString()\n public name!: string\n\n @Expose({ name: 'cred_def_id' })\n @IsString()\n @Matches(unqualifiedCredentialDefinitionIdRegex)\n public credentialDefinitionId!: string\n\n @IsIn(anonCredsPredicateType)\n public predicate!: AnonCredsPredicateType\n\n @IsInt()\n public threshold!: number\n\n public toJSON(): Record<string, unknown> {\n return JsonTransformer.toJSON(this)\n }\n}\n\nexport interface V1PresentationPreviewOptions {\n attributes?: DidCommPresentationV1PreviewAttributeOptions[]\n predicates?: DidCommPresentationV1PreviewPredicateOptions[]\n}\n\n/**\n * Presentation preview inner message class.\n *\n * This is not a message but an inner object for other messages in this protocol. It is used to construct a preview of the data for the presentation.\n *\n * @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0037-present-proof/README.md#presentation-preview\n */\nexport class DidCommPresentationV1Preview {\n public constructor(options: V1PresentationPreviewOptions) {\n if (options) {\n this.attributes = options.attributes?.map((a) => new DidCommPresentationV1PreviewAttribute(a)) ?? []\n this.predicates = options.predicates?.map((p) => new DidCommPresentationV1PreviewPredicate(p)) ?? []\n }\n }\n\n @Expose({ name: '@type' })\n @IsValidMessageType(DidCommPresentationV1Preview.type)\n @Transform(({ value }) => replaceLegacyDidSovPrefix(value), {\n toClassOnly: true,\n })\n public readonly type = DidCommPresentationV1Preview.type.messageTypeUri\n
|
|
1
|
+
{"version":3,"file":"DidCommPresentationV1Preview.mjs","names":[],"sources":["../../../../../src/protocols/proofs/v1/models/DidCommPresentationV1Preview.ts"],"sourcesContent":["import { JsonTransformer } from '@credo-ts/core'\nimport { IsValidMessageType, parseMessageType, replaceLegacyDidSovPrefix } from '@credo-ts/didcomm'\nimport { Expose, Transform, Type } from 'class-transformer'\nimport {\n IsIn,\n IsInstance,\n IsInt,\n IsMimeType,\n IsOptional,\n IsString,\n Matches,\n ValidateIf,\n ValidateNested,\n} from 'class-validator'\n\nimport { type AnonCredsPredicateType, anonCredsPredicateType } from '../../../../models'\nimport { unqualifiedCredentialDefinitionIdRegex } from '../../../../utils'\n\nexport interface DidCommPresentationV1PreviewAttributeOptions {\n name: string\n credentialDefinitionId?: string\n mimeType?: string\n value?: string\n referent?: string\n}\n\nexport class DidCommPresentationV1PreviewAttribute {\n public constructor(options: DidCommPresentationV1PreviewAttributeOptions) {\n if (options) {\n this.name = options.name\n this.credentialDefinitionId = options.credentialDefinitionId\n this.mimeType = options.mimeType\n this.value = options.value\n this.referent = options.referent\n }\n }\n\n public name!: string\n\n @Expose({ name: 'cred_def_id' })\n @IsString()\n @ValidateIf((o: DidCommPresentationV1PreviewAttribute) => o.referent !== undefined)\n @Matches(unqualifiedCredentialDefinitionIdRegex)\n public credentialDefinitionId?: string\n\n @Expose({ name: 'mime-type' })\n @IsOptional()\n @IsMimeType()\n public mimeType?: string\n\n @IsString()\n @IsOptional()\n public value?: string\n\n @IsString()\n @IsOptional()\n public referent?: string\n\n public toJSON(): Record<string, unknown> {\n return JsonTransformer.toJSON(this)\n }\n}\n\nexport interface DidCommPresentationV1PreviewPredicateOptions {\n name: string\n credentialDefinitionId: string\n predicate: AnonCredsPredicateType\n threshold: number\n}\n\nexport class DidCommPresentationV1PreviewPredicate {\n public constructor(options: DidCommPresentationV1PreviewPredicateOptions) {\n if (options) {\n this.name = options.name\n this.credentialDefinitionId = options.credentialDefinitionId\n this.predicate = options.predicate\n this.threshold = options.threshold\n }\n }\n\n @IsString()\n public name!: string\n\n @Expose({ name: 'cred_def_id' })\n @IsString()\n @Matches(unqualifiedCredentialDefinitionIdRegex)\n public credentialDefinitionId!: string\n\n @IsIn(anonCredsPredicateType)\n public predicate!: AnonCredsPredicateType\n\n @IsInt()\n public threshold!: number\n\n public toJSON(): Record<string, unknown> {\n return JsonTransformer.toJSON(this)\n }\n}\n\nexport interface V1PresentationPreviewOptions {\n attributes?: DidCommPresentationV1PreviewAttributeOptions[]\n predicates?: DidCommPresentationV1PreviewPredicateOptions[]\n}\n\n/**\n * Presentation preview inner message class.\n *\n * This is not a message but an inner object for other messages in this protocol. It is used to construct a preview of the data for the presentation.\n *\n * @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0037-present-proof/README.md#presentation-preview\n */\nexport class DidCommPresentationV1Preview {\n public constructor(options: V1PresentationPreviewOptions) {\n if (options) {\n this.attributes = options.attributes?.map((a) => new DidCommPresentationV1PreviewAttribute(a)) ?? []\n this.predicates = options.predicates?.map((p) => new DidCommPresentationV1PreviewPredicate(p)) ?? []\n }\n }\n\n public static readonly type = parseMessageType('https://didcomm.org/present-proof/1.0/presentation-preview')\n\n @Expose({ name: '@type' })\n @IsValidMessageType(DidCommPresentationV1Preview.type)\n @Transform(({ value }) => replaceLegacyDidSovPrefix(value), {\n toClassOnly: true,\n })\n public readonly type = DidCommPresentationV1Preview.type.messageTypeUri\n\n @Type(() => DidCommPresentationV1PreviewAttribute)\n @ValidateNested({ each: true })\n @IsInstance(DidCommPresentationV1PreviewAttribute, { each: true })\n public attributes!: DidCommPresentationV1PreviewAttribute[]\n\n @Type(() => DidCommPresentationV1PreviewPredicate)\n @ValidateNested({ each: true })\n @IsInstance(DidCommPresentationV1PreviewPredicate, { each: true })\n public predicates!: DidCommPresentationV1PreviewPredicate[]\n\n public toJSON(): Record<string, unknown> {\n return JsonTransformer.toJSON(this)\n }\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,IAAa,wCAAb,MAAmD;CACjD,AAAO,YAAY,SAAuD;AACxE,MAAI,SAAS;AACX,QAAK,OAAO,QAAQ;AACpB,QAAK,yBAAyB,QAAQ;AACtC,QAAK,WAAW,QAAQ;AACxB,QAAK,QAAQ,QAAQ;AACrB,QAAK,WAAW,QAAQ;;;CAyB5B,AAAO,SAAkC;AACvC,SAAO,gBAAgB,OAAO,KAAK;;;;CApBpC,OAAO,EAAE,MAAM,eAAe,CAAC;CAC/B,UAAU;CACV,YAAY,MAA6C,EAAE,aAAa,OAAU;CAClF,QAAQ,uCAAuC;;;;CAG/C,OAAO,EAAE,MAAM,aAAa,CAAC;CAC7B,YAAY;CACZ,YAAY;;;;CAGZ,UAAU;CACV,YAAY;;;;CAGZ,UAAU;CACV,YAAY;;;AAef,IAAa,wCAAb,MAAmD;CACjD,AAAO,YAAY,SAAuD;AACxE,MAAI,SAAS;AACX,QAAK,OAAO,QAAQ;AACpB,QAAK,yBAAyB,QAAQ;AACtC,QAAK,YAAY,QAAQ;AACzB,QAAK,YAAY,QAAQ;;;CAkB7B,AAAO,SAAkC;AACvC,SAAO,gBAAgB,OAAO,KAAK;;;YAfpC,UAAU;;CAGV,OAAO,EAAE,MAAM,eAAe,CAAC;CAC/B,UAAU;CACV,QAAQ,uCAAuC;;;YAG/C,KAAK,uBAAuB;YAG5B,OAAO;;;;;;;;AAoBV,IAAa,+BAAb,MAAa,6BAA6B;CACxC,AAAO,YAAY,SAAuC;OAc1C,OAAO,6BAA6B,KAAK;AAbvD,MAAI,SAAS;AACX,QAAK,aAAa,QAAQ,YAAY,KAAK,MAAM,IAAI,sCAAsC,EAAE,CAAC,IAAI,EAAE;AACpG,QAAK,aAAa,QAAQ,YAAY,KAAK,MAAM,IAAI,sCAAsC,EAAE,CAAC,IAAI,EAAE;;;CAuBxG,AAAO,SAAkC;AACvC,SAAO,gBAAgB,OAAO,KAAK;;;6BApBd,OAAO,iBAAiB,6DAA6D;;CAE3G,OAAO,EAAE,MAAM,SAAS,CAAC;CACzB,mBAAmB,6BAA6B,KAAK;CACrD,WAAW,EAAE,YAAY,0BAA0B,MAAM,EAAE,EAC1D,aAAa,MACd,CAAC;;;;CAGD,WAAW,sCAAsC;CACjD,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,WAAW,uCAAuC,EAAE,MAAM,MAAM,CAAC;;;;CAGjE,WAAW,sCAAsC;CACjD,eAAe,EAAE,MAAM,MAAM,CAAC;CAC9B,WAAW,uCAAuC,EAAE,MAAM,MAAM,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
+
const require_AnonCredsCredentialDefinitionPrivateRecord = require('./AnonCredsCredentialDefinitionPrivateRecord.js');
|
|
2
3
|
const require_decorateMetadata = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
|
-
const require_decorate = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
4
4
|
const require_decorateParam = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
|
|
5
|
-
const
|
|
5
|
+
const require_decorate = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
6
6
|
let __credo_ts_core = require("@credo-ts/core");
|
|
7
7
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AnonCredsCredentialDefinitionPrivateRecord } from "./AnonCredsCredentialDefinitionPrivateRecord.mjs";
|
|
1
2
|
import { __decorateMetadata } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
|
-
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
3
3
|
import { __decorateParam } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
5
5
|
import { EventEmitter, InjectionSymbols, Repository, inject, injectable } from "@credo-ts/core";
|
|
6
6
|
|
|
7
7
|
//#region src/repository/AnonCredsCredentialDefinitionPrivateRepository.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialDefinitionPrivateRepository.mjs","names":["AnonCredsCredentialDefinitionPrivateRepository","storageService: StorageService<AnonCredsCredentialDefinitionPrivateRecord>"],"sources":["../../src/repository/AnonCredsCredentialDefinitionPrivateRepository.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\n\nimport { EventEmitter, InjectionSymbols, Repository, type StorageService
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialDefinitionPrivateRepository.mjs","names":["AnonCredsCredentialDefinitionPrivateRepository","storageService: StorageService<AnonCredsCredentialDefinitionPrivateRecord>"],"sources":["../../src/repository/AnonCredsCredentialDefinitionPrivateRepository.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\n\nimport { EventEmitter, InjectionSymbols, inject, injectable, Repository, type StorageService } from '@credo-ts/core'\n\nimport { AnonCredsCredentialDefinitionPrivateRecord } from './AnonCredsCredentialDefinitionPrivateRecord'\n\n@injectable()\nexport class AnonCredsCredentialDefinitionPrivateRepository extends Repository<AnonCredsCredentialDefinitionPrivateRecord> {\n public constructor(\n @inject(InjectionSymbols.StorageService) storageService: StorageService<AnonCredsCredentialDefinitionPrivateRecord>,\n eventEmitter: EventEmitter\n ) {\n super(AnonCredsCredentialDefinitionPrivateRecord, storageService, eventEmitter)\n }\n\n public async getByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string) {\n return this.getSingleByQuery(agentContext, { credentialDefinitionId })\n }\n\n public async findByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string) {\n return this.findSingleByQuery(agentContext, { credentialDefinitionId })\n }\n}\n"],"mappings":";;;;;;;;AAOO,2DAAMA,yDAAuD,WAAuD;CACzH,AAAO,YACL,AAAyCC,gBACzC,cACA;AACA,QAAM,4CAA4C,gBAAgB,aAAa;;CAGjF,MAAa,4BAA4B,cAA4B,wBAAgC;AACnG,SAAO,KAAK,iBAAiB,cAAc,EAAE,wBAAwB,CAAC;;CAGxE,MAAa,6BAA6B,cAA4B,wBAAgC;AACpG,SAAO,KAAK,kBAAkB,cAAc,EAAE,wBAAwB,CAAC;;;;CAd1E,YAAY;oBAGR,OAAO,iBAAiB,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialDefinitionRecord.d.mts","names":[],"sources":["../../src/repository/AnonCredsCredentialDefinitionRecord.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialDefinitionRecord.d.mts","names":[],"sources":["../../src/repository/AnonCredsCredentialDefinitionRecord.ts"],"sourcesContent":[],"mappings":";;;;;UAUiB,wCAAA;EAAA,EAAA,CAAA,EAAA,MAAA;EAAwC,sBAAA,EAAA,MAAA;sBAGjC,EAAA,6BAAA;YAEV,EAAA,MAAA;EAAI,SAAA,CAAA,EAAJ,IAAI;AAGlB;AAaa,KAbD,wCAAA,GAaqC;EAAA,QAAA,EAAA,MAAA;wBAC/C,EAAA,MAAA;UACA,EAAA,MAAA;KACA,EAAA,MAAA;YAM8B,EAAA,MAAA;mCAQJ,CAAA,EAAA,MAAA;;AAjBuC,cAAtD,mCAAA,SAA4C,UAAU,CACjE,wCADiE,EAEjE,QAFiE,EAGjE,2CAHiE,CAAA,CAAA;;;;wBASnC;;;;;;qBAQJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialDefinitionRecord.d.ts","names":[],"sources":["../../src/repository/AnonCredsCredentialDefinitionRecord.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialDefinitionRecord.d.ts","names":[],"sources":["../../src/repository/AnonCredsCredentialDefinitionRecord.ts"],"sourcesContent":[],"mappings":";;;;;UAUiB,wCAAA;EAAA,EAAA,CAAA,EAAA,MAAA;EAAwC,sBAAA,EAAA,MAAA;sBAGjC,EAAA,6BAAA;YAEV,EAAA,MAAA;EAAI,SAAA,CAAA,EAAJ,IAAI;AAGlB;AAaa,KAbD,wCAAA,GAaqC;EAAA,QAAA,EAAA,MAAA;wBAC/C,EAAA,MAAA;UACA,EAAA,MAAA;KACA,EAAA,MAAA;YAM8B,EAAA,MAAA;mCAQJ,CAAA,EAAA,MAAA;;AAjBuC,cAAtD,mCAAA,SAA4C,UAAU,CACjE,wCADiE,EAEjE,QAFiE,EAGjE,2CAHiE,CAAA,CAAA;;;;wBASnC;;;;;;qBAQJ"}
|
|
@@ -17,7 +17,7 @@ var AnonCredsCredentialDefinitionRecord = class AnonCredsCredentialDefinitionRec
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
getTags() {
|
|
20
|
-
let unqualifiedCredentialDefinitionId
|
|
20
|
+
let unqualifiedCredentialDefinitionId;
|
|
21
21
|
if (require_indyIdentifiers.isDidIndyCredentialDefinitionId(this.credentialDefinitionId)) {
|
|
22
22
|
const { namespaceIdentifier, schemaSeqNo, tag } = require_indyIdentifiers.parseIndyCredentialDefinitionId(this.credentialDefinitionId);
|
|
23
23
|
unqualifiedCredentialDefinitionId = require_indyIdentifiers.getUnqualifiedCredentialDefinitionId(namespaceIdentifier, schemaSeqNo, tag);
|
|
@@ -15,7 +15,7 @@ var AnonCredsCredentialDefinitionRecord = class AnonCredsCredentialDefinitionRec
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
getTags() {
|
|
18
|
-
let unqualifiedCredentialDefinitionId
|
|
18
|
+
let unqualifiedCredentialDefinitionId;
|
|
19
19
|
if (isDidIndyCredentialDefinitionId(this.credentialDefinitionId)) {
|
|
20
20
|
const { namespaceIdentifier, schemaSeqNo, tag } = parseIndyCredentialDefinitionId(this.credentialDefinitionId);
|
|
21
21
|
unqualifiedCredentialDefinitionId = getUnqualifiedCredentialDefinitionId(namespaceIdentifier, schemaSeqNo, tag);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialDefinitionRecord.mjs","names":["unqualifiedCredentialDefinitionId: string | undefined"],"sources":["../../src/repository/AnonCredsCredentialDefinitionRecord.ts"],"sourcesContent":["import type { TagsBase } from '@credo-ts/core'\nimport
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialDefinitionRecord.mjs","names":["unqualifiedCredentialDefinitionId: string | undefined"],"sources":["../../src/repository/AnonCredsCredentialDefinitionRecord.ts"],"sourcesContent":["import type { TagsBase } from '@credo-ts/core'\nimport { BaseRecord, utils } from '@credo-ts/core'\nimport type { AnonCredsCredentialDefinition } from '../models'\nimport {\n getUnqualifiedCredentialDefinitionId,\n isDidIndyCredentialDefinitionId,\n parseIndyCredentialDefinitionId,\n} from '../utils/indyIdentifiers'\nimport type { AnonCredsCredentialDefinitionRecordMetadata } from './anonCredsCredentialDefinitionRecordMetadataTypes'\n\nexport interface AnonCredsCredentialDefinitionRecordProps {\n id?: string\n credentialDefinitionId: string\n credentialDefinition: AnonCredsCredentialDefinition\n methodName: string\n createdAt?: Date\n}\n\nexport type DefaultAnonCredsCredentialDefinitionTags = {\n schemaId: string\n credentialDefinitionId: string\n issuerId: string\n tag: string\n methodName: string\n\n // Stores the unqualified variant of the credential definition id, which allows issuing credentials using the legacy\n // credential definition id, even though the credential definition id is stored in the wallet as a qualified id.\n // This is only added when the credential definition id is an did:indy identifier.\n unqualifiedCredentialDefinitionId?: string\n}\n\nexport class AnonCredsCredentialDefinitionRecord extends BaseRecord<\n DefaultAnonCredsCredentialDefinitionTags,\n TagsBase,\n AnonCredsCredentialDefinitionRecordMetadata\n> {\n public static readonly type = 'AnonCredsCredentialDefinitionRecord'\n public readonly type = AnonCredsCredentialDefinitionRecord.type\n\n public credentialDefinitionId!: string\n public credentialDefinition!: AnonCredsCredentialDefinition\n\n /**\n * AnonCreds method name. We don't use names explicitly from the registry (there's no identifier for a registry)\n * @see https://hyperledger.github.io/anoncreds-methods-registry/\n */\n public methodName!: string\n\n public constructor(props: AnonCredsCredentialDefinitionRecordProps) {\n super()\n\n if (props) {\n this.id = props.id ?? utils.uuid()\n this.createdAt = props.createdAt ?? new Date()\n this.credentialDefinitionId = props.credentialDefinitionId\n this.credentialDefinition = props.credentialDefinition\n this.methodName = props.methodName\n }\n }\n\n public getTags() {\n let unqualifiedCredentialDefinitionId: string | undefined\n if (isDidIndyCredentialDefinitionId(this.credentialDefinitionId)) {\n const { namespaceIdentifier, schemaSeqNo, tag } = parseIndyCredentialDefinitionId(this.credentialDefinitionId)\n\n unqualifiedCredentialDefinitionId = getUnqualifiedCredentialDefinitionId(namespaceIdentifier, schemaSeqNo, tag)\n }\n\n return {\n ...this._tags,\n credentialDefinitionId: this.credentialDefinitionId,\n schemaId: this.credentialDefinition.schemaId,\n issuerId: this.credentialDefinition.issuerId,\n tag: this.credentialDefinition.tag,\n methodName: this.methodName,\n unqualifiedCredentialDefinitionId,\n }\n }\n}\n"],"mappings":";;;;AA+BA,IAAa,sCAAb,MAAa,4CAA4C,WAIvD;CAaA,AAAO,YAAY,OAAiD;AAClE,SAAO;OAZO,OAAO,oCAAoC;AAczD,MAAI,OAAO;AACT,QAAK,KAAK,MAAM,MAAM,MAAM,MAAM;AAClC,QAAK,YAAY,MAAM,6BAAa,IAAI,MAAM;AAC9C,QAAK,yBAAyB,MAAM;AACpC,QAAK,uBAAuB,MAAM;AAClC,QAAK,aAAa,MAAM;;;CAI5B,AAAO,UAAU;EACf,IAAIA;AACJ,MAAI,gCAAgC,KAAK,uBAAuB,EAAE;GAChE,MAAM,EAAE,qBAAqB,aAAa,QAAQ,gCAAgC,KAAK,uBAAuB;AAE9G,uCAAoC,qCAAqC,qBAAqB,aAAa,IAAI;;AAGjH,SAAO;GACL,GAAG,KAAK;GACR,wBAAwB,KAAK;GAC7B,UAAU,KAAK,qBAAqB;GACpC,UAAU,KAAK,qBAAqB;GACpC,KAAK,KAAK,qBAAqB;GAC/B,YAAY,KAAK;GACjB;GACD;;;oCAxCoB,OAAO"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
2
|
const require_decorateMetadata = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
|
-
const require_decorate = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
4
3
|
const require_decorateParam = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
|
|
4
|
+
const require_decorate = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
5
5
|
const require_AnonCredsCredentialDefinitionRecord = require('./AnonCredsCredentialDefinitionRecord.js');
|
|
6
6
|
let __credo_ts_core = require("@credo-ts/core");
|
|
7
7
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorateMetadata } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
|
-
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
3
2
|
import { __decorateParam } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
|
|
3
|
+
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
4
4
|
import { AnonCredsCredentialDefinitionRecord } from "./AnonCredsCredentialDefinitionRecord.mjs";
|
|
5
5
|
import { EventEmitter, InjectionSymbols, Repository, inject, injectable } from "@credo-ts/core";
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialDefinitionRepository.mjs","names":["AnonCredsCredentialDefinitionRepository","storageService: StorageService<AnonCredsCredentialDefinitionRecord>"],"sources":["../../src/repository/AnonCredsCredentialDefinitionRepository.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\n\nimport { EventEmitter, InjectionSymbols, Repository, type StorageService
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialDefinitionRepository.mjs","names":["AnonCredsCredentialDefinitionRepository","storageService: StorageService<AnonCredsCredentialDefinitionRecord>"],"sources":["../../src/repository/AnonCredsCredentialDefinitionRepository.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\n\nimport { EventEmitter, InjectionSymbols, inject, injectable, Repository, type StorageService } from '@credo-ts/core'\n\nimport { AnonCredsCredentialDefinitionRecord } from './AnonCredsCredentialDefinitionRecord'\n\n@injectable()\nexport class AnonCredsCredentialDefinitionRepository extends Repository<AnonCredsCredentialDefinitionRecord> {\n public constructor(\n @inject(InjectionSymbols.StorageService) storageService: StorageService<AnonCredsCredentialDefinitionRecord>,\n eventEmitter: EventEmitter\n ) {\n super(AnonCredsCredentialDefinitionRecord, storageService, eventEmitter)\n }\n\n public async getByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string) {\n return this.getSingleByQuery(agentContext, {\n $or: [\n {\n credentialDefinitionId,\n },\n {\n unqualifiedCredentialDefinitionId: credentialDefinitionId,\n },\n ],\n })\n }\n\n public async findByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string) {\n return this.findSingleByQuery(agentContext, {\n $or: [\n {\n credentialDefinitionId,\n },\n {\n unqualifiedCredentialDefinitionId: credentialDefinitionId,\n },\n ],\n })\n }\n}\n"],"mappings":";;;;;;;;AAOO,oDAAMA,kDAAgD,WAAgD;CAC3G,AAAO,YACL,AAAyCC,gBACzC,cACA;AACA,QAAM,qCAAqC,gBAAgB,aAAa;;CAG1E,MAAa,4BAA4B,cAA4B,wBAAgC;AACnG,SAAO,KAAK,iBAAiB,cAAc,EACzC,KAAK,CACH,EACE,wBACD,EACD,EACE,mCAAmC,wBACpC,CACF,EACF,CAAC;;CAGJ,MAAa,6BAA6B,cAA4B,wBAAgC;AACpG,SAAO,KAAK,kBAAkB,cAAc,EAC1C,KAAK,CACH,EACE,wBACD,EACD,EACE,mCAAmC,wBACpC,CACF,EACF,CAAC;;;;CAhCL,YAAY;oBAGR,OAAO,iBAAiB,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialRecord.d.mts","names":[],"sources":["../../src/repository/AnonCredsCredentialRecord.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialRecord.d.mts","names":[],"sources":["../../src/repository/AnonCredsCredentialRecord.ts"],"sourcesContent":[],"mappings":";;;;UAIiB,8BAAA;EAAA,EAAA,CAAA,EAAA,MAAA;EAA8B,SAAA,CAAA,EAEjC,IAFiC;YAEjC,EACA,mBADA;cACA,EAAA,MAAA;EAAmB,sBAAA,CAAA,EAAA,MAAA;EAWrB,YAAA,EAAA,MAAA;EAcA,UAAA,EAAA,MAAA;EAOC,aAAA,EAAA,MAAA;EAA0B,cAAA,EAAA,MAAA;UACrC,EAAA,MAAA;YACA,EAAA,MAAA;;AAgB0B,KAvChB,8BAAA,GAuCgB;cAoBZ,EAAA,MAAA;cAAA,EAAA,MAAA;wBAAA,EAAA,MAAA;wBAtC+B,CAAA,EAAA,MAAA;EAAU,oBAAA,CAAA,EAAA,MAAA;;;;;;KAP7C,6BAAA;;;;;;cAOC,yBAAA,SAAkC,WAC7C,gCACA;;;;;;uBAQ6B;;;;;;qBAQH;aAoBZ,KAAA,gCAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialRecord.d.ts","names":[],"sources":["../../src/repository/AnonCredsCredentialRecord.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialRecord.d.ts","names":[],"sources":["../../src/repository/AnonCredsCredentialRecord.ts"],"sourcesContent":[],"mappings":";;;;UAIiB,8BAAA;EAAA,EAAA,CAAA,EAAA,MAAA;EAA8B,SAAA,CAAA,EAEjC,IAFiC;YAEjC,EACA,mBADA;cACA,EAAA,MAAA;EAAmB,sBAAA,CAAA,EAAA,MAAA;EAWrB,YAAA,EAAA,MAAA;EAcA,UAAA,EAAA,MAAA;EAOC,aAAA,EAAA,MAAA;EAA0B,cAAA,EAAA,MAAA;UACrC,EAAA,MAAA;YACA,EAAA,MAAA;;AAgB0B,KAvChB,8BAAA,GAuCgB;cAoBZ,EAAA,MAAA;cAAA,EAAA,MAAA;wBAAA,EAAA,MAAA;wBAtC+B,CAAA,EAAA,MAAA;EAAU,oBAAA,CAAA,EAAA,MAAA;;;;;;KAP7C,6BAAA;;;;;;cAOC,yBAAA,SAAkC,WAC7C,gCACA;;;;;;uBAQ6B;;;;;;qBAQH;aAoBZ,KAAA,gCAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialRecord.mjs","names":["tags: Tags<DefaultAnonCredsCredentialTags, CustomAnonCredsCredentialTags>"],"sources":["../../src/repository/AnonCredsCredentialRecord.ts"],"sourcesContent":["import type { Tags } from '@credo-ts/core'\nimport
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialRecord.mjs","names":["tags: Tags<DefaultAnonCredsCredentialTags, CustomAnonCredsCredentialTags>"],"sources":["../../src/repository/AnonCredsCredentialRecord.ts"],"sourcesContent":["import type { Tags } from '@credo-ts/core'\nimport { BaseRecord, utils } from '@credo-ts/core'\nimport type { AnonCredsCredential } from '../models'\n\nexport interface AnonCredsCredentialRecordProps {\n id?: string\n createdAt?: Date\n credential: AnonCredsCredential\n credentialId: string\n credentialRevocationId?: string\n linkSecretId: string\n schemaName: string\n schemaVersion: string\n schemaIssuerId: string\n issuerId: string\n methodName: string\n}\n\nexport type DefaultAnonCredsCredentialTags = {\n credentialId: string\n linkSecretId: string\n credentialDefinitionId: string\n credentialRevocationId?: string\n revocationRegistryId?: string\n schemaId: string\n methodName: string\n\n // the following keys can be used for every `attribute name` in credential.\n [key: `attr::${string}::marker`]: true | undefined\n [key: `attr::${string}::value`]: string | undefined\n}\n\nexport type CustomAnonCredsCredentialTags = {\n schemaName: string\n schemaVersion: string\n schemaIssuerId: string\n issuerId: string\n}\n\nexport class AnonCredsCredentialRecord extends BaseRecord<\n DefaultAnonCredsCredentialTags,\n CustomAnonCredsCredentialTags\n> {\n public static readonly type = 'AnonCredsCredentialRecord'\n public readonly type = AnonCredsCredentialRecord.type\n\n public readonly credentialId!: string\n public readonly credentialRevocationId?: string\n public readonly linkSecretId!: string\n public readonly credential!: AnonCredsCredential\n\n /**\n * AnonCreds method name. We don't use names explicitly from the registry (there's no identifier for a registry)\n * @see https://hyperledger.github.io/anoncreds-methods-registry/\n */\n public readonly methodName!: string\n\n public constructor(props: AnonCredsCredentialRecordProps) {\n super()\n\n if (props) {\n this.id = props.id ?? utils.uuid()\n this.createdAt = props.createdAt ?? new Date()\n this.credentialId = props.credentialId\n this.credential = props.credential\n this.credentialRevocationId = props.credentialRevocationId\n this.linkSecretId = props.linkSecretId\n this.methodName = props.methodName\n this.setTags({\n issuerId: props.issuerId,\n schemaIssuerId: props.schemaIssuerId,\n schemaName: props.schemaName,\n schemaVersion: props.schemaVersion,\n })\n }\n }\n\n public getTags() {\n const tags: Tags<DefaultAnonCredsCredentialTags, CustomAnonCredsCredentialTags> = {\n ...this._tags,\n credentialDefinitionId: this.credential.cred_def_id,\n schemaId: this.credential.schema_id,\n credentialId: this.credentialId,\n credentialRevocationId: this.credentialRevocationId,\n revocationRegistryId: this.credential.rev_reg_id,\n linkSecretId: this.linkSecretId,\n methodName: this.methodName,\n }\n\n for (const [key, value] of Object.entries(this.credential.values)) {\n tags[`attr::${key}::value`] = value.raw\n tags[`attr::${key}::marker`] = true\n }\n\n return tags\n }\n}\n"],"mappings":";;;AAuCA,IAAa,4BAAb,MAAa,kCAAkC,WAG7C;CAeA,AAAO,YAAY,OAAuC;AACxD,SAAO;OAdO,OAAO,0BAA0B;AAgB/C,MAAI,OAAO;AACT,QAAK,KAAK,MAAM,MAAM,MAAM,MAAM;AAClC,QAAK,YAAY,MAAM,6BAAa,IAAI,MAAM;AAC9C,QAAK,eAAe,MAAM;AAC1B,QAAK,aAAa,MAAM;AACxB,QAAK,yBAAyB,MAAM;AACpC,QAAK,eAAe,MAAM;AAC1B,QAAK,aAAa,MAAM;AACxB,QAAK,QAAQ;IACX,UAAU,MAAM;IAChB,gBAAgB,MAAM;IACtB,YAAY,MAAM;IAClB,eAAe,MAAM;IACtB,CAAC;;;CAIN,AAAO,UAAU;EACf,MAAMA,OAA4E;GAChF,GAAG,KAAK;GACR,wBAAwB,KAAK,WAAW;GACxC,UAAU,KAAK,WAAW;GAC1B,cAAc,KAAK;GACnB,wBAAwB,KAAK;GAC7B,sBAAsB,KAAK,WAAW;GACtC,cAAc,KAAK;GACnB,YAAY,KAAK;GAClB;AAED,OAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,WAAW,OAAO,EAAE;AACjE,QAAK,SAAS,IAAI,YAAY,MAAM;AACpC,QAAK,SAAS,IAAI,aAAa;;AAGjC,SAAO;;;0BAnDc,OAAO"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
2
|
const require_decorateMetadata = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
|
+
const require_decorateParam = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
|
|
3
4
|
const require_decorate = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
4
5
|
const require_AnonCredsCredentialRecord = require('./AnonCredsCredentialRecord.js');
|
|
5
|
-
const require_decorateParam = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
|
|
6
6
|
let __credo_ts_core = require("@credo-ts/core");
|
|
7
7
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorateMetadata } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
|
+
import { __decorateParam } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
|
|
2
3
|
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
3
4
|
import { AnonCredsCredentialRecord } from "./AnonCredsCredentialRecord.mjs";
|
|
4
|
-
import { __decorateParam } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
|
|
5
5
|
import { EventEmitter, InjectionSymbols, Repository, inject, injectable } from "@credo-ts/core";
|
|
6
6
|
|
|
7
7
|
//#region src/repository/AnonCredsCredentialRepository.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnonCredsCredentialRepository.mjs","names":["AnonCredsCredentialRepository","storageService: StorageService<AnonCredsCredentialRecord>"],"sources":["../../src/repository/AnonCredsCredentialRepository.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\n\nimport { EventEmitter, InjectionSymbols, Repository, type StorageService
|
|
1
|
+
{"version":3,"file":"AnonCredsCredentialRepository.mjs","names":["AnonCredsCredentialRepository","storageService: StorageService<AnonCredsCredentialRecord>"],"sources":["../../src/repository/AnonCredsCredentialRepository.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\n\nimport { EventEmitter, InjectionSymbols, inject, injectable, Repository, type StorageService } from '@credo-ts/core'\n\nimport { AnonCredsCredentialRecord } from './AnonCredsCredentialRecord'\n\n@injectable()\nexport class AnonCredsCredentialRepository extends Repository<AnonCredsCredentialRecord> {\n public constructor(\n @inject(InjectionSymbols.StorageService) storageService: StorageService<AnonCredsCredentialRecord>,\n eventEmitter: EventEmitter\n ) {\n super(AnonCredsCredentialRecord, storageService, eventEmitter)\n }\n\n public async getByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string) {\n return this.getSingleByQuery(agentContext, { credentialDefinitionId })\n }\n\n public async findByCredentialDefinitionId(agentContext: AgentContext, credentialDefinitionId: string) {\n return this.findSingleByQuery(agentContext, { credentialDefinitionId })\n }\n\n public async getByCredentialId(agentContext: AgentContext, credentialId: string) {\n return this.getSingleByQuery(agentContext, { credentialId })\n }\n\n public async findByCredentialId(agentContext: AgentContext, credentialId: string) {\n return this.findSingleByQuery(agentContext, { credentialId })\n }\n}\n"],"mappings":";;;;;;;;AAOO,0CAAMA,wCAAsC,WAAsC;CACvF,AAAO,YACL,AAAyCC,gBACzC,cACA;AACA,QAAM,2BAA2B,gBAAgB,aAAa;;CAGhE,MAAa,4BAA4B,cAA4B,wBAAgC;AACnG,SAAO,KAAK,iBAAiB,cAAc,EAAE,wBAAwB,CAAC;;CAGxE,MAAa,6BAA6B,cAA4B,wBAAgC;AACpG,SAAO,KAAK,kBAAkB,cAAc,EAAE,wBAAwB,CAAC;;CAGzE,MAAa,kBAAkB,cAA4B,cAAsB;AAC/E,SAAO,KAAK,iBAAiB,cAAc,EAAE,cAAc,CAAC;;CAG9D,MAAa,mBAAmB,cAA4B,cAAsB;AAChF,SAAO,KAAK,kBAAkB,cAAc,EAAE,cAAc,CAAC;;;;CAtBhE,YAAY;oBAGR,OAAO,iBAAiB,eAAe"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
2
|
const require_decorateMetadata = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
|
|
3
|
-
const require_decorate = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
4
3
|
const require_decorateParam = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
|
|
4
|
+
const require_decorate = require('../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
|
|
5
5
|
const require_AnonCredsKeyCorrectnessProofRecord = require('./AnonCredsKeyCorrectnessProofRecord.js');
|
|
6
6
|
let __credo_ts_core = require("@credo-ts/core");
|
|
7
7
|
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorateMetadata } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
|
|
2
|
-
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
3
2
|
import { __decorateParam } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
|
|
3
|
+
import { __decorate } from "../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
|
|
4
4
|
import { AnonCredsKeyCorrectnessProofRecord } from "./AnonCredsKeyCorrectnessProofRecord.mjs";
|
|
5
5
|
import { EventEmitter, InjectionSymbols, Repository, inject, injectable } from "@credo-ts/core";
|
|
6
6
|
|