@credo-ts/didcomm 0.6.0-pr-2195-20250322195244 → 0.6.0-pr-2324-20250625125237
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/DidCommModule.js +0 -1
- package/build/DidCommModule.js.map +1 -1
- package/build/DidCommModuleConfig.d.ts +8 -0
- package/build/DidCommModuleConfig.js +9 -0
- package/build/DidCommModuleConfig.js.map +1 -1
- package/build/EnvelopeService.d.ts +13 -8
- package/build/EnvelopeService.js +281 -21
- package/build/EnvelopeService.js.map +1 -1
- package/build/MessageSender.d.ts +4 -6
- package/build/MessageSender.js +60 -70
- package/build/MessageSender.js.map +1 -1
- package/build/decorators/service/ServiceDecorator.js +4 -4
- package/build/decorators/service/ServiceDecorator.js.map +1 -1
- package/build/decorators/signature/SignatureDecoratorUtils.d.ts +5 -4
- package/build/decorators/signature/SignatureDecoratorUtils.js +22 -12
- package/build/decorators/signature/SignatureDecoratorUtils.js.map +1 -1
- package/build/getOutboundMessageContext.js +30 -5
- package/build/getOutboundMessageContext.js.map +1 -1
- package/build/models/InboundMessageContext.d.ts +5 -5
- package/build/models/OutboundMessageContext.d.ts +2 -2
- package/build/models/Routing.d.ts +3 -3
- package/build/modules/connections/ConnectionsApi.js +6 -5
- package/build/modules/connections/ConnectionsApi.js.map +1 -1
- package/build/modules/connections/DidExchangeProtocol.d.ts +3 -1
- package/build/modules/connections/DidExchangeProtocol.js +95 -57
- package/build/modules/connections/DidExchangeProtocol.js.map +1 -1
- package/build/modules/connections/handlers/ConnectionRequestHandler.js +7 -0
- package/build/modules/connections/handlers/ConnectionRequestHandler.js.map +1 -1
- package/build/modules/connections/handlers/ConnectionResponseHandler.js +4 -0
- package/build/modules/connections/handlers/ConnectionResponseHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js +0 -4
- package/build/modules/connections/handlers/DidExchangeCompleteHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidExchangeRequestHandler.js +3 -0
- package/build/modules/connections/handlers/DidExchangeRequestHandler.js.map +1 -1
- package/build/modules/connections/handlers/DidExchangeResponseHandler.js +3 -3
- package/build/modules/connections/handlers/DidExchangeResponseHandler.js.map +1 -1
- package/build/modules/connections/messages/ConnectionInvitationMessage.d.ts +2 -1
- package/build/modules/connections/messages/ConnectionInvitationMessage.js.map +1 -1
- package/build/modules/connections/models/did/DidDoc.js +2 -2
- package/build/modules/connections/models/did/DidDoc.js.map +1 -1
- package/build/modules/connections/repository/ConnectionRecord.d.ts +2 -0
- package/build/modules/connections/repository/ConnectionRecord.js +2 -0
- package/build/modules/connections/repository/ConnectionRecord.js.map +1 -1
- package/build/modules/connections/repository/ConnectionRepository.d.ts +1 -1
- package/build/modules/connections/repository/ConnectionRepository.js +2 -0
- package/build/modules/connections/repository/ConnectionRepository.js.map +1 -1
- package/build/modules/connections/services/ConnectionService.d.ts +4 -4
- package/build/modules/connections/services/ConnectionService.js +92 -41
- package/build/modules/connections/services/ConnectionService.js.map +1 -1
- package/build/modules/connections/services/DidRotateService.js +9 -10
- package/build/modules/connections/services/DidRotateService.js.map +1 -1
- package/build/modules/connections/services/helpers.d.ts +20 -6
- package/build/modules/connections/services/helpers.js +46 -29
- package/build/modules/connections/services/helpers.js.map +1 -1
- package/build/modules/credentials/models/RevocationNotification.js +14 -0
- package/build/modules/credentials/models/RevocationNotification.js.map +1 -1
- package/build/modules/credentials/protocol/index.js +17 -7
- package/build/modules/credentials/protocol/index.js.map +1 -1
- package/build/modules/credentials/repository/CredentialExchangeRecord.d.ts +1 -1
- package/build/modules/credentials/repository/CredentialExchangeRecord.js +5 -0
- package/build/modules/credentials/repository/CredentialExchangeRecord.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupApi.js +7 -2
- package/build/modules/message-pickup/MessagePickupApi.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupApiOptions.d.ts +1 -1
- package/build/modules/message-pickup/MessagePickupModule.d.ts +1 -0
- package/build/modules/message-pickup/MessagePickupModule.js +6 -11
- package/build/modules/message-pickup/MessagePickupModule.js.map +1 -1
- package/build/modules/message-pickup/MessagePickupModuleConfig.d.ts +0 -8
- package/build/modules/message-pickup/MessagePickupModuleConfig.js +0 -4
- package/build/modules/message-pickup/MessagePickupModuleConfig.js.map +1 -1
- package/build/modules/message-pickup/index.d.ts +0 -1
- package/build/modules/message-pickup/index.js +0 -1
- package/build/modules/message-pickup/index.js.map +1 -1
- package/build/modules/message-pickup/protocol/MessagePickupProtocolOptions.d.ts +1 -1
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js +6 -5
- package/build/modules/message-pickup/protocol/v1/V1MessagePickupProtocol.js.map +1 -1
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js +22 -13
- package/build/modules/message-pickup/protocol/v2/V2MessagePickupProtocol.js.map +1 -1
- package/build/modules/oob/OutOfBandApi.js +21 -8
- package/build/modules/oob/OutOfBandApi.js.map +1 -1
- package/build/modules/oob/OutOfBandService.d.ts +9 -5
- package/build/modules/oob/OutOfBandService.js +7 -2
- package/build/modules/oob/OutOfBandService.js.map +1 -1
- package/build/modules/oob/converters.js +2 -4
- package/build/modules/oob/converters.js.map +1 -1
- package/build/modules/oob/domain/OutOfBandDidCommService.js +14 -2
- package/build/modules/oob/domain/OutOfBandDidCommService.js.map +1 -1
- package/build/modules/oob/helpers.js +6 -6
- package/build/modules/oob/helpers.js.map +1 -1
- package/build/modules/oob/messages/OutOfBandInvitation.js.map +1 -1
- package/build/modules/oob/repository/OutOfBandRecord.d.ts +34 -0
- package/build/modules/oob/repository/OutOfBandRecord.js +1 -0
- package/build/modules/oob/repository/OutOfBandRecord.js.map +1 -1
- package/build/modules/oob/repository/outOfBandRecordMetadataTypes.d.ts +4 -0
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js +7 -4
- package/build/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.js.map +1 -1
- package/build/modules/proofs/formats/index.js +17 -7
- package/build/modules/proofs/formats/index.js.map +1 -1
- package/build/modules/proofs/protocol/index.js +17 -7
- package/build/modules/proofs/protocol/index.js.map +1 -1
- package/build/modules/routing/MediationRecipientApi.d.ts +0 -2
- package/build/modules/routing/MediationRecipientApi.js +1 -46
- package/build/modules/routing/MediationRecipientApi.js.map +1 -1
- package/build/modules/routing/MediationRecipientModule.d.ts +3 -0
- package/build/modules/routing/MediationRecipientModule.js +60 -0
- package/build/modules/routing/MediationRecipientModule.js.map +1 -1
- package/build/modules/routing/MediatorModule.d.ts +1 -0
- package/build/modules/routing/MediatorModule.js +5 -0
- package/build/modules/routing/MediatorModule.js.map +1 -1
- package/build/modules/routing/MediatorModuleConfig.d.ts +2 -2
- package/build/modules/routing/MessageForwardingStrategy.js +2 -2
- package/build/modules/routing/MessageForwardingStrategy.js.map +1 -1
- package/build/modules/routing/repository/MediationRecord.d.ts +8 -0
- package/build/modules/routing/repository/MediationRecord.js +2 -0
- package/build/modules/routing/repository/MediationRecord.js.map +1 -1
- package/build/modules/routing/repository/MediatorRoutingRecord.d.ts +23 -5
- package/build/modules/routing/repository/MediatorRoutingRecord.js +33 -1
- package/build/modules/routing/repository/MediatorRoutingRecord.js.map +1 -1
- package/build/modules/routing/services/MediationRecipientService.d.ts +3 -3
- package/build/modules/routing/services/MediationRecipientService.js +15 -12
- package/build/modules/routing/services/MediationRecipientService.js.map +1 -1
- package/build/modules/routing/services/MediatorService.js +17 -9
- package/build/modules/routing/services/MediatorService.js.map +1 -1
- package/build/modules/routing/services/RoutingService.d.ts +3 -3
- package/build/modules/routing/services/RoutingService.js +4 -3
- package/build/modules/routing/services/RoutingService.js.map +1 -1
- package/build/modules/routing/services/helpers.d.ts +1 -1
- package/build/modules/routing/services/helpers.js +3 -4
- package/build/modules/routing/services/helpers.js.map +1 -1
- package/build/services/DidCommDocumentService.d.ts +8 -3
- package/build/services/DidCommDocumentService.js +46 -15
- package/build/services/DidCommDocumentService.js.map +1 -1
- package/build/transport/HttpOutboundTransport.js +2 -4
- package/build/transport/HttpOutboundTransport.js.map +1 -1
- package/build/transport/index.d.ts +1 -0
- package/build/transport/index.js +1 -0
- package/build/transport/index.js.map +1 -1
- package/build/transport/queue/InMemoryQueueTransportRepository.d.ts +12 -0
- package/build/{modules/message-pickup/storage/InMemoryMessagePickupRepository.js → transport/queue/InMemoryQueueTransportRepository.js} +15 -19
- package/build/transport/queue/InMemoryQueueTransportRepository.js.map +1 -0
- package/build/transport/queue/QueueTransportRepository.d.ts +9 -0
- package/build/{modules/message-pickup/storage/MessagePickupRepository.js → transport/queue/QueueTransportRepository.js} +1 -1
- package/build/transport/queue/QueueTransportRepository.js.map +1 -0
- package/build/{modules/message-pickup/storage/MessagePickupRepositoryOptions.d.ts → transport/queue/QueueTransportRepositoryOptions.d.ts} +2 -1
- package/build/{modules/message-pickup/storage/MessagePickupRepositoryOptions.js → transport/queue/QueueTransportRepositoryOptions.js} +1 -1
- package/build/transport/queue/QueueTransportRepositoryOptions.js.map +1 -0
- package/build/{modules/message-pickup/storage → transport/queue}/QueuedMessage.d.ts +2 -2
- package/build/transport/queue/QueuedMessage.js.map +1 -0
- package/build/transport/queue/index.d.ts +4 -0
- package/build/{modules/message-pickup/storage → transport/queue}/index.js +3 -3
- package/build/transport/queue/index.js.map +1 -0
- package/build/updates/0.1-0.2/connection.js +3 -3
- package/build/updates/0.1-0.2/connection.js.map +1 -1
- package/build/util/modules.d.ts +1 -1
- package/build/util/modules.js +3 -1
- package/build/util/modules.js.map +1 -1
- package/build/util/parseInvitation.js +0 -2
- package/build/util/parseInvitation.js.map +1 -1
- package/package.json +7 -7
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.d.ts +0 -13
- package/build/modules/message-pickup/storage/InMemoryMessagePickupRepository.js.map +0 -1
- package/build/modules/message-pickup/storage/MessagePickupRepository.d.ts +0 -8
- package/build/modules/message-pickup/storage/MessagePickupRepository.js.map +0 -1
- package/build/modules/message-pickup/storage/MessagePickupRepositoryOptions.js.map +0 -1
- package/build/modules/message-pickup/storage/QueuedMessage.js.map +0 -1
- package/build/modules/message-pickup/storage/index.d.ts +0 -4
- package/build/modules/message-pickup/storage/index.js.map +0 -1
- package/build/util/matchingEd25519Key.d.ts +0 -9
- package/build/util/matchingEd25519Key.js +0 -30
- package/build/util/matchingEd25519Key.js.map +0 -1
- /package/build/{modules/message-pickup/storage → transport/queue}/QueuedMessage.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessagePickupRepository.js","sourceRoot":"","sources":["../../../../src/modules/message-pickup/storage/MessagePickupRepository.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessagePickupRepositoryOptions.js","sourceRoot":"","sources":["../../../../src/modules/message-pickup/storage/MessagePickupRepositoryOptions.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueuedMessage.js","sourceRoot":"","sources":["../../../../src/modules/message-pickup/storage/QueuedMessage.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/message-pickup/storage/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAiD;AACjD,4DAAyC;AACzC,mEAAgD;AAChD,kDAA+B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DidDocument } from '@credo-ts/core';
|
|
2
|
-
import { Key } from '@credo-ts/core';
|
|
3
|
-
/**
|
|
4
|
-
* Tries to find a matching Ed25519 key to the supplied X25519 key
|
|
5
|
-
* @param x25519Key X25519 key
|
|
6
|
-
* @param didDocument Did document containing all the keys
|
|
7
|
-
* @returns a matching Ed25519 key or `undefined` (if no matching key found)
|
|
8
|
-
*/
|
|
9
|
-
export declare function findMatchingEd25519Key(x25519Key: Key, didDocument: DidDocument): Key | undefined;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findMatchingEd25519Key = findMatchingEd25519Key;
|
|
4
|
-
const core_1 = require("@credo-ts/core");
|
|
5
|
-
/**
|
|
6
|
-
* Tries to find a matching Ed25519 key to the supplied X25519 key
|
|
7
|
-
* @param x25519Key X25519 key
|
|
8
|
-
* @param didDocument Did document containing all the keys
|
|
9
|
-
* @returns a matching Ed25519 key or `undefined` (if no matching key found)
|
|
10
|
-
*/
|
|
11
|
-
function findMatchingEd25519Key(x25519Key, didDocument) {
|
|
12
|
-
if (x25519Key.keyType !== core_1.KeyType.X25519)
|
|
13
|
-
return undefined;
|
|
14
|
-
const verificationMethods = didDocument.verificationMethod ?? [];
|
|
15
|
-
const keyAgreements = didDocument.keyAgreement ?? [];
|
|
16
|
-
const authentications = didDocument.authentication ?? [];
|
|
17
|
-
const allKeyReferences = [
|
|
18
|
-
...verificationMethods,
|
|
19
|
-
...authentications.filter((keyAgreement) => typeof keyAgreement !== 'string'),
|
|
20
|
-
...keyAgreements.filter((keyAgreement) => typeof keyAgreement !== 'string'),
|
|
21
|
-
];
|
|
22
|
-
return allKeyReferences
|
|
23
|
-
.map((keyReference) => (0, core_1.getKeyFromVerificationMethod)(didDocument.dereferenceKey(keyReference.id)))
|
|
24
|
-
.filter((key) => key?.keyType === core_1.KeyType.Ed25519)
|
|
25
|
-
.find((keyEd25519) => {
|
|
26
|
-
const keyX25519 = core_1.Key.fromPublicKey((0, core_1.convertPublicKeyToX25519)(keyEd25519.publicKey), core_1.KeyType.X25519);
|
|
27
|
-
return keyX25519.publicKeyBase58 === x25519Key.publicKeyBase58;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=matchingEd25519Key.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matchingEd25519Key.js","sourceRoot":"","sources":["../../src/util/matchingEd25519Key.ts"],"names":[],"mappings":";;AAUA,wDAmB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