@triveria/wallet 0.0.27 → 0.0.29
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/api.d.ts +461 -13
- package/api.js +346 -1
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface AuthOffer {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AuthOffer
|
|
32
32
|
*/
|
|
33
|
-
'
|
|
33
|
+
'issuerUrl': string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -354,6 +354,25 @@ export interface CredentialType {
|
|
|
354
354
|
*/
|
|
355
355
|
'type': Array<string>;
|
|
356
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @export
|
|
360
|
+
* @interface CredentialVerifierDefinition
|
|
361
|
+
*/
|
|
362
|
+
export interface CredentialVerifierDefinition {
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @type {string}
|
|
366
|
+
* @memberof CredentialVerifierDefinition
|
|
367
|
+
*/
|
|
368
|
+
'scope': string;
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @type {PresentationDefinition}
|
|
372
|
+
* @memberof CredentialVerifierDefinition
|
|
373
|
+
*/
|
|
374
|
+
'presentationDefinition': PresentationDefinition;
|
|
375
|
+
}
|
|
357
376
|
/**
|
|
358
377
|
* The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
|
|
359
378
|
* @export
|
|
@@ -473,7 +492,7 @@ export interface HolderAuthOfferCreationReq {
|
|
|
473
492
|
* @type {string}
|
|
474
493
|
* @memberof HolderAuthOfferCreationReq
|
|
475
494
|
*/
|
|
476
|
-
'
|
|
495
|
+
'issuerUrl': string;
|
|
477
496
|
/**
|
|
478
497
|
*
|
|
479
498
|
* @type {Array<string>}
|
|
@@ -493,6 +512,38 @@ export interface HolderAuthOfferCreationReq {
|
|
|
493
512
|
*/
|
|
494
513
|
'deferred': boolean;
|
|
495
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @export
|
|
518
|
+
* @interface IdTokenRequest
|
|
519
|
+
*/
|
|
520
|
+
export interface IdTokenRequest {
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @type {string}
|
|
524
|
+
* @memberof IdTokenRequest
|
|
525
|
+
*/
|
|
526
|
+
'requestUrl': string;
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @type {string}
|
|
530
|
+
* @memberof IdTokenRequest
|
|
531
|
+
*/
|
|
532
|
+
'id': string;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @export
|
|
537
|
+
* @interface IdTokenSendReq
|
|
538
|
+
*/
|
|
539
|
+
export interface IdTokenSendReq {
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof IdTokenSendReq
|
|
544
|
+
*/
|
|
545
|
+
'requestUrl': string;
|
|
546
|
+
}
|
|
496
547
|
/**
|
|
497
548
|
* Request for authorization flow credential issuance process start. Consists of offered credential\'s types and credential offer endpoint (most commonly only schema)
|
|
498
549
|
* @export
|
|
@@ -504,41 +555,47 @@ export interface InitAuthOffer {
|
|
|
504
555
|
* @type {Array<string>}
|
|
505
556
|
* @memberof InitAuthOffer
|
|
506
557
|
*/
|
|
507
|
-
'
|
|
558
|
+
'credentialTypes': Array<string>;
|
|
508
559
|
/**
|
|
509
560
|
*
|
|
510
561
|
* @type {string}
|
|
511
562
|
* @memberof InitAuthOffer
|
|
512
563
|
*/
|
|
513
|
-
'
|
|
564
|
+
'offerEndpoint'?: string;
|
|
514
565
|
}
|
|
515
566
|
/**
|
|
516
|
-
* Request for pre-authorized issuance process start. Consists of client id,
|
|
567
|
+
* Request for pre-authorized issuance process start. Consists of client id or id token request id, credential offer endpoint(most commonly only schema) and id\'s of credentials to be issued to client. Either clientId or idTokenRequestId MUST be present in the request.
|
|
517
568
|
* @export
|
|
518
569
|
* @interface InitPreAuthOffer
|
|
519
570
|
*/
|
|
520
571
|
export interface InitPreAuthOffer {
|
|
521
572
|
/**
|
|
522
|
-
*
|
|
573
|
+
* DID of holder for which the offer is created.
|
|
523
574
|
* @type {string}
|
|
524
575
|
* @memberof InitPreAuthOffer
|
|
525
576
|
*/
|
|
526
|
-
'
|
|
577
|
+
'clientId'?: string;
|
|
578
|
+
/**
|
|
579
|
+
* ID of ID token request issued to the holder.
|
|
580
|
+
* @type {string}
|
|
581
|
+
* @memberof InitPreAuthOffer
|
|
582
|
+
*/
|
|
583
|
+
'idTokenRequestId'?: string;
|
|
527
584
|
/**
|
|
528
585
|
*
|
|
529
586
|
* @type {Array<string>}
|
|
530
587
|
* @memberof InitPreAuthOffer
|
|
531
588
|
*/
|
|
532
|
-
'
|
|
589
|
+
'credentialTypes': Array<string>;
|
|
533
590
|
/**
|
|
534
591
|
*
|
|
535
592
|
* @type {string}
|
|
536
593
|
* @memberof InitPreAuthOffer
|
|
537
594
|
*/
|
|
538
|
-
'
|
|
595
|
+
'offerEndpoint'?: string;
|
|
539
596
|
}
|
|
540
597
|
/**
|
|
541
|
-
* Request for addition of already created VC to issuance queue for a specified
|
|
598
|
+
* Request for addition of already created VC to issuance queue for a client specified either by client_id or idTokenRequestId. Either clientId or idTokenRequestId MUST be present.
|
|
542
599
|
* @export
|
|
543
600
|
* @interface IssuanceQueueCredAdd
|
|
544
601
|
*/
|
|
@@ -548,7 +605,13 @@ export interface IssuanceQueueCredAdd {
|
|
|
548
605
|
* @type {string}
|
|
549
606
|
* @memberof IssuanceQueueCredAdd
|
|
550
607
|
*/
|
|
551
|
-
'
|
|
608
|
+
'clientId'?: string;
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @type {string}
|
|
612
|
+
* @memberof IssuanceQueueCredAdd
|
|
613
|
+
*/
|
|
614
|
+
'idTokenRequestId'?: string;
|
|
552
615
|
}
|
|
553
616
|
/**
|
|
554
617
|
* Common error message
|
|
@@ -574,7 +637,7 @@ export interface PreauthOffer {
|
|
|
574
637
|
* @type {string}
|
|
575
638
|
* @memberof PreauthOffer
|
|
576
639
|
*/
|
|
577
|
-
'
|
|
640
|
+
'preauthCode': string;
|
|
578
641
|
/**
|
|
579
642
|
*
|
|
580
643
|
* @type {string}
|
|
@@ -586,7 +649,7 @@ export interface PreauthOffer {
|
|
|
586
649
|
* @type {string}
|
|
587
650
|
* @memberof PreauthOffer
|
|
588
651
|
*/
|
|
589
|
-
'
|
|
652
|
+
'issuerUrl': string;
|
|
590
653
|
/**
|
|
591
654
|
*
|
|
592
655
|
* @type {string}
|
|
@@ -594,6 +657,159 @@ export interface PreauthOffer {
|
|
|
594
657
|
*/
|
|
595
658
|
'offer': string;
|
|
596
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @export
|
|
663
|
+
* @interface PresentationDefinition
|
|
664
|
+
*/
|
|
665
|
+
export interface PresentationDefinition {
|
|
666
|
+
/**
|
|
667
|
+
*
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof PresentationDefinition
|
|
670
|
+
*/
|
|
671
|
+
'id': string;
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @type {PresentationDefinitionFormat}
|
|
675
|
+
* @memberof PresentationDefinition
|
|
676
|
+
*/
|
|
677
|
+
'format': PresentationDefinitionFormat;
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @type {Array<PresentationDefinitionInputDescriptor>}
|
|
681
|
+
* @memberof PresentationDefinition
|
|
682
|
+
*/
|
|
683
|
+
'input_descriptors': Array<PresentationDefinitionInputDescriptor>;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @export
|
|
688
|
+
* @interface PresentationDefinitionFormat
|
|
689
|
+
*/
|
|
690
|
+
export interface PresentationDefinitionFormat {
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @type {PresentationDefinitionFormatAlg}
|
|
694
|
+
* @memberof PresentationDefinitionFormat
|
|
695
|
+
*/
|
|
696
|
+
'jwt_vc': PresentationDefinitionFormatAlg;
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
* @type {PresentationDefinitionFormatAlg}
|
|
700
|
+
* @memberof PresentationDefinitionFormat
|
|
701
|
+
*/
|
|
702
|
+
'jwt_vp': PresentationDefinitionFormatAlg;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @export
|
|
707
|
+
* @interface PresentationDefinitionFormatAlg
|
|
708
|
+
*/
|
|
709
|
+
export interface PresentationDefinitionFormatAlg {
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @type {Array<string>}
|
|
713
|
+
* @memberof PresentationDefinitionFormatAlg
|
|
714
|
+
*/
|
|
715
|
+
'alg': Array<string>;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
*
|
|
719
|
+
* @export
|
|
720
|
+
* @interface PresentationDefinitionInputConstraint
|
|
721
|
+
*/
|
|
722
|
+
export interface PresentationDefinitionInputConstraint {
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @type {Array<PresentationDefinitionInputConstraintField>}
|
|
726
|
+
* @memberof PresentationDefinitionInputConstraint
|
|
727
|
+
*/
|
|
728
|
+
'fields': Array<PresentationDefinitionInputConstraintField>;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @export
|
|
733
|
+
* @interface PresentationDefinitionInputConstraintField
|
|
734
|
+
*/
|
|
735
|
+
export interface PresentationDefinitionInputConstraintField {
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @type {PresentationDefinitionInputDescriptorFilter}
|
|
739
|
+
* @memberof PresentationDefinitionInputConstraintField
|
|
740
|
+
*/
|
|
741
|
+
'filter': PresentationDefinitionInputDescriptorFilter;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {Array<string>}
|
|
745
|
+
* @memberof PresentationDefinitionInputConstraintField
|
|
746
|
+
*/
|
|
747
|
+
'path': Array<string>;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
*
|
|
751
|
+
* @export
|
|
752
|
+
* @interface PresentationDefinitionInputContains
|
|
753
|
+
*/
|
|
754
|
+
export interface PresentationDefinitionInputContains {
|
|
755
|
+
/**
|
|
756
|
+
*
|
|
757
|
+
* @type {string}
|
|
758
|
+
* @memberof PresentationDefinitionInputContains
|
|
759
|
+
*/
|
|
760
|
+
'const': string;
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
*
|
|
764
|
+
* @export
|
|
765
|
+
* @interface PresentationDefinitionInputDescriptor
|
|
766
|
+
*/
|
|
767
|
+
export interface PresentationDefinitionInputDescriptor {
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* @type {string}
|
|
771
|
+
* @memberof PresentationDefinitionInputDescriptor
|
|
772
|
+
*/
|
|
773
|
+
'id': string;
|
|
774
|
+
/**
|
|
775
|
+
*
|
|
776
|
+
* @type {PresentationDefinitionInputConstraint}
|
|
777
|
+
* @memberof PresentationDefinitionInputDescriptor
|
|
778
|
+
*/
|
|
779
|
+
'constraints': PresentationDefinitionInputConstraint;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
* @export
|
|
784
|
+
* @interface PresentationDefinitionInputDescriptorFilter
|
|
785
|
+
*/
|
|
786
|
+
export interface PresentationDefinitionInputDescriptorFilter {
|
|
787
|
+
/**
|
|
788
|
+
*
|
|
789
|
+
* @type {string}
|
|
790
|
+
* @memberof PresentationDefinitionInputDescriptorFilter
|
|
791
|
+
*/
|
|
792
|
+
'type': string;
|
|
793
|
+
/**
|
|
794
|
+
*
|
|
795
|
+
* @type {PresentationDefinitionInputContains}
|
|
796
|
+
* @memberof PresentationDefinitionInputDescriptorFilter
|
|
797
|
+
*/
|
|
798
|
+
'contains': PresentationDefinitionInputContains;
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @export
|
|
803
|
+
* @interface PresentationRequest
|
|
804
|
+
*/
|
|
805
|
+
export interface PresentationRequest {
|
|
806
|
+
/**
|
|
807
|
+
* URL of verifier authorization server. MUST contain the verifier scope as a query parameter(`scope`).
|
|
808
|
+
* @type {string}
|
|
809
|
+
* @memberof PresentationRequest
|
|
810
|
+
*/
|
|
811
|
+
'verifierUrl': string;
|
|
812
|
+
}
|
|
597
813
|
/**
|
|
598
814
|
* One or more cryptographic proofs that can be used to detect tampering and verify the authorship of a verifiable credential or verifiable presentation https://www.w3.org/TR/vc-data-model-2.0/#securing-verifiable-credentials
|
|
599
815
|
* @export
|
|
@@ -726,6 +942,44 @@ export interface VcOffer {
|
|
|
726
942
|
*/
|
|
727
943
|
'Pin'?: string;
|
|
728
944
|
}
|
|
945
|
+
/**
|
|
946
|
+
* Request for the creation of URL used by holder to present credentials to a verifier. Either clientId or idTokenRequestId MUST be present.
|
|
947
|
+
* @export
|
|
948
|
+
* @interface VerifyInitUrlReq
|
|
949
|
+
*/
|
|
950
|
+
export interface VerifyInitUrlReq {
|
|
951
|
+
/**
|
|
952
|
+
* DID of client for which verification url is created
|
|
953
|
+
* @type {string}
|
|
954
|
+
* @memberof VerifyInitUrlReq
|
|
955
|
+
*/
|
|
956
|
+
'clientId'?: string;
|
|
957
|
+
/**
|
|
958
|
+
* Id of ID token request with which the client shares its did
|
|
959
|
+
* @type {string}
|
|
960
|
+
* @memberof VerifyInitUrlReq
|
|
961
|
+
*/
|
|
962
|
+
'idTokenRequestId'?: string;
|
|
963
|
+
/**
|
|
964
|
+
*
|
|
965
|
+
* @type {string}
|
|
966
|
+
* @memberof VerifyInitUrlReq
|
|
967
|
+
*/
|
|
968
|
+
'verifierScope': string;
|
|
969
|
+
}
|
|
970
|
+
/**
|
|
971
|
+
*
|
|
972
|
+
* @export
|
|
973
|
+
* @interface VerifyInitUrlResp
|
|
974
|
+
*/
|
|
975
|
+
export interface VerifyInitUrlResp {
|
|
976
|
+
/**
|
|
977
|
+
* Url of verifier authorization server that contains the requested verifier scope.
|
|
978
|
+
* @type {string}
|
|
979
|
+
* @memberof VerifyInitUrlResp
|
|
980
|
+
*/
|
|
981
|
+
'verifierUrl': string;
|
|
982
|
+
}
|
|
729
983
|
/**
|
|
730
984
|
* Wallet details
|
|
731
985
|
* @export
|
|
@@ -769,6 +1023,43 @@ export interface WalletConfig {
|
|
|
769
1023
|
* @memberof WalletConfig
|
|
770
1024
|
*/
|
|
771
1025
|
'credentialIssuers'?: Array<CredentialIssuerDefinition>;
|
|
1026
|
+
/**
|
|
1027
|
+
* List of credential verifiers to be used (TBD)
|
|
1028
|
+
* @type {Array<CredentialVerifierDefinition>}
|
|
1029
|
+
* @memberof WalletConfig
|
|
1030
|
+
*/
|
|
1031
|
+
'credentialVerifiers'?: Array<CredentialVerifierDefinition>;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
*
|
|
1035
|
+
* @export
|
|
1036
|
+
* @interface WalletNotification
|
|
1037
|
+
*/
|
|
1038
|
+
export interface WalletNotification {
|
|
1039
|
+
/**
|
|
1040
|
+
*
|
|
1041
|
+
* @type {string}
|
|
1042
|
+
* @memberof WalletNotification
|
|
1043
|
+
*/
|
|
1044
|
+
'senderDid': string;
|
|
1045
|
+
/**
|
|
1046
|
+
*
|
|
1047
|
+
* @type {string}
|
|
1048
|
+
* @memberof WalletNotification
|
|
1049
|
+
*/
|
|
1050
|
+
'eventType': string;
|
|
1051
|
+
/**
|
|
1052
|
+
*
|
|
1053
|
+
* @type {string}
|
|
1054
|
+
* @memberof WalletNotification
|
|
1055
|
+
*/
|
|
1056
|
+
'message': string;
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @type {string}
|
|
1060
|
+
* @memberof WalletNotification
|
|
1061
|
+
*/
|
|
1062
|
+
'time': string;
|
|
772
1063
|
}
|
|
773
1064
|
/**
|
|
774
1065
|
* DefaultApi - axios parameter creator
|
|
@@ -868,6 +1159,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
868
1159
|
* @throws {RequiredError}
|
|
869
1160
|
*/
|
|
870
1161
|
oidcAddCredToIssuanceQueue: (credentialId: string, walletId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Creates an ID token request.
|
|
1164
|
+
* @param {string} walletId
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
*/
|
|
1168
|
+
oidcCreateIdTokenRequest: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
871
1169
|
/**
|
|
872
1170
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
873
1171
|
* @param {string} walletId
|
|
@@ -892,6 +1190,30 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
892
1190
|
* @throws {RequiredError}
|
|
893
1191
|
*/
|
|
894
1192
|
oidcInitiatePreauth: (walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1193
|
+
/**
|
|
1194
|
+
* Initiates a presentation of credentials to a verifier.
|
|
1195
|
+
* @param {string} walletId
|
|
1196
|
+
* @param {PresentationRequest} [presentationRequest]
|
|
1197
|
+
* @param {*} [options] Override http request option.
|
|
1198
|
+
* @throws {RequiredError}
|
|
1199
|
+
*/
|
|
1200
|
+
oidcPresentCredentials: (walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Responds to an ID token request
|
|
1203
|
+
* @param {string} walletId
|
|
1204
|
+
* @param {IdTokenSendReq} [idTokenSendReq]
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
*/
|
|
1208
|
+
oidcSendIdToken: (walletId: string, idTokenSendReq?: IdTokenSendReq, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Returns an url where verifier accepts presentations.
|
|
1211
|
+
* @param {string} walletId
|
|
1212
|
+
* @param {VerifyInitUrlReq} [verifyInitUrlReq]
|
|
1213
|
+
* @param {*} [options] Override http request option.
|
|
1214
|
+
* @throws {RequiredError}
|
|
1215
|
+
*/
|
|
1216
|
+
oidcVerifyInitUrl: (walletId: string, verifyInitUrlReq?: VerifyInitUrlReq, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
895
1217
|
/**
|
|
896
1218
|
* Provides wallet details
|
|
897
1219
|
* @param {string} walletId
|
|
@@ -905,6 +1227,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
905
1227
|
* @throws {RequiredError}
|
|
906
1228
|
*/
|
|
907
1229
|
walletList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Provides wallet notifications
|
|
1232
|
+
* @param {string} walletId Wallet ID
|
|
1233
|
+
* @param {*} [options] Override http request option.
|
|
1234
|
+
* @throws {RequiredError}
|
|
1235
|
+
*/
|
|
1236
|
+
walletNotifications: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
908
1237
|
/**
|
|
909
1238
|
* The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
|
|
910
1239
|
* @param {string} [walletId] Has to be provided for updates.
|
|
@@ -1012,6 +1341,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1012
1341
|
* @throws {RequiredError}
|
|
1013
1342
|
*/
|
|
1014
1343
|
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1344
|
+
/**
|
|
1345
|
+
* Creates an ID token request.
|
|
1346
|
+
* @param {string} walletId
|
|
1347
|
+
* @param {*} [options] Override http request option.
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
*/
|
|
1350
|
+
oidcCreateIdTokenRequest(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IdTokenRequest>>;
|
|
1015
1351
|
/**
|
|
1016
1352
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1017
1353
|
* @param {string} walletId
|
|
@@ -1036,6 +1372,30 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1036
1372
|
* @throws {RequiredError}
|
|
1037
1373
|
*/
|
|
1038
1374
|
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreauthOffer>>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Initiates a presentation of credentials to a verifier.
|
|
1377
|
+
* @param {string} walletId
|
|
1378
|
+
* @param {PresentationRequest} [presentationRequest]
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
*/
|
|
1382
|
+
oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Responds to an ID token request
|
|
1385
|
+
* @param {string} walletId
|
|
1386
|
+
* @param {IdTokenSendReq} [idTokenSendReq]
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
oidcSendIdToken(walletId: string, idTokenSendReq?: IdTokenSendReq, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1391
|
+
/**
|
|
1392
|
+
* Returns an url where verifier accepts presentations.
|
|
1393
|
+
* @param {string} walletId
|
|
1394
|
+
* @param {VerifyInitUrlReq} [verifyInitUrlReq]
|
|
1395
|
+
* @param {*} [options] Override http request option.
|
|
1396
|
+
* @throws {RequiredError}
|
|
1397
|
+
*/
|
|
1398
|
+
oidcVerifyInitUrl(walletId: string, verifyInitUrlReq?: VerifyInitUrlReq, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyInitUrlResp>>;
|
|
1039
1399
|
/**
|
|
1040
1400
|
* Provides wallet details
|
|
1041
1401
|
* @param {string} walletId
|
|
@@ -1049,6 +1409,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1049
1409
|
* @throws {RequiredError}
|
|
1050
1410
|
*/
|
|
1051
1411
|
walletList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Wallet>>>;
|
|
1412
|
+
/**
|
|
1413
|
+
* Provides wallet notifications
|
|
1414
|
+
* @param {string} walletId Wallet ID
|
|
1415
|
+
* @param {*} [options] Override http request option.
|
|
1416
|
+
* @throws {RequiredError}
|
|
1417
|
+
*/
|
|
1418
|
+
walletNotifications(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WalletNotification>>>;
|
|
1052
1419
|
/**
|
|
1053
1420
|
* The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
|
|
1054
1421
|
* @param {string} [walletId] Has to be provided for updates.
|
|
@@ -1156,6 +1523,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1156
1523
|
* @throws {RequiredError}
|
|
1157
1524
|
*/
|
|
1158
1525
|
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: any): AxiosPromise<void>;
|
|
1526
|
+
/**
|
|
1527
|
+
* Creates an ID token request.
|
|
1528
|
+
* @param {string} walletId
|
|
1529
|
+
* @param {*} [options] Override http request option.
|
|
1530
|
+
* @throws {RequiredError}
|
|
1531
|
+
*/
|
|
1532
|
+
oidcCreateIdTokenRequest(walletId: string, options?: any): AxiosPromise<IdTokenRequest>;
|
|
1159
1533
|
/**
|
|
1160
1534
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1161
1535
|
* @param {string} walletId
|
|
@@ -1180,6 +1554,30 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1180
1554
|
* @throws {RequiredError}
|
|
1181
1555
|
*/
|
|
1182
1556
|
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: any): AxiosPromise<PreauthOffer>;
|
|
1557
|
+
/**
|
|
1558
|
+
* Initiates a presentation of credentials to a verifier.
|
|
1559
|
+
* @param {string} walletId
|
|
1560
|
+
* @param {PresentationRequest} [presentationRequest]
|
|
1561
|
+
* @param {*} [options] Override http request option.
|
|
1562
|
+
* @throws {RequiredError}
|
|
1563
|
+
*/
|
|
1564
|
+
oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: any): AxiosPromise<void>;
|
|
1565
|
+
/**
|
|
1566
|
+
* Responds to an ID token request
|
|
1567
|
+
* @param {string} walletId
|
|
1568
|
+
* @param {IdTokenSendReq} [idTokenSendReq]
|
|
1569
|
+
* @param {*} [options] Override http request option.
|
|
1570
|
+
* @throws {RequiredError}
|
|
1571
|
+
*/
|
|
1572
|
+
oidcSendIdToken(walletId: string, idTokenSendReq?: IdTokenSendReq, options?: any): AxiosPromise<void>;
|
|
1573
|
+
/**
|
|
1574
|
+
* Returns an url where verifier accepts presentations.
|
|
1575
|
+
* @param {string} walletId
|
|
1576
|
+
* @param {VerifyInitUrlReq} [verifyInitUrlReq]
|
|
1577
|
+
* @param {*} [options] Override http request option.
|
|
1578
|
+
* @throws {RequiredError}
|
|
1579
|
+
*/
|
|
1580
|
+
oidcVerifyInitUrl(walletId: string, verifyInitUrlReq?: VerifyInitUrlReq, options?: any): AxiosPromise<VerifyInitUrlResp>;
|
|
1183
1581
|
/**
|
|
1184
1582
|
* Provides wallet details
|
|
1185
1583
|
* @param {string} walletId
|
|
@@ -1193,6 +1591,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1193
1591
|
* @throws {RequiredError}
|
|
1194
1592
|
*/
|
|
1195
1593
|
walletList(options?: any): AxiosPromise<Array<Wallet>>;
|
|
1594
|
+
/**
|
|
1595
|
+
* Provides wallet notifications
|
|
1596
|
+
* @param {string} walletId Wallet ID
|
|
1597
|
+
* @param {*} [options] Override http request option.
|
|
1598
|
+
* @throws {RequiredError}
|
|
1599
|
+
*/
|
|
1600
|
+
walletNotifications(walletId: string, options?: any): AxiosPromise<Array<WalletNotification>>;
|
|
1196
1601
|
/**
|
|
1197
1602
|
* The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
|
|
1198
1603
|
* @param {string} [walletId] Has to be provided for updates.
|
|
@@ -1314,6 +1719,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1314
1719
|
* @memberof DefaultApi
|
|
1315
1720
|
*/
|
|
1316
1721
|
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1722
|
+
/**
|
|
1723
|
+
* Creates an ID token request.
|
|
1724
|
+
* @param {string} walletId
|
|
1725
|
+
* @param {*} [options] Override http request option.
|
|
1726
|
+
* @throws {RequiredError}
|
|
1727
|
+
* @memberof DefaultApi
|
|
1728
|
+
*/
|
|
1729
|
+
oidcCreateIdTokenRequest(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IdTokenRequest, any>>;
|
|
1317
1730
|
/**
|
|
1318
1731
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1319
1732
|
* @param {string} walletId
|
|
@@ -1341,6 +1754,33 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1341
1754
|
* @memberof DefaultApi
|
|
1342
1755
|
*/
|
|
1343
1756
|
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreauthOffer, any>>;
|
|
1757
|
+
/**
|
|
1758
|
+
* Initiates a presentation of credentials to a verifier.
|
|
1759
|
+
* @param {string} walletId
|
|
1760
|
+
* @param {PresentationRequest} [presentationRequest]
|
|
1761
|
+
* @param {*} [options] Override http request option.
|
|
1762
|
+
* @throws {RequiredError}
|
|
1763
|
+
* @memberof DefaultApi
|
|
1764
|
+
*/
|
|
1765
|
+
oidcPresentCredentials(walletId: string, presentationRequest?: PresentationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1766
|
+
/**
|
|
1767
|
+
* Responds to an ID token request
|
|
1768
|
+
* @param {string} walletId
|
|
1769
|
+
* @param {IdTokenSendReq} [idTokenSendReq]
|
|
1770
|
+
* @param {*} [options] Override http request option.
|
|
1771
|
+
* @throws {RequiredError}
|
|
1772
|
+
* @memberof DefaultApi
|
|
1773
|
+
*/
|
|
1774
|
+
oidcSendIdToken(walletId: string, idTokenSendReq?: IdTokenSendReq, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1775
|
+
/**
|
|
1776
|
+
* Returns an url where verifier accepts presentations.
|
|
1777
|
+
* @param {string} walletId
|
|
1778
|
+
* @param {VerifyInitUrlReq} [verifyInitUrlReq]
|
|
1779
|
+
* @param {*} [options] Override http request option.
|
|
1780
|
+
* @throws {RequiredError}
|
|
1781
|
+
* @memberof DefaultApi
|
|
1782
|
+
*/
|
|
1783
|
+
oidcVerifyInitUrl(walletId: string, verifyInitUrlReq?: VerifyInitUrlReq, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyInitUrlResp, any>>;
|
|
1344
1784
|
/**
|
|
1345
1785
|
* Provides wallet details
|
|
1346
1786
|
* @param {string} walletId
|
|
@@ -1356,6 +1796,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1356
1796
|
* @memberof DefaultApi
|
|
1357
1797
|
*/
|
|
1358
1798
|
walletList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet[], any>>;
|
|
1799
|
+
/**
|
|
1800
|
+
* Provides wallet notifications
|
|
1801
|
+
* @param {string} walletId Wallet ID
|
|
1802
|
+
* @param {*} [options] Override http request option.
|
|
1803
|
+
* @throws {RequiredError}
|
|
1804
|
+
* @memberof DefaultApi
|
|
1805
|
+
*/
|
|
1806
|
+
walletNotifications(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotification[], any>>;
|
|
1359
1807
|
/**
|
|
1360
1808
|
* The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
|
|
1361
1809
|
* @param {string} [walletId] Has to be provided for updates.
|
package/api.js
CHANGED
|
@@ -481,6 +481,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
481
481
|
options: localVarRequestOptions,
|
|
482
482
|
};
|
|
483
483
|
}),
|
|
484
|
+
/**
|
|
485
|
+
* Creates an ID token request.
|
|
486
|
+
* @param {string} walletId
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
oidcCreateIdTokenRequest: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
491
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
492
|
+
(0, common_1.assertParamExists)('oidcCreateIdTokenRequest', 'walletId', walletId);
|
|
493
|
+
const localVarPath = `/id-token/request`;
|
|
494
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
495
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
496
|
+
let baseOptions;
|
|
497
|
+
if (configuration) {
|
|
498
|
+
baseOptions = configuration.baseOptions;
|
|
499
|
+
}
|
|
500
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
501
|
+
const localVarHeaderParameter = {};
|
|
502
|
+
const localVarQueryParameter = {};
|
|
503
|
+
// authentication accessToken required
|
|
504
|
+
// http bearer authentication required
|
|
505
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
506
|
+
if (walletId != null) {
|
|
507
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
508
|
+
}
|
|
509
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
511
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
512
|
+
return {
|
|
513
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
514
|
+
options: localVarRequestOptions,
|
|
515
|
+
};
|
|
516
|
+
}),
|
|
484
517
|
/**
|
|
485
518
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
486
519
|
* @param {string} walletId
|
|
@@ -498,7 +531,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
498
531
|
if (configuration) {
|
|
499
532
|
baseOptions = configuration.baseOptions;
|
|
500
533
|
}
|
|
501
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
534
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
502
535
|
const localVarHeaderParameter = {};
|
|
503
536
|
const localVarQueryParameter = {};
|
|
504
537
|
// authentication accessToken required
|
|
@@ -589,6 +622,108 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
589
622
|
options: localVarRequestOptions,
|
|
590
623
|
};
|
|
591
624
|
}),
|
|
625
|
+
/**
|
|
626
|
+
* Initiates a presentation of credentials to a verifier.
|
|
627
|
+
* @param {string} walletId
|
|
628
|
+
* @param {PresentationRequest} [presentationRequest]
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
oidcPresentCredentials: (walletId, presentationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
633
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
634
|
+
(0, common_1.assertParamExists)('oidcPresentCredentials', 'walletId', walletId);
|
|
635
|
+
const localVarPath = `/present`;
|
|
636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
637
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
638
|
+
let baseOptions;
|
|
639
|
+
if (configuration) {
|
|
640
|
+
baseOptions = configuration.baseOptions;
|
|
641
|
+
}
|
|
642
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
643
|
+
const localVarHeaderParameter = {};
|
|
644
|
+
const localVarQueryParameter = {};
|
|
645
|
+
// authentication accessToken required
|
|
646
|
+
// http bearer authentication required
|
|
647
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
648
|
+
if (walletId != null) {
|
|
649
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
650
|
+
}
|
|
651
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
652
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
653
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
654
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
655
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(presentationRequest, localVarRequestOptions, configuration);
|
|
656
|
+
return {
|
|
657
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
658
|
+
options: localVarRequestOptions,
|
|
659
|
+
};
|
|
660
|
+
}),
|
|
661
|
+
/**
|
|
662
|
+
* Responds to an ID token request
|
|
663
|
+
* @param {string} walletId
|
|
664
|
+
* @param {IdTokenSendReq} [idTokenSendReq]
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
oidcSendIdToken: (walletId, idTokenSendReq, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
669
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
670
|
+
(0, common_1.assertParamExists)('oidcSendIdToken', 'walletId', walletId);
|
|
671
|
+
const localVarPath = `/id-token/send`;
|
|
672
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
673
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
674
|
+
let baseOptions;
|
|
675
|
+
if (configuration) {
|
|
676
|
+
baseOptions = configuration.baseOptions;
|
|
677
|
+
}
|
|
678
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
679
|
+
const localVarHeaderParameter = {};
|
|
680
|
+
const localVarQueryParameter = {};
|
|
681
|
+
if (walletId != null) {
|
|
682
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
683
|
+
}
|
|
684
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
685
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
687
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
688
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(idTokenSendReq, localVarRequestOptions, configuration);
|
|
689
|
+
return {
|
|
690
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
691
|
+
options: localVarRequestOptions,
|
|
692
|
+
};
|
|
693
|
+
}),
|
|
694
|
+
/**
|
|
695
|
+
* Returns an url where verifier accepts presentations.
|
|
696
|
+
* @param {string} walletId
|
|
697
|
+
* @param {VerifyInitUrlReq} [verifyInitUrlReq]
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
oidcVerifyInitUrl: (walletId, verifyInitUrlReq, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
702
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
703
|
+
(0, common_1.assertParamExists)('oidcVerifyInitUrl', 'walletId', walletId);
|
|
704
|
+
const localVarPath = `/verifier/init-url`;
|
|
705
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
706
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
707
|
+
let baseOptions;
|
|
708
|
+
if (configuration) {
|
|
709
|
+
baseOptions = configuration.baseOptions;
|
|
710
|
+
}
|
|
711
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
712
|
+
const localVarHeaderParameter = {};
|
|
713
|
+
const localVarQueryParameter = {};
|
|
714
|
+
if (walletId != null) {
|
|
715
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
716
|
+
}
|
|
717
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
718
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
719
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
720
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
721
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyInitUrlReq, localVarRequestOptions, configuration);
|
|
722
|
+
return {
|
|
723
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
724
|
+
options: localVarRequestOptions,
|
|
725
|
+
};
|
|
726
|
+
}),
|
|
592
727
|
/**
|
|
593
728
|
* Provides wallet details
|
|
594
729
|
* @param {string} walletId
|
|
@@ -649,6 +784,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
649
784
|
options: localVarRequestOptions,
|
|
650
785
|
};
|
|
651
786
|
}),
|
|
787
|
+
/**
|
|
788
|
+
* Provides wallet notifications
|
|
789
|
+
* @param {string} walletId Wallet ID
|
|
790
|
+
* @param {*} [options] Override http request option.
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
*/
|
|
793
|
+
walletNotifications: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
794
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
795
|
+
(0, common_1.assertParamExists)('walletNotifications', 'walletId', walletId);
|
|
796
|
+
const localVarPath = `/wallets/{wallet_id}/notifications`
|
|
797
|
+
.replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
|
|
798
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
799
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
800
|
+
let baseOptions;
|
|
801
|
+
if (configuration) {
|
|
802
|
+
baseOptions = configuration.baseOptions;
|
|
803
|
+
}
|
|
804
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
805
|
+
const localVarHeaderParameter = {};
|
|
806
|
+
const localVarQueryParameter = {};
|
|
807
|
+
// authentication accessToken required
|
|
808
|
+
// http bearer authentication required
|
|
809
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
810
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
812
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
813
|
+
return {
|
|
814
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
815
|
+
options: localVarRequestOptions,
|
|
816
|
+
};
|
|
817
|
+
}),
|
|
652
818
|
/**
|
|
653
819
|
* The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
|
|
654
820
|
* @param {string} [walletId] Has to be provided for updates.
|
|
@@ -882,6 +1048,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
882
1048
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
883
1049
|
});
|
|
884
1050
|
},
|
|
1051
|
+
/**
|
|
1052
|
+
* Creates an ID token request.
|
|
1053
|
+
* @param {string} walletId
|
|
1054
|
+
* @param {*} [options] Override http request option.
|
|
1055
|
+
* @throws {RequiredError}
|
|
1056
|
+
*/
|
|
1057
|
+
oidcCreateIdTokenRequest(walletId, options) {
|
|
1058
|
+
var _a, _b, _c;
|
|
1059
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1060
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcCreateIdTokenRequest(walletId, options);
|
|
1061
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1062
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcCreateIdTokenRequest']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1063
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1064
|
+
});
|
|
1065
|
+
},
|
|
885
1066
|
/**
|
|
886
1067
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
887
1068
|
* @param {string} walletId
|
|
@@ -930,6 +1111,54 @@ const DefaultApiFp = function (configuration) {
|
|
|
930
1111
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
931
1112
|
});
|
|
932
1113
|
},
|
|
1114
|
+
/**
|
|
1115
|
+
* Initiates a presentation of credentials to a verifier.
|
|
1116
|
+
* @param {string} walletId
|
|
1117
|
+
* @param {PresentationRequest} [presentationRequest]
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
oidcPresentCredentials(walletId, presentationRequest, options) {
|
|
1122
|
+
var _a, _b, _c;
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1124
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcPresentCredentials(walletId, presentationRequest, options);
|
|
1125
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1126
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcPresentCredentials']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1127
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1128
|
+
});
|
|
1129
|
+
},
|
|
1130
|
+
/**
|
|
1131
|
+
* Responds to an ID token request
|
|
1132
|
+
* @param {string} walletId
|
|
1133
|
+
* @param {IdTokenSendReq} [idTokenSendReq]
|
|
1134
|
+
* @param {*} [options] Override http request option.
|
|
1135
|
+
* @throws {RequiredError}
|
|
1136
|
+
*/
|
|
1137
|
+
oidcSendIdToken(walletId, idTokenSendReq, options) {
|
|
1138
|
+
var _a, _b, _c;
|
|
1139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1140
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcSendIdToken(walletId, idTokenSendReq, options);
|
|
1141
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1142
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcSendIdToken']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1143
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1144
|
+
});
|
|
1145
|
+
},
|
|
1146
|
+
/**
|
|
1147
|
+
* Returns an url where verifier accepts presentations.
|
|
1148
|
+
* @param {string} walletId
|
|
1149
|
+
* @param {VerifyInitUrlReq} [verifyInitUrlReq]
|
|
1150
|
+
* @param {*} [options] Override http request option.
|
|
1151
|
+
* @throws {RequiredError}
|
|
1152
|
+
*/
|
|
1153
|
+
oidcVerifyInitUrl(walletId, verifyInitUrlReq, options) {
|
|
1154
|
+
var _a, _b, _c;
|
|
1155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcVerifyInitUrl(walletId, verifyInitUrlReq, options);
|
|
1157
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1158
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcVerifyInitUrl']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1159
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1160
|
+
});
|
|
1161
|
+
},
|
|
933
1162
|
/**
|
|
934
1163
|
* Provides wallet details
|
|
935
1164
|
* @param {string} walletId
|
|
@@ -959,6 +1188,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
959
1188
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
960
1189
|
});
|
|
961
1190
|
},
|
|
1191
|
+
/**
|
|
1192
|
+
* Provides wallet notifications
|
|
1193
|
+
* @param {string} walletId Wallet ID
|
|
1194
|
+
* @param {*} [options] Override http request option.
|
|
1195
|
+
* @throws {RequiredError}
|
|
1196
|
+
*/
|
|
1197
|
+
walletNotifications(walletId, options) {
|
|
1198
|
+
var _a, _b, _c;
|
|
1199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1200
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletNotifications(walletId, options);
|
|
1201
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1202
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletNotifications']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1203
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1204
|
+
});
|
|
1205
|
+
},
|
|
962
1206
|
/**
|
|
963
1207
|
* The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
|
|
964
1208
|
* @param {string} [walletId] Has to be provided for updates.
|
|
@@ -1102,6 +1346,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1102
1346
|
oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options) {
|
|
1103
1347
|
return localVarFp.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options).then((request) => request(axios, basePath));
|
|
1104
1348
|
},
|
|
1349
|
+
/**
|
|
1350
|
+
* Creates an ID token request.
|
|
1351
|
+
* @param {string} walletId
|
|
1352
|
+
* @param {*} [options] Override http request option.
|
|
1353
|
+
* @throws {RequiredError}
|
|
1354
|
+
*/
|
|
1355
|
+
oidcCreateIdTokenRequest(walletId, options) {
|
|
1356
|
+
return localVarFp.oidcCreateIdTokenRequest(walletId, options).then((request) => request(axios, basePath));
|
|
1357
|
+
},
|
|
1105
1358
|
/**
|
|
1106
1359
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1107
1360
|
* @param {string} walletId
|
|
@@ -1132,6 +1385,36 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1132
1385
|
oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
|
|
1133
1386
|
return localVarFp.oidcInitiatePreauth(walletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
|
|
1134
1387
|
},
|
|
1388
|
+
/**
|
|
1389
|
+
* Initiates a presentation of credentials to a verifier.
|
|
1390
|
+
* @param {string} walletId
|
|
1391
|
+
* @param {PresentationRequest} [presentationRequest]
|
|
1392
|
+
* @param {*} [options] Override http request option.
|
|
1393
|
+
* @throws {RequiredError}
|
|
1394
|
+
*/
|
|
1395
|
+
oidcPresentCredentials(walletId, presentationRequest, options) {
|
|
1396
|
+
return localVarFp.oidcPresentCredentials(walletId, presentationRequest, options).then((request) => request(axios, basePath));
|
|
1397
|
+
},
|
|
1398
|
+
/**
|
|
1399
|
+
* Responds to an ID token request
|
|
1400
|
+
* @param {string} walletId
|
|
1401
|
+
* @param {IdTokenSendReq} [idTokenSendReq]
|
|
1402
|
+
* @param {*} [options] Override http request option.
|
|
1403
|
+
* @throws {RequiredError}
|
|
1404
|
+
*/
|
|
1405
|
+
oidcSendIdToken(walletId, idTokenSendReq, options) {
|
|
1406
|
+
return localVarFp.oidcSendIdToken(walletId, idTokenSendReq, options).then((request) => request(axios, basePath));
|
|
1407
|
+
},
|
|
1408
|
+
/**
|
|
1409
|
+
* Returns an url where verifier accepts presentations.
|
|
1410
|
+
* @param {string} walletId
|
|
1411
|
+
* @param {VerifyInitUrlReq} [verifyInitUrlReq]
|
|
1412
|
+
* @param {*} [options] Override http request option.
|
|
1413
|
+
* @throws {RequiredError}
|
|
1414
|
+
*/
|
|
1415
|
+
oidcVerifyInitUrl(walletId, verifyInitUrlReq, options) {
|
|
1416
|
+
return localVarFp.oidcVerifyInitUrl(walletId, verifyInitUrlReq, options).then((request) => request(axios, basePath));
|
|
1417
|
+
},
|
|
1135
1418
|
/**
|
|
1136
1419
|
* Provides wallet details
|
|
1137
1420
|
* @param {string} walletId
|
|
@@ -1149,6 +1432,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1149
1432
|
walletList(options) {
|
|
1150
1433
|
return localVarFp.walletList(options).then((request) => request(axios, basePath));
|
|
1151
1434
|
},
|
|
1435
|
+
/**
|
|
1436
|
+
* Provides wallet notifications
|
|
1437
|
+
* @param {string} walletId Wallet ID
|
|
1438
|
+
* @param {*} [options] Override http request option.
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
*/
|
|
1441
|
+
walletNotifications(walletId, options) {
|
|
1442
|
+
return localVarFp.walletNotifications(walletId, options).then((request) => request(axios, basePath));
|
|
1443
|
+
},
|
|
1152
1444
|
/**
|
|
1153
1445
|
* The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
|
|
1154
1446
|
* @param {string} [walletId] Has to be provided for updates.
|
|
@@ -1298,6 +1590,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1298
1590
|
oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options) {
|
|
1299
1591
|
return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options).then((request) => request(this.axios, this.basePath));
|
|
1300
1592
|
}
|
|
1593
|
+
/**
|
|
1594
|
+
* Creates an ID token request.
|
|
1595
|
+
* @param {string} walletId
|
|
1596
|
+
* @param {*} [options] Override http request option.
|
|
1597
|
+
* @throws {RequiredError}
|
|
1598
|
+
* @memberof DefaultApi
|
|
1599
|
+
*/
|
|
1600
|
+
oidcCreateIdTokenRequest(walletId, options) {
|
|
1601
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcCreateIdTokenRequest(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1602
|
+
}
|
|
1301
1603
|
/**
|
|
1302
1604
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1303
1605
|
* @param {string} walletId
|
|
@@ -1331,6 +1633,39 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1331
1633
|
oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
|
|
1332
1634
|
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(walletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1333
1635
|
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Initiates a presentation of credentials to a verifier.
|
|
1638
|
+
* @param {string} walletId
|
|
1639
|
+
* @param {PresentationRequest} [presentationRequest]
|
|
1640
|
+
* @param {*} [options] Override http request option.
|
|
1641
|
+
* @throws {RequiredError}
|
|
1642
|
+
* @memberof DefaultApi
|
|
1643
|
+
*/
|
|
1644
|
+
oidcPresentCredentials(walletId, presentationRequest, options) {
|
|
1645
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcPresentCredentials(walletId, presentationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1646
|
+
}
|
|
1647
|
+
/**
|
|
1648
|
+
* Responds to an ID token request
|
|
1649
|
+
* @param {string} walletId
|
|
1650
|
+
* @param {IdTokenSendReq} [idTokenSendReq]
|
|
1651
|
+
* @param {*} [options] Override http request option.
|
|
1652
|
+
* @throws {RequiredError}
|
|
1653
|
+
* @memberof DefaultApi
|
|
1654
|
+
*/
|
|
1655
|
+
oidcSendIdToken(walletId, idTokenSendReq, options) {
|
|
1656
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcSendIdToken(walletId, idTokenSendReq, options).then((request) => request(this.axios, this.basePath));
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Returns an url where verifier accepts presentations.
|
|
1660
|
+
* @param {string} walletId
|
|
1661
|
+
* @param {VerifyInitUrlReq} [verifyInitUrlReq]
|
|
1662
|
+
* @param {*} [options] Override http request option.
|
|
1663
|
+
* @throws {RequiredError}
|
|
1664
|
+
* @memberof DefaultApi
|
|
1665
|
+
*/
|
|
1666
|
+
oidcVerifyInitUrl(walletId, verifyInitUrlReq, options) {
|
|
1667
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcVerifyInitUrl(walletId, verifyInitUrlReq, options).then((request) => request(this.axios, this.basePath));
|
|
1668
|
+
}
|
|
1334
1669
|
/**
|
|
1335
1670
|
* Provides wallet details
|
|
1336
1671
|
* @param {string} walletId
|
|
@@ -1350,6 +1685,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1350
1685
|
walletList(options) {
|
|
1351
1686
|
return (0, exports.DefaultApiFp)(this.configuration).walletList(options).then((request) => request(this.axios, this.basePath));
|
|
1352
1687
|
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Provides wallet notifications
|
|
1690
|
+
* @param {string} walletId Wallet ID
|
|
1691
|
+
* @param {*} [options] Override http request option.
|
|
1692
|
+
* @throws {RequiredError}
|
|
1693
|
+
* @memberof DefaultApi
|
|
1694
|
+
*/
|
|
1695
|
+
walletNotifications(walletId, options) {
|
|
1696
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletNotifications(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1697
|
+
}
|
|
1353
1698
|
/**
|
|
1354
1699
|
* The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
|
|
1355
1700
|
* @param {string} [walletId] Has to be provided for updates.
|