@sphereon/ssi-sdk.siopv2-oid4vp-rp-auth 0.34.1-fix.143 → 0.34.1-fix.145
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/dist/index.cjs +291 -301
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +699 -7
- package/dist/index.d.ts +699 -7
- package/dist/index.js +283 -294
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
- package/src/agent/SIOPv2RP.ts +2 -3
- package/src/functions.ts +0 -1
- package/src/index.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -18,6 +18,377 @@ import { VerifyCallback } from '@sphereon/wellknown-dids-client';
|
|
|
18
18
|
import { Resolvable } from 'did-resolver';
|
|
19
19
|
import { EventEmitter } from 'events';
|
|
20
20
|
|
|
21
|
+
var IDidAuthSiopOpAuthenticator = {
|
|
22
|
+
components: {
|
|
23
|
+
schemas: {
|
|
24
|
+
IGetSiopSessionArgs: {
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: {
|
|
27
|
+
sessionId: {
|
|
28
|
+
type: "string"
|
|
29
|
+
},
|
|
30
|
+
additionalProperties: false
|
|
31
|
+
},
|
|
32
|
+
required: [
|
|
33
|
+
"sessionId"
|
|
34
|
+
],
|
|
35
|
+
description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.getSessionForSiop } "
|
|
36
|
+
},
|
|
37
|
+
IRegisterSiopSessionArgs: {
|
|
38
|
+
type: "object",
|
|
39
|
+
properties: {
|
|
40
|
+
identifier: {
|
|
41
|
+
type: "object",
|
|
42
|
+
properties: {
|
|
43
|
+
did: {
|
|
44
|
+
type: "string"
|
|
45
|
+
},
|
|
46
|
+
alias: {
|
|
47
|
+
type: "string"
|
|
48
|
+
},
|
|
49
|
+
provider: {
|
|
50
|
+
type: "string"
|
|
51
|
+
},
|
|
52
|
+
controllerKeyId: {
|
|
53
|
+
type: "string"
|
|
54
|
+
},
|
|
55
|
+
keys: {
|
|
56
|
+
type: "array",
|
|
57
|
+
items: {
|
|
58
|
+
type: "object",
|
|
59
|
+
properties: {
|
|
60
|
+
additionalProperties: true
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
services: {
|
|
65
|
+
type: "array",
|
|
66
|
+
items: {
|
|
67
|
+
type: "object",
|
|
68
|
+
properties: {
|
|
69
|
+
additionalProperties: true
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
additionalProperties: false,
|
|
75
|
+
required: [
|
|
76
|
+
"did",
|
|
77
|
+
"provider",
|
|
78
|
+
"keys",
|
|
79
|
+
"services"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
sessionId: {
|
|
83
|
+
type: "string"
|
|
84
|
+
},
|
|
85
|
+
expiresIn: {
|
|
86
|
+
type: "number"
|
|
87
|
+
},
|
|
88
|
+
additionalProperties: false
|
|
89
|
+
},
|
|
90
|
+
required: [
|
|
91
|
+
"identifier"
|
|
92
|
+
],
|
|
93
|
+
description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.registerSessionForSiop } "
|
|
94
|
+
},
|
|
95
|
+
IRemoveSiopSessionArgs: {
|
|
96
|
+
type: "object",
|
|
97
|
+
properties: {
|
|
98
|
+
sessionId: {
|
|
99
|
+
type: "string"
|
|
100
|
+
},
|
|
101
|
+
additionalProperties: false
|
|
102
|
+
},
|
|
103
|
+
required: [
|
|
104
|
+
"sessionId"
|
|
105
|
+
],
|
|
106
|
+
description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.removeSessionForSiop } "
|
|
107
|
+
},
|
|
108
|
+
IAuthenticateWithSiopArgs: {
|
|
109
|
+
type: "object",
|
|
110
|
+
properties: {
|
|
111
|
+
sessionId: {
|
|
112
|
+
type: "string"
|
|
113
|
+
},
|
|
114
|
+
stateId: {
|
|
115
|
+
type: "string"
|
|
116
|
+
},
|
|
117
|
+
redirectUrl: {
|
|
118
|
+
type: "string"
|
|
119
|
+
},
|
|
120
|
+
additionalProperties: false
|
|
121
|
+
},
|
|
122
|
+
required: [
|
|
123
|
+
"sessionId",
|
|
124
|
+
"stateId",
|
|
125
|
+
"redirectUrl"
|
|
126
|
+
],
|
|
127
|
+
description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.authenticateWithSiop } "
|
|
128
|
+
},
|
|
129
|
+
IResponse: {
|
|
130
|
+
type: "object",
|
|
131
|
+
properties: {
|
|
132
|
+
status: {
|
|
133
|
+
type: "number"
|
|
134
|
+
},
|
|
135
|
+
additionalProperties: true
|
|
136
|
+
},
|
|
137
|
+
required: [
|
|
138
|
+
"status"
|
|
139
|
+
],
|
|
140
|
+
description: "Result of {@link DidAuthSiopOpAuthenticator.authenticateWithSiop & DidAuthSiopOpAuthenticator.sendSiopAuthenticationResponse } "
|
|
141
|
+
},
|
|
142
|
+
IGetSiopAuthenticationRequestFromRpArgs: {
|
|
143
|
+
type: "object",
|
|
144
|
+
properties: {
|
|
145
|
+
sessionId: {
|
|
146
|
+
type: "string"
|
|
147
|
+
},
|
|
148
|
+
stateId: {
|
|
149
|
+
type: "string"
|
|
150
|
+
},
|
|
151
|
+
redirectUrl: {
|
|
152
|
+
type: "string"
|
|
153
|
+
},
|
|
154
|
+
additionalProperties: false
|
|
155
|
+
},
|
|
156
|
+
required: [
|
|
157
|
+
"sessionId",
|
|
158
|
+
"stateId",
|
|
159
|
+
"redirectUrl"
|
|
160
|
+
],
|
|
161
|
+
description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.getSiopAuthenticationRequestFromRP } "
|
|
162
|
+
},
|
|
163
|
+
ParsedAuthenticationRequestURI: {
|
|
164
|
+
type: "object",
|
|
165
|
+
properties: {
|
|
166
|
+
jwt: {
|
|
167
|
+
type: "string"
|
|
168
|
+
},
|
|
169
|
+
requestPayload: {
|
|
170
|
+
type: "object",
|
|
171
|
+
properties: {
|
|
172
|
+
additionalProperties: true
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
registration: {
|
|
176
|
+
type: "object",
|
|
177
|
+
properties: {
|
|
178
|
+
additionalProperties: true
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
additionalProperties: false
|
|
182
|
+
},
|
|
183
|
+
required: [
|
|
184
|
+
"jwt",
|
|
185
|
+
"requestPayload",
|
|
186
|
+
"registration"
|
|
187
|
+
],
|
|
188
|
+
description: "Result of {@link DidAuthSiopOpAuthenticator.getSiopAuthenticationRequestFromRP } "
|
|
189
|
+
},
|
|
190
|
+
IGetSiopAuthenticationRequestDetailsArgs: {
|
|
191
|
+
type: "object",
|
|
192
|
+
properties: {
|
|
193
|
+
sessionId: {
|
|
194
|
+
type: "string"
|
|
195
|
+
},
|
|
196
|
+
verifiedAuthenticationRequest: {
|
|
197
|
+
type: "object",
|
|
198
|
+
properties: {
|
|
199
|
+
additionalProperties: true
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
credentialFilter: {
|
|
203
|
+
type: "object",
|
|
204
|
+
properties: {
|
|
205
|
+
additionalProperties: true
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
additionalProperties: false
|
|
209
|
+
},
|
|
210
|
+
required: [
|
|
211
|
+
"sessionId",
|
|
212
|
+
"verifiedAuthenticationRequest"
|
|
213
|
+
],
|
|
214
|
+
description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.getSiopAuthenticationRequestDetails } "
|
|
215
|
+
},
|
|
216
|
+
IAuthRequestDetails: {
|
|
217
|
+
type: "object",
|
|
218
|
+
properties: {
|
|
219
|
+
id: {
|
|
220
|
+
type: "string"
|
|
221
|
+
},
|
|
222
|
+
alsoKnownAs: {
|
|
223
|
+
type: "array",
|
|
224
|
+
items: {
|
|
225
|
+
type: "string"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
vpResponseOpts: {
|
|
229
|
+
type: "object",
|
|
230
|
+
properties: {
|
|
231
|
+
additionalProperties: true
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
additionalProperties: false
|
|
235
|
+
},
|
|
236
|
+
required: [
|
|
237
|
+
"id",
|
|
238
|
+
"vpResponseOpts"
|
|
239
|
+
],
|
|
240
|
+
description: "Result of {@link DidAuthSiopOpAuthenticator.getSiopAuthenticationRequestDetails } "
|
|
241
|
+
},
|
|
242
|
+
IVerifySiopAuthenticationRequestUriArgs: {
|
|
243
|
+
type: "object",
|
|
244
|
+
properties: {
|
|
245
|
+
sessionId: {
|
|
246
|
+
type: "string"
|
|
247
|
+
},
|
|
248
|
+
ParsedAuthenticationRequestURI: {
|
|
249
|
+
type: "object",
|
|
250
|
+
properties: {
|
|
251
|
+
additionalProperties: true
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
additionalProperties: false
|
|
255
|
+
},
|
|
256
|
+
required: [
|
|
257
|
+
"sessionId",
|
|
258
|
+
"ParsedAuthenticationRequestURI"
|
|
259
|
+
],
|
|
260
|
+
description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.verifySiopAuthenticationRequestURI } "
|
|
261
|
+
},
|
|
262
|
+
VerifiedAuthorizationRequest: {
|
|
263
|
+
type: "object",
|
|
264
|
+
properties: {
|
|
265
|
+
payload: {
|
|
266
|
+
type: "object",
|
|
267
|
+
properties: {
|
|
268
|
+
additionalProperties: true
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
presentationDefinitions: {
|
|
272
|
+
type: "object",
|
|
273
|
+
properties: {
|
|
274
|
+
additionalProperties: true
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
verifyOpts: {
|
|
278
|
+
type: "object",
|
|
279
|
+
properties: {
|
|
280
|
+
additionalProperties: true
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
additionalProperties: false
|
|
284
|
+
},
|
|
285
|
+
required: [
|
|
286
|
+
"payload",
|
|
287
|
+
"verifyOpts"
|
|
288
|
+
],
|
|
289
|
+
description: "Result of {@link DidAuthSiopOpAuthenticator.verifySiopAuthenticationRequestURI } "
|
|
290
|
+
},
|
|
291
|
+
ISendSiopAuthenticationResponseArgs: {
|
|
292
|
+
type: "object",
|
|
293
|
+
properties: {
|
|
294
|
+
sessionId: {
|
|
295
|
+
type: "string"
|
|
296
|
+
},
|
|
297
|
+
verifiedAuthenticationRequest: {
|
|
298
|
+
type: "object",
|
|
299
|
+
properties: {
|
|
300
|
+
additionalProperties: true
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
verifiablePresentationResponse: {
|
|
304
|
+
type: "object",
|
|
305
|
+
properties: {
|
|
306
|
+
additionalProperties: true
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
additionalProperties: false
|
|
310
|
+
},
|
|
311
|
+
required: [
|
|
312
|
+
"sessionId",
|
|
313
|
+
"verifiedAuthenticationRequest"
|
|
314
|
+
],
|
|
315
|
+
description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.sendSiopAuthenticationResponse } "
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
methods: {
|
|
319
|
+
getSessionForSiop: {
|
|
320
|
+
description: "Get SIOP session",
|
|
321
|
+
"arguments": {
|
|
322
|
+
$ref: "#/components/schemas/IGetSiopSessionArgs"
|
|
323
|
+
},
|
|
324
|
+
returnType: "object"
|
|
325
|
+
},
|
|
326
|
+
registerSessionForSiop: {
|
|
327
|
+
description: "Register SIOP session",
|
|
328
|
+
"arguments": {
|
|
329
|
+
$ref: "#/components/schemas/IRegisterSiopSessionArgs"
|
|
330
|
+
},
|
|
331
|
+
returnType: "object"
|
|
332
|
+
},
|
|
333
|
+
removeSessionForSiop: {
|
|
334
|
+
description: "Remove SIOP session",
|
|
335
|
+
"arguments": {
|
|
336
|
+
$ref: "#/components/schemas/IRemoveSiopSessionArgs"
|
|
337
|
+
},
|
|
338
|
+
returnType: "boolean"
|
|
339
|
+
},
|
|
340
|
+
authenticateWithSiop: {
|
|
341
|
+
description: "Authenticate using DID Auth SIOP",
|
|
342
|
+
"arguments": {
|
|
343
|
+
$ref: "#/components/schemas/IAuthenticateWithSiopArgs"
|
|
344
|
+
},
|
|
345
|
+
returnType: {
|
|
346
|
+
$ref: "#/components/schemas/Response"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
getSiopAuthenticationRequestFromRP: {
|
|
350
|
+
description: "Get authentication request from RP",
|
|
351
|
+
"arguments": {
|
|
352
|
+
$ref: "#/components/schemas/IGetSiopAuthenticationRequestFromRpArgs"
|
|
353
|
+
},
|
|
354
|
+
returnType: {
|
|
355
|
+
$ref: "#/components/schemas/ParsedAuthenticationRequestURI"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
getSiopAuthenticationRequestDetails: {
|
|
359
|
+
description: "Get authentication request details",
|
|
360
|
+
"arguments": {
|
|
361
|
+
$ref: "#/components/schemas/IGetSiopAuthenticationRequestDetailsArgs"
|
|
362
|
+
},
|
|
363
|
+
returnType: {
|
|
364
|
+
$ref: "#/components/schemas/IAuthRequestDetails"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
verifySiopAuthenticationRequestURI: {
|
|
368
|
+
description: "Verify authentication request URI",
|
|
369
|
+
"arguments": {
|
|
370
|
+
$ref: "#/components/schemas/IVerifySiopAuthenticationRequestUriArgs"
|
|
371
|
+
},
|
|
372
|
+
returnType: {
|
|
373
|
+
$ref: "#/components/schemas/VerifiedAuthorizationRequest"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
sendSiopAuthenticationResponse: {
|
|
377
|
+
description: "Send authentication response",
|
|
378
|
+
"arguments": {
|
|
379
|
+
$ref: "#/components/schemas/ISendSiopAuthenticationResponseArgs"
|
|
380
|
+
},
|
|
381
|
+
returnType: {
|
|
382
|
+
$ref: "#/components/schemas/IRequiredContext"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
var plugin_schema = {
|
|
389
|
+
IDidAuthSiopOpAuthenticator: IDidAuthSiopOpAuthenticator
|
|
390
|
+
};
|
|
391
|
+
|
|
21
392
|
declare enum VerifiedDataMode {
|
|
22
393
|
NONE = "none",
|
|
23
394
|
VERIFIED_PRESENTATION = "vp",
|
|
@@ -179,7 +550,333 @@ declare class SIOPv2RP implements IAgentPlugin {
|
|
|
179
550
|
private readonly opts;
|
|
180
551
|
private static readonly _DEFAULT_OPTS_KEY;
|
|
181
552
|
private readonly instances;
|
|
182
|
-
readonly schema:
|
|
553
|
+
readonly schema: {
|
|
554
|
+
components: {
|
|
555
|
+
schemas: {
|
|
556
|
+
IGetSiopSessionArgs: {
|
|
557
|
+
type: string;
|
|
558
|
+
properties: {
|
|
559
|
+
sessionId: {
|
|
560
|
+
type: string;
|
|
561
|
+
};
|
|
562
|
+
additionalProperties: boolean;
|
|
563
|
+
};
|
|
564
|
+
required: string[];
|
|
565
|
+
description: string;
|
|
566
|
+
};
|
|
567
|
+
IRegisterSiopSessionArgs: {
|
|
568
|
+
type: string;
|
|
569
|
+
properties: {
|
|
570
|
+
identifier: {
|
|
571
|
+
type: string;
|
|
572
|
+
properties: {
|
|
573
|
+
did: {
|
|
574
|
+
type: string;
|
|
575
|
+
};
|
|
576
|
+
alias: {
|
|
577
|
+
type: string;
|
|
578
|
+
};
|
|
579
|
+
provider: {
|
|
580
|
+
type: string;
|
|
581
|
+
};
|
|
582
|
+
controllerKeyId: {
|
|
583
|
+
type: string;
|
|
584
|
+
};
|
|
585
|
+
keys: {
|
|
586
|
+
type: string;
|
|
587
|
+
items: {
|
|
588
|
+
type: string;
|
|
589
|
+
properties: {
|
|
590
|
+
additionalProperties: boolean;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
services: {
|
|
595
|
+
type: string;
|
|
596
|
+
items: {
|
|
597
|
+
type: string;
|
|
598
|
+
properties: {
|
|
599
|
+
additionalProperties: boolean;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
additionalProperties: boolean;
|
|
605
|
+
required: string[];
|
|
606
|
+
};
|
|
607
|
+
sessionId: {
|
|
608
|
+
type: string;
|
|
609
|
+
};
|
|
610
|
+
expiresIn: {
|
|
611
|
+
type: string;
|
|
612
|
+
};
|
|
613
|
+
additionalProperties: boolean;
|
|
614
|
+
};
|
|
615
|
+
required: string[];
|
|
616
|
+
description: string;
|
|
617
|
+
};
|
|
618
|
+
IRemoveSiopSessionArgs: {
|
|
619
|
+
type: string;
|
|
620
|
+
properties: {
|
|
621
|
+
sessionId: {
|
|
622
|
+
type: string;
|
|
623
|
+
};
|
|
624
|
+
additionalProperties: boolean;
|
|
625
|
+
};
|
|
626
|
+
required: string[];
|
|
627
|
+
description: string;
|
|
628
|
+
};
|
|
629
|
+
IAuthenticateWithSiopArgs: {
|
|
630
|
+
type: string;
|
|
631
|
+
properties: {
|
|
632
|
+
sessionId: {
|
|
633
|
+
type: string;
|
|
634
|
+
};
|
|
635
|
+
stateId: {
|
|
636
|
+
type: string;
|
|
637
|
+
};
|
|
638
|
+
redirectUrl: {
|
|
639
|
+
type: string;
|
|
640
|
+
};
|
|
641
|
+
additionalProperties: boolean;
|
|
642
|
+
};
|
|
643
|
+
required: string[];
|
|
644
|
+
description: string;
|
|
645
|
+
};
|
|
646
|
+
IResponse: {
|
|
647
|
+
type: string;
|
|
648
|
+
properties: {
|
|
649
|
+
status: {
|
|
650
|
+
type: string;
|
|
651
|
+
};
|
|
652
|
+
additionalProperties: boolean;
|
|
653
|
+
};
|
|
654
|
+
required: string[];
|
|
655
|
+
description: string;
|
|
656
|
+
};
|
|
657
|
+
IGetSiopAuthenticationRequestFromRpArgs: {
|
|
658
|
+
type: string;
|
|
659
|
+
properties: {
|
|
660
|
+
sessionId: {
|
|
661
|
+
type: string;
|
|
662
|
+
};
|
|
663
|
+
stateId: {
|
|
664
|
+
type: string;
|
|
665
|
+
};
|
|
666
|
+
redirectUrl: {
|
|
667
|
+
type: string;
|
|
668
|
+
};
|
|
669
|
+
additionalProperties: boolean;
|
|
670
|
+
};
|
|
671
|
+
required: string[];
|
|
672
|
+
description: string;
|
|
673
|
+
};
|
|
674
|
+
ParsedAuthenticationRequestURI: {
|
|
675
|
+
type: string;
|
|
676
|
+
properties: {
|
|
677
|
+
jwt: {
|
|
678
|
+
type: string;
|
|
679
|
+
};
|
|
680
|
+
requestPayload: {
|
|
681
|
+
type: string;
|
|
682
|
+
properties: {
|
|
683
|
+
additionalProperties: boolean;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
registration: {
|
|
687
|
+
type: string;
|
|
688
|
+
properties: {
|
|
689
|
+
additionalProperties: boolean;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
additionalProperties: boolean;
|
|
693
|
+
};
|
|
694
|
+
required: string[];
|
|
695
|
+
description: string;
|
|
696
|
+
};
|
|
697
|
+
IGetSiopAuthenticationRequestDetailsArgs: {
|
|
698
|
+
type: string;
|
|
699
|
+
properties: {
|
|
700
|
+
sessionId: {
|
|
701
|
+
type: string;
|
|
702
|
+
};
|
|
703
|
+
verifiedAuthenticationRequest: {
|
|
704
|
+
type: string;
|
|
705
|
+
properties: {
|
|
706
|
+
additionalProperties: boolean;
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
credentialFilter: {
|
|
710
|
+
type: string;
|
|
711
|
+
properties: {
|
|
712
|
+
additionalProperties: boolean;
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
additionalProperties: boolean;
|
|
716
|
+
};
|
|
717
|
+
required: string[];
|
|
718
|
+
description: string;
|
|
719
|
+
};
|
|
720
|
+
IAuthRequestDetails: {
|
|
721
|
+
type: string;
|
|
722
|
+
properties: {
|
|
723
|
+
id: {
|
|
724
|
+
type: string;
|
|
725
|
+
};
|
|
726
|
+
alsoKnownAs: {
|
|
727
|
+
type: string;
|
|
728
|
+
items: {
|
|
729
|
+
type: string;
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
vpResponseOpts: {
|
|
733
|
+
type: string;
|
|
734
|
+
properties: {
|
|
735
|
+
additionalProperties: boolean;
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
additionalProperties: boolean;
|
|
739
|
+
};
|
|
740
|
+
required: string[];
|
|
741
|
+
description: string;
|
|
742
|
+
};
|
|
743
|
+
IVerifySiopAuthenticationRequestUriArgs: {
|
|
744
|
+
type: string;
|
|
745
|
+
properties: {
|
|
746
|
+
sessionId: {
|
|
747
|
+
type: string;
|
|
748
|
+
};
|
|
749
|
+
ParsedAuthenticationRequestURI: {
|
|
750
|
+
type: string;
|
|
751
|
+
properties: {
|
|
752
|
+
additionalProperties: boolean;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
additionalProperties: boolean;
|
|
756
|
+
};
|
|
757
|
+
required: string[];
|
|
758
|
+
description: string;
|
|
759
|
+
};
|
|
760
|
+
VerifiedAuthorizationRequest: {
|
|
761
|
+
type: string;
|
|
762
|
+
properties: {
|
|
763
|
+
payload: {
|
|
764
|
+
type: string;
|
|
765
|
+
properties: {
|
|
766
|
+
additionalProperties: boolean;
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
presentationDefinitions: {
|
|
770
|
+
type: string;
|
|
771
|
+
properties: {
|
|
772
|
+
additionalProperties: boolean;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
verifyOpts: {
|
|
776
|
+
type: string;
|
|
777
|
+
properties: {
|
|
778
|
+
additionalProperties: boolean;
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
additionalProperties: boolean;
|
|
782
|
+
};
|
|
783
|
+
required: string[];
|
|
784
|
+
description: string;
|
|
785
|
+
};
|
|
786
|
+
ISendSiopAuthenticationResponseArgs: {
|
|
787
|
+
type: string;
|
|
788
|
+
properties: {
|
|
789
|
+
sessionId: {
|
|
790
|
+
type: string;
|
|
791
|
+
};
|
|
792
|
+
verifiedAuthenticationRequest: {
|
|
793
|
+
type: string;
|
|
794
|
+
properties: {
|
|
795
|
+
additionalProperties: boolean;
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
verifiablePresentationResponse: {
|
|
799
|
+
type: string;
|
|
800
|
+
properties: {
|
|
801
|
+
additionalProperties: boolean;
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
additionalProperties: boolean;
|
|
805
|
+
};
|
|
806
|
+
required: string[];
|
|
807
|
+
description: string;
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
methods: {
|
|
811
|
+
getSessionForSiop: {
|
|
812
|
+
description: string;
|
|
813
|
+
arguments: {
|
|
814
|
+
$ref: string;
|
|
815
|
+
};
|
|
816
|
+
returnType: string;
|
|
817
|
+
};
|
|
818
|
+
registerSessionForSiop: {
|
|
819
|
+
description: string;
|
|
820
|
+
arguments: {
|
|
821
|
+
$ref: string;
|
|
822
|
+
};
|
|
823
|
+
returnType: string;
|
|
824
|
+
};
|
|
825
|
+
removeSessionForSiop: {
|
|
826
|
+
description: string;
|
|
827
|
+
arguments: {
|
|
828
|
+
$ref: string;
|
|
829
|
+
};
|
|
830
|
+
returnType: string;
|
|
831
|
+
};
|
|
832
|
+
authenticateWithSiop: {
|
|
833
|
+
description: string;
|
|
834
|
+
arguments: {
|
|
835
|
+
$ref: string;
|
|
836
|
+
};
|
|
837
|
+
returnType: {
|
|
838
|
+
$ref: string;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
getSiopAuthenticationRequestFromRP: {
|
|
842
|
+
description: string;
|
|
843
|
+
arguments: {
|
|
844
|
+
$ref: string;
|
|
845
|
+
};
|
|
846
|
+
returnType: {
|
|
847
|
+
$ref: string;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
getSiopAuthenticationRequestDetails: {
|
|
851
|
+
description: string;
|
|
852
|
+
arguments: {
|
|
853
|
+
$ref: string;
|
|
854
|
+
};
|
|
855
|
+
returnType: {
|
|
856
|
+
$ref: string;
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
verifySiopAuthenticationRequestURI: {
|
|
860
|
+
description: string;
|
|
861
|
+
arguments: {
|
|
862
|
+
$ref: string;
|
|
863
|
+
};
|
|
864
|
+
returnType: {
|
|
865
|
+
$ref: string;
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
sendSiopAuthenticationResponse: {
|
|
869
|
+
description: string;
|
|
870
|
+
arguments: {
|
|
871
|
+
$ref: string;
|
|
872
|
+
};
|
|
873
|
+
returnType: {
|
|
874
|
+
$ref: string;
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
};
|
|
183
880
|
readonly methods: ISIOPv2RP;
|
|
184
881
|
constructor(opts: ISiopv2RPOpts);
|
|
185
882
|
setDefaultOpts(rpDefaultOpts: IRPDefaultOpts, context: IRequiredContext): void;
|
|
@@ -202,9 +899,4 @@ declare class SIOPv2RP implements IAgentPlugin {
|
|
|
202
899
|
private getDefaultOptions;
|
|
203
900
|
}
|
|
204
901
|
|
|
205
|
-
|
|
206
|
-
* @public
|
|
207
|
-
*/
|
|
208
|
-
declare const schema: any;
|
|
209
|
-
|
|
210
|
-
export { type AuthorizationResponseStateWithVerifiedData, type CredentialOpts, type IAuthRequestDetails, type IAuthorizationRequestPayloads, type ICreateAuthRequestArgs, type IDefinitionPair, type IDeleteAuthStateArgs, type IGetAuthRequestStateArgs, type IGetAuthResponseStateArgs, type IGetRedirectUriArgs, type IPEXDefinitionPersistArgs, type IPEXInstanceOptions, type IPEXOptions, type IRPDefaultOpts, type IRPOptions, type IRequiredContext, type ISIOPIdentifierOptions, type ISIOPv2RP, type ISiopRPInstanceArgs, type ISiopv2RPOpts, type IUpdateRequestStateArgs, type IVerifyAuthResponseStateArgs, type ImportDefinitionsArgs, type PerDidResolver, SIOPv2RP, type VerificationPolicies, VerifiedDataMode, schema };
|
|
902
|
+
export { type AuthorizationResponseStateWithVerifiedData, type CredentialOpts, type IAuthRequestDetails, type IAuthorizationRequestPayloads, type ICreateAuthRequestArgs, type IDefinitionPair, type IDeleteAuthStateArgs, type IGetAuthRequestStateArgs, type IGetAuthResponseStateArgs, type IGetRedirectUriArgs, type IPEXDefinitionPersistArgs, type IPEXInstanceOptions, type IPEXOptions, type IRPDefaultOpts, type IRPOptions, type IRequiredContext, type ISIOPIdentifierOptions, type ISIOPv2RP, type ISiopRPInstanceArgs, type ISiopv2RPOpts, type IUpdateRequestStateArgs, type IVerifyAuthResponseStateArgs, type ImportDefinitionsArgs, type PerDidResolver, SIOPv2RP, type VerificationPolicies, VerifiedDataMode, plugin_schema as schema };
|