@credo-ts/core 0.5.0-alpha.119 → 0.5.0-alpha.120
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/modules/credentials/protocol/CredentialProtocolOptions.d.ts +28 -21
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.d.ts +18 -6
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js +19 -7
- package/build/modules/credentials/protocol/v2/CredentialFormatCoordinator.js.map +1 -1
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.d.ts +8 -8
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js +24 -8
- package/build/modules/credentials/protocol/v2/V2CredentialProtocol.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.d.ts +4 -0
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js +13 -0
- package/build/modules/credentials/protocol/v2/messages/V2IssueCredentialMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.d.ts +4 -0
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js +13 -0
- package/build/modules/credentials/protocol/v2/messages/V2OfferCredentialMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.d.ts +4 -0
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js +13 -0
- package/build/modules/credentials/protocol/v2/messages/V2ProposeCredentialMessage.js.map +1 -1
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.d.ts +4 -0
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js +13 -0
- package/build/modules/credentials/protocol/v2/messages/V2RequestCredentialMessage.js.map +1 -1
- package/build/modules/proofs/protocol/ProofProtocolOptions.d.ts +8 -1
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.d.ts +8 -4
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js +8 -4
- package/build/modules/proofs/protocol/v2/ProofFormatCoordinator.js.map +1 -1
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.d.ts +6 -6
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js +12 -6
- package/build/modules/proofs/protocol/v2/V2ProofProtocol.js.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.d.ts +3 -1
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js +6 -0
- package/build/modules/proofs/protocol/v2/messages/V2PresentationMessage.js.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.d.ts +2 -0
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js +6 -0
- package/build/modules/proofs/protocol/v2/messages/V2ProposePresentationMessage.js.map +1 -1
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.d.ts +2 -0
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js +6 -0
- package/build/modules/proofs/protocol/v2/messages/V2RequestPresentationMessage.js.map +1 -1
- package/package.json +2 -2
|
@@ -71,53 +71,59 @@ export type GetCredentialFormatDataReturn<CFs extends CredentialFormat[] = Crede
|
|
|
71
71
|
request?: CredentialFormatDataMessagePayload<CFs, 'request'>;
|
|
72
72
|
credential?: CredentialFormatDataMessagePayload<CFs, 'credential'>;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
interface BaseOptions {
|
|
75
|
+
comment?: string;
|
|
76
|
+
autoAcceptCredential?: AutoAcceptCredential;
|
|
77
|
+
/**
|
|
78
|
+
* Will be ignored for v1 protocol as it is not supported
|
|
79
|
+
*/
|
|
80
|
+
goalCode?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Will be ignored for v1 protocol as it is not supported
|
|
83
|
+
*/
|
|
84
|
+
goal?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface CreateCredentialProposalOptions<CFs extends CredentialFormatService[]> extends BaseOptions {
|
|
75
87
|
connectionRecord: ConnectionRecord;
|
|
76
88
|
credentialFormats: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createProposal'>;
|
|
77
|
-
autoAcceptCredential?: AutoAcceptCredential;
|
|
78
|
-
comment?: string;
|
|
79
89
|
}
|
|
80
|
-
export interface AcceptCredentialProposalOptions<CFs extends CredentialFormatService[]> {
|
|
90
|
+
export interface AcceptCredentialProposalOptions<CFs extends CredentialFormatService[]> extends BaseOptions {
|
|
81
91
|
credentialRecord: CredentialExchangeRecord;
|
|
82
92
|
credentialFormats?: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptProposal'>;
|
|
83
|
-
autoAcceptCredential?: AutoAcceptCredential;
|
|
84
|
-
comment?: string;
|
|
85
93
|
}
|
|
86
94
|
export interface NegotiateCredentialProposalOptions<CFs extends CredentialFormatService[]> {
|
|
87
95
|
credentialRecord: CredentialExchangeRecord;
|
|
88
96
|
credentialFormats: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createOffer'>;
|
|
89
97
|
autoAcceptCredential?: AutoAcceptCredential;
|
|
90
98
|
comment?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Will be ignored for v1 protocol as it is not supported
|
|
101
|
+
*/
|
|
102
|
+
goalCode?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Will be ignored for v1 protocol as it is not supported
|
|
105
|
+
*/
|
|
106
|
+
goal?: string;
|
|
91
107
|
}
|
|
92
|
-
export interface CreateCredentialOfferOptions<CFs extends CredentialFormatService[]> {
|
|
108
|
+
export interface CreateCredentialOfferOptions<CFs extends CredentialFormatService[]> extends BaseOptions {
|
|
93
109
|
connectionRecord?: ConnectionRecord;
|
|
94
110
|
credentialFormats: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createOffer'>;
|
|
95
|
-
autoAcceptCredential?: AutoAcceptCredential;
|
|
96
|
-
comment?: string;
|
|
97
111
|
}
|
|
98
|
-
export interface AcceptCredentialOfferOptions<CFs extends CredentialFormatService[]> {
|
|
112
|
+
export interface AcceptCredentialOfferOptions<CFs extends CredentialFormatService[]> extends BaseOptions {
|
|
99
113
|
credentialRecord: CredentialExchangeRecord;
|
|
100
114
|
credentialFormats?: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptOffer'>;
|
|
101
|
-
autoAcceptCredential?: AutoAcceptCredential;
|
|
102
|
-
comment?: string;
|
|
103
115
|
}
|
|
104
|
-
export interface NegotiateCredentialOfferOptions<CFs extends CredentialFormatService[]> {
|
|
116
|
+
export interface NegotiateCredentialOfferOptions<CFs extends CredentialFormatService[]> extends BaseOptions {
|
|
105
117
|
credentialRecord: CredentialExchangeRecord;
|
|
106
118
|
credentialFormats: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createProposal'>;
|
|
107
|
-
autoAcceptCredential?: AutoAcceptCredential;
|
|
108
|
-
comment?: string;
|
|
109
119
|
}
|
|
110
|
-
export interface CreateCredentialRequestOptions<CFs extends CredentialFormatService[]> {
|
|
120
|
+
export interface CreateCredentialRequestOptions<CFs extends CredentialFormatService[]> extends BaseOptions {
|
|
111
121
|
connectionRecord: ConnectionRecord;
|
|
112
122
|
credentialFormats: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createRequest'>;
|
|
113
|
-
autoAcceptCredential?: AutoAcceptCredential;
|
|
114
|
-
comment?: string;
|
|
115
123
|
}
|
|
116
|
-
export interface AcceptCredentialRequestOptions<CFs extends CredentialFormatService[]> {
|
|
124
|
+
export interface AcceptCredentialRequestOptions<CFs extends CredentialFormatService[]> extends BaseOptions {
|
|
117
125
|
credentialRecord: CredentialExchangeRecord;
|
|
118
126
|
credentialFormats?: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptRequest'>;
|
|
119
|
-
autoAcceptCredential?: AutoAcceptCredential;
|
|
120
|
-
comment?: string;
|
|
121
127
|
}
|
|
122
128
|
export interface AcceptCredentialOptions {
|
|
123
129
|
credentialRecord: CredentialExchangeRecord;
|
|
@@ -134,3 +140,4 @@ export interface DeleteCredentialOptions {
|
|
|
134
140
|
deleteAssociatedCredentials?: boolean;
|
|
135
141
|
deleteAssociatedDidCommMessages?: boolean;
|
|
136
142
|
}
|
|
143
|
+
export {};
|
|
@@ -12,22 +12,26 @@ export declare class CredentialFormatCoordinator<CFs extends CredentialFormatSer
|
|
|
12
12
|
* @returns The created {@link V2ProposeCredentialMessage}
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
createProposal(agentContext: AgentContext, { credentialFormats, formatServices, credentialRecord, comment, }: {
|
|
15
|
+
createProposal(agentContext: AgentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }: {
|
|
16
16
|
formatServices: CredentialFormatService[];
|
|
17
17
|
credentialFormats: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createProposal'>;
|
|
18
18
|
credentialRecord: CredentialExchangeRecord;
|
|
19
19
|
comment?: string;
|
|
20
|
+
goalCode?: string;
|
|
21
|
+
goal?: string;
|
|
20
22
|
}): Promise<V2ProposeCredentialMessage>;
|
|
21
23
|
processProposal(agentContext: AgentContext, { credentialRecord, message, formatServices, }: {
|
|
22
24
|
credentialRecord: CredentialExchangeRecord;
|
|
23
25
|
message: V2ProposeCredentialMessage;
|
|
24
26
|
formatServices: CredentialFormatService[];
|
|
25
27
|
}): Promise<void>;
|
|
26
|
-
acceptProposal(agentContext: AgentContext, { credentialRecord, credentialFormats, formatServices, comment, }: {
|
|
28
|
+
acceptProposal(agentContext: AgentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }: {
|
|
27
29
|
credentialRecord: CredentialExchangeRecord;
|
|
28
30
|
credentialFormats?: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptProposal'>;
|
|
29
31
|
formatServices: CredentialFormatService[];
|
|
30
32
|
comment?: string;
|
|
33
|
+
goalCode?: string;
|
|
34
|
+
goal?: string;
|
|
31
35
|
}): Promise<V2OfferCredentialMessage>;
|
|
32
36
|
/**
|
|
33
37
|
* Create a {@link V2OfferCredentialMessage}.
|
|
@@ -36,22 +40,26 @@ export declare class CredentialFormatCoordinator<CFs extends CredentialFormatSer
|
|
|
36
40
|
* @returns The created {@link V2OfferCredentialMessage}
|
|
37
41
|
*
|
|
38
42
|
*/
|
|
39
|
-
createOffer(agentContext: AgentContext, { credentialFormats, formatServices, credentialRecord, comment, }: {
|
|
43
|
+
createOffer(agentContext: AgentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }: {
|
|
40
44
|
formatServices: CredentialFormatService[];
|
|
41
45
|
credentialFormats: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createOffer'>;
|
|
42
46
|
credentialRecord: CredentialExchangeRecord;
|
|
43
47
|
comment?: string;
|
|
48
|
+
goalCode?: string;
|
|
49
|
+
goal?: string;
|
|
44
50
|
}): Promise<V2OfferCredentialMessage>;
|
|
45
51
|
processOffer(agentContext: AgentContext, { credentialRecord, message, formatServices, }: {
|
|
46
52
|
credentialRecord: CredentialExchangeRecord;
|
|
47
53
|
message: V2OfferCredentialMessage;
|
|
48
54
|
formatServices: CredentialFormatService[];
|
|
49
55
|
}): Promise<void>;
|
|
50
|
-
acceptOffer(agentContext: AgentContext, { credentialRecord, credentialFormats, formatServices, comment, }: {
|
|
56
|
+
acceptOffer(agentContext: AgentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }: {
|
|
51
57
|
credentialRecord: CredentialExchangeRecord;
|
|
52
58
|
credentialFormats?: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptOffer'>;
|
|
53
59
|
formatServices: CredentialFormatService[];
|
|
54
60
|
comment?: string;
|
|
61
|
+
goalCode?: string;
|
|
62
|
+
goal?: string;
|
|
55
63
|
}): Promise<V2RequestCredentialMessage>;
|
|
56
64
|
/**
|
|
57
65
|
* Create a {@link V2RequestCredentialMessage}.
|
|
@@ -60,22 +68,26 @@ export declare class CredentialFormatCoordinator<CFs extends CredentialFormatSer
|
|
|
60
68
|
* @returns The created {@link V2RequestCredentialMessage}
|
|
61
69
|
*
|
|
62
70
|
*/
|
|
63
|
-
createRequest(agentContext: AgentContext, { credentialFormats, formatServices, credentialRecord, comment, }: {
|
|
71
|
+
createRequest(agentContext: AgentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }: {
|
|
64
72
|
formatServices: CredentialFormatService[];
|
|
65
73
|
credentialFormats: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'createRequest'>;
|
|
66
74
|
credentialRecord: CredentialExchangeRecord;
|
|
67
75
|
comment?: string;
|
|
76
|
+
goalCode?: string;
|
|
77
|
+
goal?: string;
|
|
68
78
|
}): Promise<V2RequestCredentialMessage>;
|
|
69
79
|
processRequest(agentContext: AgentContext, { credentialRecord, message, formatServices, }: {
|
|
70
80
|
credentialRecord: CredentialExchangeRecord;
|
|
71
81
|
message: V2RequestCredentialMessage;
|
|
72
82
|
formatServices: CredentialFormatService[];
|
|
73
83
|
}): Promise<void>;
|
|
74
|
-
acceptRequest(agentContext: AgentContext, { credentialRecord, credentialFormats, formatServices, comment, }: {
|
|
84
|
+
acceptRequest(agentContext: AgentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }: {
|
|
75
85
|
credentialRecord: CredentialExchangeRecord;
|
|
76
86
|
credentialFormats?: CredentialFormatPayload<ExtractCredentialFormats<CFs>, 'acceptRequest'>;
|
|
77
87
|
formatServices: CredentialFormatService[];
|
|
78
88
|
comment?: string;
|
|
89
|
+
goalCode?: string;
|
|
90
|
+
goal?: string;
|
|
79
91
|
}): Promise<V2IssueCredentialMessage>;
|
|
80
92
|
processCredential(agentContext: AgentContext, { credentialRecord, message, requestMessage, formatServices, }: {
|
|
81
93
|
credentialRecord: CredentialExchangeRecord;
|
|
@@ -12,7 +12,7 @@ class CredentialFormatCoordinator {
|
|
|
12
12
|
* @returns The created {@link V2ProposeCredentialMessage}
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
async createProposal(agentContext, { credentialFormats, formatServices, credentialRecord, comment, }) {
|
|
15
|
+
async createProposal(agentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }) {
|
|
16
16
|
const didCommMessageRepository = agentContext.dependencyManager.resolve(storage_1.DidCommMessageRepository);
|
|
17
17
|
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
18
18
|
const formats = [];
|
|
@@ -36,8 +36,10 @@ class CredentialFormatCoordinator {
|
|
|
36
36
|
id: credentialRecord.threadId,
|
|
37
37
|
formats,
|
|
38
38
|
proposalAttachments,
|
|
39
|
-
comment
|
|
39
|
+
comment,
|
|
40
40
|
credentialPreview,
|
|
41
|
+
goalCode,
|
|
42
|
+
goal,
|
|
41
43
|
});
|
|
42
44
|
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
43
45
|
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
@@ -62,7 +64,7 @@ class CredentialFormatCoordinator {
|
|
|
62
64
|
associatedRecordId: credentialRecord.id,
|
|
63
65
|
});
|
|
64
66
|
}
|
|
65
|
-
async acceptProposal(agentContext, { credentialRecord, credentialFormats, formatServices, comment, }) {
|
|
67
|
+
async acceptProposal(agentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }) {
|
|
66
68
|
var _a;
|
|
67
69
|
const didCommMessageRepository = agentContext.dependencyManager.resolve(storage_1.DidCommMessageRepository);
|
|
68
70
|
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
@@ -105,6 +107,8 @@ class CredentialFormatCoordinator {
|
|
|
105
107
|
credentialPreview,
|
|
106
108
|
offerAttachments,
|
|
107
109
|
comment,
|
|
110
|
+
goalCode,
|
|
111
|
+
goal,
|
|
108
112
|
});
|
|
109
113
|
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
110
114
|
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
@@ -121,7 +125,7 @@ class CredentialFormatCoordinator {
|
|
|
121
125
|
* @returns The created {@link V2OfferCredentialMessage}
|
|
122
126
|
*
|
|
123
127
|
*/
|
|
124
|
-
async createOffer(agentContext, { credentialFormats, formatServices, credentialRecord, comment, }) {
|
|
128
|
+
async createOffer(agentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }) {
|
|
125
129
|
const didCommMessageRepository = agentContext.dependencyManager.resolve(storage_1.DidCommMessageRepository);
|
|
126
130
|
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
127
131
|
const formats = [];
|
|
@@ -151,6 +155,8 @@ class CredentialFormatCoordinator {
|
|
|
151
155
|
const message = new messages_1.V2OfferCredentialMessage({
|
|
152
156
|
formats,
|
|
153
157
|
comment,
|
|
158
|
+
goalCode,
|
|
159
|
+
goal,
|
|
154
160
|
offerAttachments,
|
|
155
161
|
credentialPreview,
|
|
156
162
|
});
|
|
@@ -177,7 +183,7 @@ class CredentialFormatCoordinator {
|
|
|
177
183
|
associatedRecordId: credentialRecord.id,
|
|
178
184
|
});
|
|
179
185
|
}
|
|
180
|
-
async acceptOffer(agentContext, { credentialRecord, credentialFormats, formatServices, comment, }) {
|
|
186
|
+
async acceptOffer(agentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }) {
|
|
181
187
|
var _a;
|
|
182
188
|
const didCommMessageRepository = agentContext.dependencyManager.resolve(storage_1.DidCommMessageRepository);
|
|
183
189
|
const offerMessage = await didCommMessageRepository.getAgentMessage(agentContext, {
|
|
@@ -202,6 +208,8 @@ class CredentialFormatCoordinator {
|
|
|
202
208
|
formats,
|
|
203
209
|
requestAttachments: requestAttachments,
|
|
204
210
|
comment,
|
|
211
|
+
goalCode,
|
|
212
|
+
goal,
|
|
205
213
|
});
|
|
206
214
|
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
207
215
|
await didCommMessageRepository.saveOrUpdateAgentMessage(agentContext, {
|
|
@@ -218,7 +226,7 @@ class CredentialFormatCoordinator {
|
|
|
218
226
|
* @returns The created {@link V2RequestCredentialMessage}
|
|
219
227
|
*
|
|
220
228
|
*/
|
|
221
|
-
async createRequest(agentContext, { credentialFormats, formatServices, credentialRecord, comment, }) {
|
|
229
|
+
async createRequest(agentContext, { credentialFormats, formatServices, credentialRecord, comment, goalCode, goal, }) {
|
|
222
230
|
const didCommMessageRepository = agentContext.dependencyManager.resolve(storage_1.DidCommMessageRepository);
|
|
223
231
|
// create message. there are two arrays in each message, one for formats the other for attachments
|
|
224
232
|
const formats = [];
|
|
@@ -234,6 +242,8 @@ class CredentialFormatCoordinator {
|
|
|
234
242
|
const message = new messages_1.V2RequestCredentialMessage({
|
|
235
243
|
formats,
|
|
236
244
|
comment,
|
|
245
|
+
goalCode,
|
|
246
|
+
goal,
|
|
237
247
|
requestAttachments: requestAttachments,
|
|
238
248
|
});
|
|
239
249
|
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
@@ -259,7 +269,7 @@ class CredentialFormatCoordinator {
|
|
|
259
269
|
associatedRecordId: credentialRecord.id,
|
|
260
270
|
});
|
|
261
271
|
}
|
|
262
|
-
async acceptRequest(agentContext, { credentialRecord, credentialFormats, formatServices, comment, }) {
|
|
272
|
+
async acceptRequest(agentContext, { credentialRecord, credentialFormats, formatServices, comment, goalCode, goal, }) {
|
|
263
273
|
const didCommMessageRepository = agentContext.dependencyManager.resolve(storage_1.DidCommMessageRepository);
|
|
264
274
|
const requestMessage = await didCommMessageRepository.getAgentMessage(agentContext, {
|
|
265
275
|
associatedRecordId: credentialRecord.id,
|
|
@@ -290,6 +300,8 @@ class CredentialFormatCoordinator {
|
|
|
290
300
|
formats,
|
|
291
301
|
credentialAttachments: credentialAttachments,
|
|
292
302
|
comment,
|
|
303
|
+
goalCode,
|
|
304
|
+
goal,
|
|
293
305
|
});
|
|
294
306
|
message.setThread({ threadId: credentialRecord.threadId, parentThreadId: credentialRecord.parentThreadId });
|
|
295
307
|
message.setPleaseAck();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialFormatCoordinator.js","sourceRoot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ator.js","sourceRoot":"","sources":["../../../../../src/modules/credentials/protocol/v2/CredentialFormatCoordinator.ts"],"names":[],"mappings":";;;AAMA,6DAAyD;AACzD,iDAAkF;AAElF,yCAMmB;AAEnB,MAAa,2BAA2B;IACtC;;;;;;OAMG;IACI,KAAK,CAAC,cAAc,CACzB,YAA0B,EAC1B,EACE,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,QAAQ,EACR,IAAI,GAQL;QAED,MAAM,wBAAwB,GAAG,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,kCAAwB,CAAC,CAAA;QAEjG,kGAAkG;QAClG,MAAM,OAAO,GAA2B,EAAE,CAAA;QAC1C,MAAM,mBAAmB,GAAiB,EAAE,CAAA;QAC5C,IAAI,iBAAkD,CAAA;QAEtD,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE;YAC1C,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,MAAM,aAAa,CAAC,cAAc,CAAC,YAAY,EAAE;gBACjG,iBAAiB;gBACjB,gBAAgB;aACjB,CAAC,CAAA;YAEF,IAAI,iBAAiB,EAAE;gBACrB,iBAAiB,GAAG,IAAI,8BAAmB,CAAC;oBAC1C,UAAU,EAAE,iBAAiB;iBAC9B,CAAC,CAAA;aACH;YAED,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;YACpC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;SACrB;QAED,gBAAgB,CAAC,oBAAoB,GAAG,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,UAAU,CAAA;QAErE,MAAM,OAAO,GAAG,IAAI,qCAA0B,CAAC;YAC7C,EAAE,EAAE,gBAAgB,CAAC,QAAQ;YAC7B,OAAO;YACP,mBAAmB;YACnB,OAAO;YACP,iBAAiB;YACjB,QAAQ;YACR,IAAI;SACL,CAAC,CAAA;QAEF,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,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AuB,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;QAE9F,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,uBAAU,CAAC,mCAAmC,uBAAuB,CAAC,SAAS,EAAE,CAAC,CAAA;QAEzG,OAAO,MAAM,CAAC,YAAY,CAAA;IAC5B,CAAC;CACF;AA/kBD,kEA+kBC"}
|
|
@@ -34,7 +34,7 @@ export declare class V2CredentialProtocol<CFs extends CredentialFormatService[]
|
|
|
34
34
|
* @returns Object containing proposal message and associated credential record
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
|
-
createProposal(agentContext: AgentContext, { connectionRecord, credentialFormats, comment, autoAcceptCredential }: CreateCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<AgentMessage>>;
|
|
37
|
+
createProposal(agentContext: AgentContext, { connectionRecord, credentialFormats, comment, goal, goalCode, autoAcceptCredential, }: CreateCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<AgentMessage>>;
|
|
38
38
|
/**
|
|
39
39
|
* Method called by {@link V2ProposeCredentialHandler} on reception of a propose credential message
|
|
40
40
|
* We do the necessary processing here to accept the proposal and do the state change, emit event etc.
|
|
@@ -42,7 +42,7 @@ export declare class V2CredentialProtocol<CFs extends CredentialFormatService[]
|
|
|
42
42
|
* @returns credential record appropriate for this incoming message (once accepted)
|
|
43
43
|
*/
|
|
44
44
|
processProposal(messageContext: InboundMessageContext<V2ProposeCredentialMessage>): Promise<CredentialExchangeRecord>;
|
|
45
|
-
acceptProposal(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment }: AcceptCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
45
|
+
acceptProposal(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }: AcceptCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
46
46
|
/**
|
|
47
47
|
* Negotiate a credential proposal as issuer (by sending a credential offer message) to the connection
|
|
48
48
|
* associated with the credential record.
|
|
@@ -51,7 +51,7 @@ export declare class V2CredentialProtocol<CFs extends CredentialFormatService[]
|
|
|
51
51
|
* @returns Credential exchange record associated with the credential offer
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
|
-
negotiateProposal(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment }: NegotiateCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
54
|
+
negotiateProposal(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }: NegotiateCredentialProposalOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
55
55
|
/**
|
|
56
56
|
* Create a {@link V2OfferCredentialMessage} as beginning of protocol process. If no connectionId is provided, the
|
|
57
57
|
* exchange will be created without a connection for usage in oob and connection-less issuance.
|
|
@@ -61,7 +61,7 @@ export declare class V2CredentialProtocol<CFs extends CredentialFormatService[]
|
|
|
61
61
|
* @returns Object containing offer message and associated credential record
|
|
62
62
|
*
|
|
63
63
|
*/
|
|
64
|
-
createOffer(agentContext: AgentContext, { credentialFormats, autoAcceptCredential, comment, connectionRecord }: CreateCredentialOfferOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
64
|
+
createOffer(agentContext: AgentContext, { credentialFormats, autoAcceptCredential, comment, goal, goalCode, connectionRecord, }: CreateCredentialOfferOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2OfferCredentialMessage>>;
|
|
65
65
|
/**
|
|
66
66
|
* Method called by {@link V2OfferCredentialHandler} on reception of a offer credential message
|
|
67
67
|
* We do the necessary processing here to accept the offer and do the state change, emit event etc.
|
|
@@ -69,7 +69,7 @@ export declare class V2CredentialProtocol<CFs extends CredentialFormatService[]
|
|
|
69
69
|
* @returns credential record appropriate for this incoming message (once accepted)
|
|
70
70
|
*/
|
|
71
71
|
processOffer(messageContext: MessageHandlerInboundMessage<V2OfferCredentialHandler>): Promise<CredentialExchangeRecord>;
|
|
72
|
-
acceptOffer(agentContext: AgentContext, { credentialRecord, autoAcceptCredential, comment, credentialFormats }: AcceptCredentialOfferOptions<CFs>): Promise<{
|
|
72
|
+
acceptOffer(agentContext: AgentContext, { credentialRecord, autoAcceptCredential, comment, goal, goalCode, credentialFormats, }: AcceptCredentialOfferOptions<CFs>): Promise<{
|
|
73
73
|
credentialRecord: CredentialExchangeRecord;
|
|
74
74
|
message: V2RequestCredentialMessage;
|
|
75
75
|
}>;
|
|
@@ -81,13 +81,13 @@ export declare class V2CredentialProtocol<CFs extends CredentialFormatService[]
|
|
|
81
81
|
* @returns Object containing proposal message and associated credential record
|
|
82
82
|
*
|
|
83
83
|
*/
|
|
84
|
-
negotiateOffer(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment }: NegotiateCredentialOfferOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2ProposeCredentialMessage>>;
|
|
84
|
+
negotiateOffer(agentContext: AgentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }: NegotiateCredentialOfferOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2ProposeCredentialMessage>>;
|
|
85
85
|
/**
|
|
86
86
|
* Create a {@link V2RequestCredentialMessage} as beginning of protocol process.
|
|
87
87
|
* @returns Object containing offer message and associated credential record
|
|
88
88
|
*
|
|
89
89
|
*/
|
|
90
|
-
createRequest(agentContext: AgentContext, { credentialFormats, autoAcceptCredential, comment, connectionRecord }: CreateCredentialRequestOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2RequestCredentialMessage>>;
|
|
90
|
+
createRequest(agentContext: AgentContext, { credentialFormats, autoAcceptCredential, comment, goal, goalCode, connectionRecord, }: CreateCredentialRequestOptions<CFs>): Promise<CredentialProtocolMsgReturnType<V2RequestCredentialMessage>>;
|
|
91
91
|
/**
|
|
92
92
|
* Process a received {@link RequestCredentialMessage}. This will not accept the credential request
|
|
93
93
|
* or send a credential. It will only update the existing credential record with
|
|
@@ -99,7 +99,7 @@ export declare class V2CredentialProtocol<CFs extends CredentialFormatService[]
|
|
|
99
99
|
*
|
|
100
100
|
*/
|
|
101
101
|
processRequest(messageContext: InboundMessageContext<V2RequestCredentialMessage>): Promise<CredentialExchangeRecord>;
|
|
102
|
-
acceptRequest(agentContext: AgentContext, { credentialRecord, autoAcceptCredential, comment, credentialFormats }: AcceptCredentialRequestOptions<CFs>): Promise<{
|
|
102
|
+
acceptRequest(agentContext: AgentContext, { credentialRecord, autoAcceptCredential, comment, goal, goalCode, credentialFormats, }: AcceptCredentialRequestOptions<CFs>): Promise<{
|
|
103
103
|
credentialRecord: CredentialExchangeRecord;
|
|
104
104
|
message: V2IssueCredentialMessage;
|
|
105
105
|
}>;
|
|
@@ -53,7 +53,7 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
53
53
|
* @returns Object containing proposal message and associated credential record
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
|
-
async createProposal(agentContext, { connectionRecord, credentialFormats, comment, autoAcceptCredential }) {
|
|
56
|
+
async createProposal(agentContext, { connectionRecord, credentialFormats, comment, goal, goalCode, autoAcceptCredential, }) {
|
|
57
57
|
agentContext.config.logger.debug('Get the Format Service and Create Proposal Message');
|
|
58
58
|
const credentialRepository = agentContext.dependencyManager.resolve(repository_1.CredentialRepository);
|
|
59
59
|
const formatServices = this.getFormatServices(credentialFormats);
|
|
@@ -72,6 +72,8 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
72
72
|
credentialRecord,
|
|
73
73
|
formatServices,
|
|
74
74
|
comment,
|
|
75
|
+
goal,
|
|
76
|
+
goalCode,
|
|
75
77
|
});
|
|
76
78
|
agentContext.config.logger.debug('Save record and emit state change event');
|
|
77
79
|
await credentialRepository.save(agentContext, credentialRecord);
|
|
@@ -143,7 +145,7 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
143
145
|
return credentialRecord;
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
|
-
async acceptProposal(agentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment }) {
|
|
148
|
+
async acceptProposal(agentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }) {
|
|
147
149
|
// Assert
|
|
148
150
|
credentialRecord.assertProtocolVersion('v2');
|
|
149
151
|
credentialRecord.assertState(models_1.CredentialState.ProposalReceived);
|
|
@@ -168,6 +170,8 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
168
170
|
credentialRecord,
|
|
169
171
|
formatServices,
|
|
170
172
|
comment,
|
|
173
|
+
goal,
|
|
174
|
+
goalCode,
|
|
171
175
|
credentialFormats,
|
|
172
176
|
});
|
|
173
177
|
credentialRecord.autoAcceptCredential = autoAcceptCredential !== null && autoAcceptCredential !== void 0 ? autoAcceptCredential : credentialRecord.autoAcceptCredential;
|
|
@@ -182,7 +186,7 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
182
186
|
* @returns Credential exchange record associated with the credential offer
|
|
183
187
|
*
|
|
184
188
|
*/
|
|
185
|
-
async negotiateProposal(agentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment }) {
|
|
189
|
+
async negotiateProposal(agentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }) {
|
|
186
190
|
// Assert
|
|
187
191
|
credentialRecord.assertProtocolVersion('v2');
|
|
188
192
|
credentialRecord.assertState(models_1.CredentialState.ProposalReceived);
|
|
@@ -198,6 +202,8 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
198
202
|
credentialFormats,
|
|
199
203
|
credentialRecord,
|
|
200
204
|
comment,
|
|
205
|
+
goal,
|
|
206
|
+
goalCode,
|
|
201
207
|
});
|
|
202
208
|
credentialRecord.autoAcceptCredential = autoAcceptCredential !== null && autoAcceptCredential !== void 0 ? autoAcceptCredential : credentialRecord.autoAcceptCredential;
|
|
203
209
|
await this.updateState(agentContext, credentialRecord, models_1.CredentialState.OfferSent);
|
|
@@ -212,7 +218,7 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
212
218
|
* @returns Object containing offer message and associated credential record
|
|
213
219
|
*
|
|
214
220
|
*/
|
|
215
|
-
async createOffer(agentContext, { credentialFormats, autoAcceptCredential, comment, connectionRecord }) {
|
|
221
|
+
async createOffer(agentContext, { credentialFormats, autoAcceptCredential, comment, goal, goalCode, connectionRecord, }) {
|
|
216
222
|
const credentialRepository = agentContext.dependencyManager.resolve(repository_1.CredentialRepository);
|
|
217
223
|
const formatServices = this.getFormatServices(credentialFormats);
|
|
218
224
|
if (formatServices.length === 0) {
|
|
@@ -230,6 +236,8 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
230
236
|
credentialFormats,
|
|
231
237
|
credentialRecord,
|
|
232
238
|
comment,
|
|
239
|
+
goal,
|
|
240
|
+
goalCode,
|
|
233
241
|
});
|
|
234
242
|
agentContext.config.logger.debug(`Saving record and emitting state changed for credential exchange record ${credentialRecord.id}`);
|
|
235
243
|
await credentialRepository.save(agentContext, credentialRecord);
|
|
@@ -302,7 +310,7 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
302
310
|
return credentialRecord;
|
|
303
311
|
}
|
|
304
312
|
}
|
|
305
|
-
async acceptOffer(agentContext, { credentialRecord, autoAcceptCredential, comment, credentialFormats }) {
|
|
313
|
+
async acceptOffer(agentContext, { credentialRecord, autoAcceptCredential, comment, goal, goalCode, credentialFormats, }) {
|
|
306
314
|
const didCommMessageRepository = agentContext.dependencyManager.resolve(storage_1.DidCommMessageRepository);
|
|
307
315
|
// Assert
|
|
308
316
|
credentialRecord.assertProtocolVersion('v2');
|
|
@@ -327,6 +335,8 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
327
335
|
credentialRecord,
|
|
328
336
|
formatServices,
|
|
329
337
|
comment,
|
|
338
|
+
goal,
|
|
339
|
+
goalCode,
|
|
330
340
|
credentialFormats,
|
|
331
341
|
});
|
|
332
342
|
credentialRecord.autoAcceptCredential = autoAcceptCredential !== null && autoAcceptCredential !== void 0 ? autoAcceptCredential : credentialRecord.autoAcceptCredential;
|
|
@@ -341,7 +351,7 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
341
351
|
* @returns Object containing proposal message and associated credential record
|
|
342
352
|
*
|
|
343
353
|
*/
|
|
344
|
-
async negotiateOffer(agentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment }) {
|
|
354
|
+
async negotiateOffer(agentContext, { credentialRecord, credentialFormats, autoAcceptCredential, comment, goal, goalCode, }) {
|
|
345
355
|
// Assert
|
|
346
356
|
credentialRecord.assertProtocolVersion('v2');
|
|
347
357
|
credentialRecord.assertState(models_1.CredentialState.OfferReceived);
|
|
@@ -357,6 +367,8 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
357
367
|
credentialFormats,
|
|
358
368
|
credentialRecord,
|
|
359
369
|
comment,
|
|
370
|
+
goal,
|
|
371
|
+
goalCode,
|
|
360
372
|
});
|
|
361
373
|
credentialRecord.autoAcceptCredential = autoAcceptCredential !== null && autoAcceptCredential !== void 0 ? autoAcceptCredential : credentialRecord.autoAcceptCredential;
|
|
362
374
|
await this.updateState(agentContext, credentialRecord, models_1.CredentialState.ProposalSent);
|
|
@@ -367,7 +379,7 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
367
379
|
* @returns Object containing offer message and associated credential record
|
|
368
380
|
*
|
|
369
381
|
*/
|
|
370
|
-
async createRequest(agentContext, { credentialFormats, autoAcceptCredential, comment, connectionRecord }) {
|
|
382
|
+
async createRequest(agentContext, { credentialFormats, autoAcceptCredential, comment, goal, goalCode, connectionRecord, }) {
|
|
371
383
|
const credentialRepository = agentContext.dependencyManager.resolve(repository_1.CredentialRepository);
|
|
372
384
|
const formatServices = this.getFormatServices(credentialFormats);
|
|
373
385
|
if (formatServices.length === 0) {
|
|
@@ -385,6 +397,8 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
385
397
|
credentialFormats,
|
|
386
398
|
credentialRecord,
|
|
387
399
|
comment,
|
|
400
|
+
goal,
|
|
401
|
+
goalCode,
|
|
388
402
|
});
|
|
389
403
|
agentContext.config.logger.debug(`Saving record and emitting state changed for credential exchange record ${credentialRecord.id}`);
|
|
390
404
|
await credentialRepository.save(agentContext, credentialRecord);
|
|
@@ -469,7 +483,7 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
469
483
|
return credentialRecord;
|
|
470
484
|
}
|
|
471
485
|
}
|
|
472
|
-
async acceptRequest(agentContext, { credentialRecord, autoAcceptCredential, comment, credentialFormats }) {
|
|
486
|
+
async acceptRequest(agentContext, { credentialRecord, autoAcceptCredential, comment, goal, goalCode, credentialFormats, }) {
|
|
473
487
|
const didCommMessageRepository = agentContext.dependencyManager.resolve(storage_1.DidCommMessageRepository);
|
|
474
488
|
// Assert
|
|
475
489
|
credentialRecord.assertProtocolVersion('v2');
|
|
@@ -494,6 +508,8 @@ class V2CredentialProtocol extends BaseCredentialProtocol_1.BaseCredentialProtoc
|
|
|
494
508
|
credentialRecord,
|
|
495
509
|
formatServices,
|
|
496
510
|
comment,
|
|
511
|
+
goal,
|
|
512
|
+
goalCode,
|
|
497
513
|
credentialFormats,
|
|
498
514
|
});
|
|
499
515
|
credentialRecord.autoAcceptCredential = autoAcceptCredential !== null && autoAcceptCredential !== void 0 ? autoAcceptCredential : credentialRecord.autoAcceptCredential;
|