@sphereon/ssi-sdk.siopv2-oid4vp-rp-auth 0.34.1-feature.SSISDK.58.host.nonce.endpoint.145 → 0.34.1-feature.SSISDK.58.host.nonce.endpoint.194

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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { IPluginMethodMap, IAgentContext, IResolver, IDIDManager, IKeyManager, ICredentialIssuer, ICredentialVerifier, IAgentPlugin } from '@veramo/core';
2
- import { ResponseURIType, ClaimPayloadCommonOpts, AuthorizationRequestPayload, RequestObjectPayload, AuthorizationRequestState, AuthorizationResponseState, AuthorizationResponsePayload, VerifiedAuthorizationResponse, ResponseMode, SupportedVersion, IRPSessionManager, ClientMetadataOpts, VerifyJwtCallback, PresentationVerificationCallback, RP, URI, AuthorizationRequest } from '@sphereon/did-auth-siop';
1
+ import { IPluginMethodMap, IAgentContext, IResolver, IDIDManager, IKeyManager, ICredentialVerifier, IAgentPlugin } from '@veramo/core';
2
+ import { ResponseURIType, ClaimPayloadCommonOpts, CallbackOpts, AuthorizationRequestPayload, RequestObjectPayload, AuthorizationRequestState, AuthorizationResponseStateWithVerifiedData, AuthorizationResponsePayload, VerifiedAuthorizationResponse, ResponseMode, SupportedVersion, IRPSessionManager, ClientMetadataOpts, VerifyJwtCallback, PresentationVerificationCallback, RP, URI, AuthorizationRequest } from '@sphereon/did-auth-siop';
3
3
  import { CheckLinkedDomain } from '@sphereon/did-auth-siop-adapter';
4
4
  import { DIDDocument } from '@sphereon/did-uni-client';
5
5
  import { JwtIssuer } from '@sphereon/oid4vc-common';
@@ -9,15 +9,387 @@ import { IIdentifierResolution, ManagedIdentifierOptsOrResult, ExternalIdentifie
9
9
  import { IJwtService } from '@sphereon/ssi-sdk-ext.jwt-service';
10
10
  import { ICredentialValidation, SchemaValidation } from '@sphereon/ssi-sdk.credential-validation';
11
11
  import { ImDLMdoc } from '@sphereon/ssi-sdk.mdl-mdoc';
12
- import { IPDManager, VersionControlMode } from '@sphereon/ssi-sdk.pd-manager';
12
+ import { IPDManager, ImportDcqlQueryItem, VersionControlMode } from '@sphereon/ssi-sdk.pd-manager';
13
13
  import { IPresentationExchange } from '@sphereon/ssi-sdk.presentation-exchange';
14
14
  import { ISDJwtPlugin } from '@sphereon/ssi-sdk.sd-jwt';
15
15
  import { AuthorizationRequestStateStatus } from '@sphereon/ssi-sdk.siopv2-oid4vp-common';
16
- import { AdditionalClaims, DcqlQueryPayload, HasherSync } from '@sphereon/ssi-types';
16
+ import { HasherSync } from '@sphereon/ssi-types';
17
17
  import { VerifyCallback } from '@sphereon/wellknown-dids-client';
18
+ import { DcqlQuery } from 'dcql';
18
19
  import { Resolvable } from 'did-resolver';
19
20
  import { EventEmitter } from 'events';
20
21
 
22
+ var IDidAuthSiopOpAuthenticator = {
23
+ components: {
24
+ schemas: {
25
+ IGetSiopSessionArgs: {
26
+ type: "object",
27
+ properties: {
28
+ sessionId: {
29
+ type: "string"
30
+ },
31
+ additionalProperties: false
32
+ },
33
+ required: [
34
+ "sessionId"
35
+ ],
36
+ description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.getSessionForSiop } "
37
+ },
38
+ IRegisterSiopSessionArgs: {
39
+ type: "object",
40
+ properties: {
41
+ identifier: {
42
+ type: "object",
43
+ properties: {
44
+ did: {
45
+ type: "string"
46
+ },
47
+ alias: {
48
+ type: "string"
49
+ },
50
+ provider: {
51
+ type: "string"
52
+ },
53
+ controllerKeyId: {
54
+ type: "string"
55
+ },
56
+ keys: {
57
+ type: "array",
58
+ items: {
59
+ type: "object",
60
+ properties: {
61
+ additionalProperties: true
62
+ }
63
+ }
64
+ },
65
+ services: {
66
+ type: "array",
67
+ items: {
68
+ type: "object",
69
+ properties: {
70
+ additionalProperties: true
71
+ }
72
+ }
73
+ }
74
+ },
75
+ additionalProperties: false,
76
+ required: [
77
+ "did",
78
+ "provider",
79
+ "keys",
80
+ "services"
81
+ ]
82
+ },
83
+ sessionId: {
84
+ type: "string"
85
+ },
86
+ expiresIn: {
87
+ type: "number"
88
+ },
89
+ additionalProperties: false
90
+ },
91
+ required: [
92
+ "identifier"
93
+ ],
94
+ description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.registerSessionForSiop } "
95
+ },
96
+ IRemoveSiopSessionArgs: {
97
+ type: "object",
98
+ properties: {
99
+ sessionId: {
100
+ type: "string"
101
+ },
102
+ additionalProperties: false
103
+ },
104
+ required: [
105
+ "sessionId"
106
+ ],
107
+ description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.removeSessionForSiop } "
108
+ },
109
+ IAuthenticateWithSiopArgs: {
110
+ type: "object",
111
+ properties: {
112
+ sessionId: {
113
+ type: "string"
114
+ },
115
+ stateId: {
116
+ type: "string"
117
+ },
118
+ redirectUrl: {
119
+ type: "string"
120
+ },
121
+ additionalProperties: false
122
+ },
123
+ required: [
124
+ "sessionId",
125
+ "stateId",
126
+ "redirectUrl"
127
+ ],
128
+ description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.authenticateWithSiop } "
129
+ },
130
+ IResponse: {
131
+ type: "object",
132
+ properties: {
133
+ status: {
134
+ type: "number"
135
+ },
136
+ additionalProperties: true
137
+ },
138
+ required: [
139
+ "status"
140
+ ],
141
+ description: "Result of {@link DidAuthSiopOpAuthenticator.authenticateWithSiop & DidAuthSiopOpAuthenticator.sendSiopAuthenticationResponse } "
142
+ },
143
+ IGetSiopAuthenticationRequestFromRpArgs: {
144
+ type: "object",
145
+ properties: {
146
+ sessionId: {
147
+ type: "string"
148
+ },
149
+ stateId: {
150
+ type: "string"
151
+ },
152
+ redirectUrl: {
153
+ type: "string"
154
+ },
155
+ additionalProperties: false
156
+ },
157
+ required: [
158
+ "sessionId",
159
+ "stateId",
160
+ "redirectUrl"
161
+ ],
162
+ description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.getSiopAuthenticationRequestFromRP } "
163
+ },
164
+ ParsedAuthenticationRequestURI: {
165
+ type: "object",
166
+ properties: {
167
+ jwt: {
168
+ type: "string"
169
+ },
170
+ requestPayload: {
171
+ type: "object",
172
+ properties: {
173
+ additionalProperties: true
174
+ }
175
+ },
176
+ registration: {
177
+ type: "object",
178
+ properties: {
179
+ additionalProperties: true
180
+ }
181
+ },
182
+ additionalProperties: false
183
+ },
184
+ required: [
185
+ "jwt",
186
+ "requestPayload",
187
+ "registration"
188
+ ],
189
+ description: "Result of {@link DidAuthSiopOpAuthenticator.getSiopAuthenticationRequestFromRP } "
190
+ },
191
+ IGetSiopAuthenticationRequestDetailsArgs: {
192
+ type: "object",
193
+ properties: {
194
+ sessionId: {
195
+ type: "string"
196
+ },
197
+ verifiedAuthenticationRequest: {
198
+ type: "object",
199
+ properties: {
200
+ additionalProperties: true
201
+ }
202
+ },
203
+ credentialFilter: {
204
+ type: "object",
205
+ properties: {
206
+ additionalProperties: true
207
+ }
208
+ },
209
+ additionalProperties: false
210
+ },
211
+ required: [
212
+ "sessionId",
213
+ "verifiedAuthenticationRequest"
214
+ ],
215
+ description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.getSiopAuthenticationRequestDetails } "
216
+ },
217
+ IAuthRequestDetails: {
218
+ type: "object",
219
+ properties: {
220
+ id: {
221
+ type: "string"
222
+ },
223
+ alsoKnownAs: {
224
+ type: "array",
225
+ items: {
226
+ type: "string"
227
+ }
228
+ },
229
+ vpResponseOpts: {
230
+ type: "object",
231
+ properties: {
232
+ additionalProperties: true
233
+ }
234
+ },
235
+ additionalProperties: false
236
+ },
237
+ required: [
238
+ "id",
239
+ "vpResponseOpts"
240
+ ],
241
+ description: "Result of {@link DidAuthSiopOpAuthenticator.getSiopAuthenticationRequestDetails } "
242
+ },
243
+ IVerifySiopAuthenticationRequestUriArgs: {
244
+ type: "object",
245
+ properties: {
246
+ sessionId: {
247
+ type: "string"
248
+ },
249
+ ParsedAuthenticationRequestURI: {
250
+ type: "object",
251
+ properties: {
252
+ additionalProperties: true
253
+ }
254
+ },
255
+ additionalProperties: false
256
+ },
257
+ required: [
258
+ "sessionId",
259
+ "ParsedAuthenticationRequestURI"
260
+ ],
261
+ description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.verifySiopAuthenticationRequestURI } "
262
+ },
263
+ VerifiedAuthorizationRequest: {
264
+ type: "object",
265
+ properties: {
266
+ payload: {
267
+ type: "object",
268
+ properties: {
269
+ additionalProperties: true
270
+ }
271
+ },
272
+ presentationDefinitions: {
273
+ type: "object",
274
+ properties: {
275
+ additionalProperties: true
276
+ }
277
+ },
278
+ verifyOpts: {
279
+ type: "object",
280
+ properties: {
281
+ additionalProperties: true
282
+ }
283
+ },
284
+ additionalProperties: false
285
+ },
286
+ required: [
287
+ "payload",
288
+ "verifyOpts"
289
+ ],
290
+ description: "Result of {@link DidAuthSiopOpAuthenticator.verifySiopAuthenticationRequestURI } "
291
+ },
292
+ ISendSiopAuthenticationResponseArgs: {
293
+ type: "object",
294
+ properties: {
295
+ sessionId: {
296
+ type: "string"
297
+ },
298
+ verifiedAuthenticationRequest: {
299
+ type: "object",
300
+ properties: {
301
+ additionalProperties: true
302
+ }
303
+ },
304
+ verifiablePresentationResponse: {
305
+ type: "object",
306
+ properties: {
307
+ additionalProperties: true
308
+ }
309
+ },
310
+ additionalProperties: false
311
+ },
312
+ required: [
313
+ "sessionId",
314
+ "verifiedAuthenticationRequest"
315
+ ],
316
+ description: "Arguments needed for {@link DidAuthSiopOpAuthenticator.sendSiopAuthenticationResponse } "
317
+ }
318
+ },
319
+ methods: {
320
+ getSessionForSiop: {
321
+ description: "Get SIOP session",
322
+ "arguments": {
323
+ $ref: "#/components/schemas/IGetSiopSessionArgs"
324
+ },
325
+ returnType: "object"
326
+ },
327
+ registerSessionForSiop: {
328
+ description: "Register SIOP session",
329
+ "arguments": {
330
+ $ref: "#/components/schemas/IRegisterSiopSessionArgs"
331
+ },
332
+ returnType: "object"
333
+ },
334
+ removeSessionForSiop: {
335
+ description: "Remove SIOP session",
336
+ "arguments": {
337
+ $ref: "#/components/schemas/IRemoveSiopSessionArgs"
338
+ },
339
+ returnType: "boolean"
340
+ },
341
+ authenticateWithSiop: {
342
+ description: "Authenticate using DID Auth SIOP",
343
+ "arguments": {
344
+ $ref: "#/components/schemas/IAuthenticateWithSiopArgs"
345
+ },
346
+ returnType: {
347
+ $ref: "#/components/schemas/Response"
348
+ }
349
+ },
350
+ getSiopAuthenticationRequestFromRP: {
351
+ description: "Get authentication request from RP",
352
+ "arguments": {
353
+ $ref: "#/components/schemas/IGetSiopAuthenticationRequestFromRpArgs"
354
+ },
355
+ returnType: {
356
+ $ref: "#/components/schemas/ParsedAuthenticationRequestURI"
357
+ }
358
+ },
359
+ getSiopAuthenticationRequestDetails: {
360
+ description: "Get authentication request details",
361
+ "arguments": {
362
+ $ref: "#/components/schemas/IGetSiopAuthenticationRequestDetailsArgs"
363
+ },
364
+ returnType: {
365
+ $ref: "#/components/schemas/IAuthRequestDetails"
366
+ }
367
+ },
368
+ verifySiopAuthenticationRequestURI: {
369
+ description: "Verify authentication request URI",
370
+ "arguments": {
371
+ $ref: "#/components/schemas/IVerifySiopAuthenticationRequestUriArgs"
372
+ },
373
+ returnType: {
374
+ $ref: "#/components/schemas/VerifiedAuthorizationRequest"
375
+ }
376
+ },
377
+ sendSiopAuthenticationResponse: {
378
+ description: "Send authentication response",
379
+ "arguments": {
380
+ $ref: "#/components/schemas/ISendSiopAuthenticationResponseArgs"
381
+ },
382
+ returnType: {
383
+ $ref: "#/components/schemas/IRequiredContext"
384
+ }
385
+ }
386
+ }
387
+ }
388
+ };
389
+ var plugin_schema = {
390
+ IDidAuthSiopOpAuthenticator: IDidAuthSiopOpAuthenticator
391
+ };
392
+
21
393
  declare enum VerifiedDataMode {
22
394
  NONE = "none",
23
395
  VERIFIED_PRESENTATION = "vp",
@@ -41,8 +413,9 @@ interface ISiopv2RPOpts {
41
413
  interface IRPDefaultOpts extends IRPOptions {
42
414
  }
43
415
  interface ICreateAuthRequestArgs {
44
- definitionId: string;
416
+ queryId: string;
45
417
  correlationId: string;
418
+ useQueryIdInstance?: boolean;
46
419
  responseURIType: ResponseURIType;
47
420
  responseURI: string;
48
421
  responseRedirectURI?: string;
@@ -51,49 +424,46 @@ interface ICreateAuthRequestArgs {
51
424
  nonce?: string;
52
425
  state?: string;
53
426
  claims?: ClaimPayloadCommonOpts;
427
+ callback?: CallbackOpts;
54
428
  }
55
429
  interface IGetAuthRequestStateArgs {
56
430
  correlationId: string;
57
- definitionId: string;
431
+ queryId?: string;
58
432
  errorOnNotFound?: boolean;
59
433
  }
60
434
  interface IGetAuthResponseStateArgs {
61
435
  correlationId: string;
62
- definitionId: string;
436
+ queryId?: string;
63
437
  errorOnNotFound?: boolean;
64
438
  progressRequestStateTo?: AuthorizationRequestStateStatus;
65
439
  includeVerifiedData?: VerifiedDataMode;
66
440
  }
67
441
  interface IUpdateRequestStateArgs {
68
- definitionId: string;
442
+ queryId: string;
69
443
  correlationId: string;
70
444
  state: AuthorizationRequestStateStatus;
71
445
  error?: string;
72
446
  }
73
447
  interface IDeleteAuthStateArgs {
74
448
  correlationId: string;
75
- definitionId: string;
449
+ queryId?: string;
76
450
  }
77
451
  interface IVerifyAuthResponseStateArgs {
78
452
  authorizationResponse: string | AuthorizationResponsePayload;
79
- definitionId?: string;
453
+ queryId?: string;
80
454
  correlationId: string;
81
455
  audience?: string;
82
- dcqlQueryPayload?: DcqlQueryPayload;
83
- }
84
- interface IDefinitionPair {
85
- definitionPayload?: IPresentationDefinition;
86
- dcqlPayload?: DcqlQueryPayload;
456
+ dcqlQuery?: DcqlQuery;
87
457
  }
88
458
  interface ImportDefinitionsArgs {
89
- definitions: Array<IDefinitionPair>;
459
+ importItems: Array<ImportDcqlQueryItem>;
90
460
  tenantId?: string;
91
461
  version?: string;
92
462
  versionControlMode?: VersionControlMode;
93
463
  }
94
464
  interface IGetRedirectUriArgs {
95
465
  correlationId: string;
96
- definitionId?: string;
466
+ queryId?: string;
97
467
  state?: string;
98
468
  }
99
469
  interface IAuthorizationRequestPayloads {
@@ -106,7 +476,7 @@ interface IPEXDefinitionPersistArgs extends IPEXInstanceOptions {
106
476
  ttl?: number;
107
477
  }
108
478
  interface ISiopRPInstanceArgs {
109
- definitionId?: string;
479
+ queryId?: string;
110
480
  responseRedirectURI?: string;
111
481
  }
112
482
  interface IPEXInstanceOptions extends IPEXOptions {
@@ -127,7 +497,7 @@ interface IRPOptions {
127
497
  }
128
498
  interface IPEXOptions {
129
499
  presentationVerifyCallback?: PresentationVerificationCallback;
130
- definitionId: string;
500
+ queryId: string;
131
501
  version?: string;
132
502
  tenantId?: string;
133
503
  }
@@ -152,10 +522,7 @@ interface ISIOPIdentifierOptions extends Omit<IDIDOptions, 'idOpts'> {
152
522
  type CredentialOpts = {
153
523
  hasher?: HasherSync;
154
524
  };
155
- interface AuthorizationResponseStateWithVerifiedData extends AuthorizationResponseState {
156
- verifiedData?: AdditionalClaims;
157
- }
158
- type IRequiredContext = IAgentContext<IResolver & IDIDManager & IKeyManager & IIdentifierResolution & ICredentialIssuer & ICredentialValidation & ICredentialVerifier & IPresentationExchange & IPDManager & ISDJwtPlugin & IJwtService & ImDLMdoc>;
525
+ type IRequiredContext = IAgentContext<IResolver & IDIDManager & IKeyManager & IIdentifierResolution & ICredentialValidation & ICredentialVerifier & IPresentationExchange & IPDManager & ISDJwtPlugin & IJwtService & ImDLMdoc>;
159
526
 
160
527
  declare class RPInstance {
161
528
  private _rp;
@@ -171,15 +538,341 @@ declare class RPInstance {
171
538
  hasDefinition(): boolean;
172
539
  get definitionId(): string | undefined;
173
540
  getPresentationDefinition(context: IRequiredContext): Promise<IPresentationDefinition | undefined>;
174
- createAuthorizationRequestURI(createArgs: Omit<ICreateAuthRequestArgs, 'definitionId'>, context: IRequiredContext): Promise<URI>;
175
- createAuthorizationRequest(createArgs: Omit<ICreateAuthRequestArgs, 'definitionId'>, context: IRequiredContext): Promise<AuthorizationRequest>;
541
+ createAuthorizationRequestURI(createArgs: ICreateAuthRequestArgs, context: IRequiredContext): Promise<URI>;
542
+ createAuthorizationRequest(createArgs: Omit<ICreateAuthRequestArgs, 'queryId'>, context: IRequiredContext): Promise<AuthorizationRequest>;
176
543
  }
177
544
 
178
545
  declare class SIOPv2RP implements IAgentPlugin {
179
546
  private readonly opts;
180
547
  private static readonly _DEFAULT_OPTS_KEY;
181
548
  private readonly instances;
182
- readonly schema: any;
549
+ readonly schema: {
550
+ components: {
551
+ schemas: {
552
+ IGetSiopSessionArgs: {
553
+ type: string;
554
+ properties: {
555
+ sessionId: {
556
+ type: string;
557
+ };
558
+ additionalProperties: boolean;
559
+ };
560
+ required: string[];
561
+ description: string;
562
+ };
563
+ IRegisterSiopSessionArgs: {
564
+ type: string;
565
+ properties: {
566
+ identifier: {
567
+ type: string;
568
+ properties: {
569
+ did: {
570
+ type: string;
571
+ };
572
+ alias: {
573
+ type: string;
574
+ };
575
+ provider: {
576
+ type: string;
577
+ };
578
+ controllerKeyId: {
579
+ type: string;
580
+ };
581
+ keys: {
582
+ type: string;
583
+ items: {
584
+ type: string;
585
+ properties: {
586
+ additionalProperties: boolean;
587
+ };
588
+ };
589
+ };
590
+ services: {
591
+ type: string;
592
+ items: {
593
+ type: string;
594
+ properties: {
595
+ additionalProperties: boolean;
596
+ };
597
+ };
598
+ };
599
+ };
600
+ additionalProperties: boolean;
601
+ required: string[];
602
+ };
603
+ sessionId: {
604
+ type: string;
605
+ };
606
+ expiresIn: {
607
+ type: string;
608
+ };
609
+ additionalProperties: boolean;
610
+ };
611
+ required: string[];
612
+ description: string;
613
+ };
614
+ IRemoveSiopSessionArgs: {
615
+ type: string;
616
+ properties: {
617
+ sessionId: {
618
+ type: string;
619
+ };
620
+ additionalProperties: boolean;
621
+ };
622
+ required: string[];
623
+ description: string;
624
+ };
625
+ IAuthenticateWithSiopArgs: {
626
+ type: string;
627
+ properties: {
628
+ sessionId: {
629
+ type: string;
630
+ };
631
+ stateId: {
632
+ type: string;
633
+ };
634
+ redirectUrl: {
635
+ type: string;
636
+ };
637
+ additionalProperties: boolean;
638
+ };
639
+ required: string[];
640
+ description: string;
641
+ };
642
+ IResponse: {
643
+ type: string;
644
+ properties: {
645
+ status: {
646
+ type: string;
647
+ };
648
+ additionalProperties: boolean;
649
+ };
650
+ required: string[];
651
+ description: string;
652
+ };
653
+ IGetSiopAuthenticationRequestFromRpArgs: {
654
+ type: string;
655
+ properties: {
656
+ sessionId: {
657
+ type: string;
658
+ };
659
+ stateId: {
660
+ type: string;
661
+ };
662
+ redirectUrl: {
663
+ type: string;
664
+ };
665
+ additionalProperties: boolean;
666
+ };
667
+ required: string[];
668
+ description: string;
669
+ };
670
+ ParsedAuthenticationRequestURI: {
671
+ type: string;
672
+ properties: {
673
+ jwt: {
674
+ type: string;
675
+ };
676
+ requestPayload: {
677
+ type: string;
678
+ properties: {
679
+ additionalProperties: boolean;
680
+ };
681
+ };
682
+ registration: {
683
+ type: string;
684
+ properties: {
685
+ additionalProperties: boolean;
686
+ };
687
+ };
688
+ additionalProperties: boolean;
689
+ };
690
+ required: string[];
691
+ description: string;
692
+ };
693
+ IGetSiopAuthenticationRequestDetailsArgs: {
694
+ type: string;
695
+ properties: {
696
+ sessionId: {
697
+ type: string;
698
+ };
699
+ verifiedAuthenticationRequest: {
700
+ type: string;
701
+ properties: {
702
+ additionalProperties: boolean;
703
+ };
704
+ };
705
+ credentialFilter: {
706
+ type: string;
707
+ properties: {
708
+ additionalProperties: boolean;
709
+ };
710
+ };
711
+ additionalProperties: boolean;
712
+ };
713
+ required: string[];
714
+ description: string;
715
+ };
716
+ IAuthRequestDetails: {
717
+ type: string;
718
+ properties: {
719
+ id: {
720
+ type: string;
721
+ };
722
+ alsoKnownAs: {
723
+ type: string;
724
+ items: {
725
+ type: string;
726
+ };
727
+ };
728
+ vpResponseOpts: {
729
+ type: string;
730
+ properties: {
731
+ additionalProperties: boolean;
732
+ };
733
+ };
734
+ additionalProperties: boolean;
735
+ };
736
+ required: string[];
737
+ description: string;
738
+ };
739
+ IVerifySiopAuthenticationRequestUriArgs: {
740
+ type: string;
741
+ properties: {
742
+ sessionId: {
743
+ type: string;
744
+ };
745
+ ParsedAuthenticationRequestURI: {
746
+ type: string;
747
+ properties: {
748
+ additionalProperties: boolean;
749
+ };
750
+ };
751
+ additionalProperties: boolean;
752
+ };
753
+ required: string[];
754
+ description: string;
755
+ };
756
+ VerifiedAuthorizationRequest: {
757
+ type: string;
758
+ properties: {
759
+ payload: {
760
+ type: string;
761
+ properties: {
762
+ additionalProperties: boolean;
763
+ };
764
+ };
765
+ presentationDefinitions: {
766
+ type: string;
767
+ properties: {
768
+ additionalProperties: boolean;
769
+ };
770
+ };
771
+ verifyOpts: {
772
+ type: string;
773
+ properties: {
774
+ additionalProperties: boolean;
775
+ };
776
+ };
777
+ additionalProperties: boolean;
778
+ };
779
+ required: string[];
780
+ description: string;
781
+ };
782
+ ISendSiopAuthenticationResponseArgs: {
783
+ type: string;
784
+ properties: {
785
+ sessionId: {
786
+ type: string;
787
+ };
788
+ verifiedAuthenticationRequest: {
789
+ type: string;
790
+ properties: {
791
+ additionalProperties: boolean;
792
+ };
793
+ };
794
+ verifiablePresentationResponse: {
795
+ type: string;
796
+ properties: {
797
+ additionalProperties: boolean;
798
+ };
799
+ };
800
+ additionalProperties: boolean;
801
+ };
802
+ required: string[];
803
+ description: string;
804
+ };
805
+ };
806
+ methods: {
807
+ getSessionForSiop: {
808
+ description: string;
809
+ arguments: {
810
+ $ref: string;
811
+ };
812
+ returnType: string;
813
+ };
814
+ registerSessionForSiop: {
815
+ description: string;
816
+ arguments: {
817
+ $ref: string;
818
+ };
819
+ returnType: string;
820
+ };
821
+ removeSessionForSiop: {
822
+ description: string;
823
+ arguments: {
824
+ $ref: string;
825
+ };
826
+ returnType: string;
827
+ };
828
+ authenticateWithSiop: {
829
+ description: string;
830
+ arguments: {
831
+ $ref: string;
832
+ };
833
+ returnType: {
834
+ $ref: string;
835
+ };
836
+ };
837
+ getSiopAuthenticationRequestFromRP: {
838
+ description: string;
839
+ arguments: {
840
+ $ref: string;
841
+ };
842
+ returnType: {
843
+ $ref: string;
844
+ };
845
+ };
846
+ getSiopAuthenticationRequestDetails: {
847
+ description: string;
848
+ arguments: {
849
+ $ref: string;
850
+ };
851
+ returnType: {
852
+ $ref: string;
853
+ };
854
+ };
855
+ verifySiopAuthenticationRequestURI: {
856
+ description: string;
857
+ arguments: {
858
+ $ref: string;
859
+ };
860
+ returnType: {
861
+ $ref: string;
862
+ };
863
+ };
864
+ sendSiopAuthenticationResponse: {
865
+ description: string;
866
+ arguments: {
867
+ $ref: string;
868
+ };
869
+ returnType: {
870
+ $ref: string;
871
+ };
872
+ };
873
+ };
874
+ };
875
+ };
183
876
  readonly methods: ISIOPv2RP;
184
877
  constructor(opts: ISiopv2RPOpts);
185
878
  setDefaultOpts(rpDefaultOpts: IRPDefaultOpts, context: IRequiredContext): void;
@@ -193,18 +886,13 @@ declare class SIOPv2RP implements IAgentPlugin {
193
886
  private siopVerifyAuthResponse;
194
887
  private siopImportDefinitions;
195
888
  private siopGetRedirectURI;
196
- getRPInstance({ definitionId, responseRedirectURI }: ISiopRPInstanceArgs, context: IRequiredContext): Promise<RPInstance>;
889
+ getRPInstance({ queryId, responseRedirectURI }: ISiopRPInstanceArgs, context: IRequiredContext): Promise<RPInstance>;
197
890
  getRPOptions(context: IRequiredContext, opts: {
198
- definitionId?: string;
891
+ queryId?: string;
199
892
  responseRedirectURI?: string;
200
893
  }): Promise<IRPOptions>;
201
894
  getInstanceOpts(definitionId?: string): IPEXInstanceOptions | undefined;
202
895
  private getDefaultOptions;
203
896
  }
204
897
 
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 };
898
+ export { type CredentialOpts, type IAuthRequestDetails, type IAuthorizationRequestPayloads, type ICreateAuthRequestArgs, 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 };