@triveria/wallet 0.0.36 → 0.0.38
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 +101 -65
- package/api.js +59 -52
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -484,34 +484,47 @@ export type HealthStatusStatusEnum = typeof HealthStatusStatusEnum[keyof typeof
|
|
|
484
484
|
/**
|
|
485
485
|
* Request for the creation of a holder initiated authorized flow offer.
|
|
486
486
|
* @export
|
|
487
|
-
* @interface
|
|
487
|
+
* @interface HolderAuthOfferCreationRequest
|
|
488
488
|
*/
|
|
489
|
-
export interface
|
|
489
|
+
export interface HolderAuthOfferCreationRequest {
|
|
490
490
|
/**
|
|
491
491
|
*
|
|
492
492
|
* @type {string}
|
|
493
|
-
* @memberof
|
|
493
|
+
* @memberof HolderAuthOfferCreationRequest
|
|
494
494
|
*/
|
|
495
495
|
'issuerUrl': string;
|
|
496
496
|
/**
|
|
497
497
|
*
|
|
498
498
|
* @type {Array<string>}
|
|
499
|
-
* @memberof
|
|
499
|
+
* @memberof HolderAuthOfferCreationRequest
|
|
500
500
|
*/
|
|
501
501
|
'types': Array<string>;
|
|
502
502
|
/**
|
|
503
503
|
*
|
|
504
504
|
* @type {string}
|
|
505
|
-
* @memberof
|
|
505
|
+
* @memberof HolderAuthOfferCreationRequest
|
|
506
506
|
*/
|
|
507
507
|
'state': string;
|
|
508
508
|
/**
|
|
509
509
|
*
|
|
510
510
|
* @type {boolean}
|
|
511
|
-
* @memberof
|
|
511
|
+
* @memberof HolderAuthOfferCreationRequest
|
|
512
512
|
*/
|
|
513
513
|
'deferred': boolean;
|
|
514
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @export
|
|
518
|
+
* @interface IdTokenReceivedNotification
|
|
519
|
+
*/
|
|
520
|
+
export interface IdTokenReceivedNotification {
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @type {string}
|
|
524
|
+
* @memberof IdTokenReceivedNotification
|
|
525
|
+
*/
|
|
526
|
+
'idTokenRequestId': string;
|
|
527
|
+
}
|
|
515
528
|
/**
|
|
516
529
|
*
|
|
517
530
|
* @export
|
|
@@ -534,13 +547,13 @@ export interface IdTokenRequest {
|
|
|
534
547
|
/**
|
|
535
548
|
*
|
|
536
549
|
* @export
|
|
537
|
-
* @interface
|
|
550
|
+
* @interface IdTokenSendRequest
|
|
538
551
|
*/
|
|
539
|
-
export interface
|
|
552
|
+
export interface IdTokenSendRequest {
|
|
540
553
|
/**
|
|
541
554
|
*
|
|
542
555
|
* @type {string}
|
|
543
|
-
* @memberof
|
|
556
|
+
* @memberof IdTokenSendRequest
|
|
544
557
|
*/
|
|
545
558
|
'requestUrl': string;
|
|
546
559
|
}
|
|
@@ -597,19 +610,19 @@ export interface InitPreAuthOffer {
|
|
|
597
610
|
/**
|
|
598
611
|
* 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.
|
|
599
612
|
* @export
|
|
600
|
-
* @interface
|
|
613
|
+
* @interface IssuanceQueueCredentialAdd
|
|
601
614
|
*/
|
|
602
|
-
export interface
|
|
615
|
+
export interface IssuanceQueueCredentialAdd {
|
|
603
616
|
/**
|
|
604
617
|
*
|
|
605
618
|
* @type {string}
|
|
606
|
-
* @memberof
|
|
619
|
+
* @memberof IssuanceQueueCredentialAdd
|
|
607
620
|
*/
|
|
608
621
|
'clientId'?: string;
|
|
609
622
|
/**
|
|
610
623
|
*
|
|
611
624
|
* @type {string}
|
|
612
|
-
* @memberof
|
|
625
|
+
* @memberof IssuanceQueueCredentialAdd
|
|
613
626
|
*/
|
|
614
627
|
'idTokenRequestId'?: string;
|
|
615
628
|
}
|
|
@@ -629,31 +642,31 @@ export interface ModelError {
|
|
|
629
642
|
/**
|
|
630
643
|
* Result of the preauthorized issuance process start. Consists of the preauthorized code, pin, and the issuer url.
|
|
631
644
|
* @export
|
|
632
|
-
* @interface
|
|
645
|
+
* @interface PreAuthOffer
|
|
633
646
|
*/
|
|
634
|
-
export interface
|
|
647
|
+
export interface PreAuthOffer {
|
|
635
648
|
/**
|
|
636
649
|
*
|
|
637
650
|
* @type {string}
|
|
638
|
-
* @memberof
|
|
651
|
+
* @memberof PreAuthOffer
|
|
639
652
|
*/
|
|
640
653
|
'preauthCode': string;
|
|
641
654
|
/**
|
|
642
655
|
*
|
|
643
656
|
* @type {string}
|
|
644
|
-
* @memberof
|
|
657
|
+
* @memberof PreAuthOffer
|
|
645
658
|
*/
|
|
646
659
|
'pin': string;
|
|
647
660
|
/**
|
|
648
661
|
*
|
|
649
662
|
* @type {string}
|
|
650
|
-
* @memberof
|
|
663
|
+
* @memberof PreAuthOffer
|
|
651
664
|
*/
|
|
652
665
|
'issuerUrl': string;
|
|
653
666
|
/**
|
|
654
667
|
*
|
|
655
668
|
* @type {string}
|
|
656
|
-
* @memberof
|
|
669
|
+
* @memberof PreAuthOffer
|
|
657
670
|
*/
|
|
658
671
|
'offer': string;
|
|
659
672
|
}
|
|
@@ -945,41 +958,54 @@ export interface VcOffer {
|
|
|
945
958
|
/**
|
|
946
959
|
* Request for the creation of URL used by holder to present credentials to a verifier. Either clientId or idTokenRequestId MUST be present.
|
|
947
960
|
* @export
|
|
948
|
-
* @interface
|
|
961
|
+
* @interface VerifyInitRequest
|
|
949
962
|
*/
|
|
950
|
-
export interface
|
|
963
|
+
export interface VerifyInitRequest {
|
|
951
964
|
/**
|
|
952
965
|
* DID of client for which verification url is created
|
|
953
966
|
* @type {string}
|
|
954
|
-
* @memberof
|
|
967
|
+
* @memberof VerifyInitRequest
|
|
955
968
|
*/
|
|
956
969
|
'clientId'?: string;
|
|
957
970
|
/**
|
|
958
971
|
* Id of ID token request with which the client shares its did
|
|
959
972
|
* @type {string}
|
|
960
|
-
* @memberof
|
|
973
|
+
* @memberof VerifyInitRequest
|
|
961
974
|
*/
|
|
962
975
|
'idTokenRequestId'?: string;
|
|
963
976
|
/**
|
|
964
977
|
*
|
|
965
978
|
* @type {string}
|
|
966
|
-
* @memberof
|
|
979
|
+
* @memberof VerifyInitRequest
|
|
967
980
|
*/
|
|
968
981
|
'verifierScope': string;
|
|
969
982
|
}
|
|
970
983
|
/**
|
|
971
984
|
*
|
|
972
985
|
* @export
|
|
973
|
-
* @interface
|
|
986
|
+
* @interface VerifyInitResponse
|
|
974
987
|
*/
|
|
975
|
-
export interface
|
|
988
|
+
export interface VerifyInitResponse {
|
|
976
989
|
/**
|
|
977
990
|
* Url of verifier authorization server that contains the requested verifier scope.
|
|
978
991
|
* @type {string}
|
|
979
|
-
* @memberof
|
|
992
|
+
* @memberof VerifyInitResponse
|
|
980
993
|
*/
|
|
981
994
|
'verifierUrl': string;
|
|
982
995
|
}
|
|
996
|
+
/**
|
|
997
|
+
*
|
|
998
|
+
* @export
|
|
999
|
+
* @interface VpVerifiedNotification
|
|
1000
|
+
*/
|
|
1001
|
+
export interface VpVerifiedNotification {
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* @type {string}
|
|
1005
|
+
* @memberof VpVerifiedNotification
|
|
1006
|
+
*/
|
|
1007
|
+
'verifierScope': string;
|
|
1008
|
+
}
|
|
983
1009
|
/**
|
|
984
1010
|
* Wallet details
|
|
985
1011
|
* @export
|
|
@@ -1047,13 +1073,13 @@ export interface WalletNotification {
|
|
|
1047
1073
|
* @type {string}
|
|
1048
1074
|
* @memberof WalletNotification
|
|
1049
1075
|
*/
|
|
1050
|
-
'eventType':
|
|
1076
|
+
'eventType': WalletNotificationEventTypeEnum;
|
|
1051
1077
|
/**
|
|
1052
1078
|
*
|
|
1053
|
-
* @type {
|
|
1079
|
+
* @type {WalletNotificationEventDetails}
|
|
1054
1080
|
* @memberof WalletNotification
|
|
1055
1081
|
*/
|
|
1056
|
-
'
|
|
1082
|
+
'eventDetails'?: WalletNotificationEventDetails;
|
|
1057
1083
|
/**
|
|
1058
1084
|
*
|
|
1059
1085
|
* @type {string}
|
|
@@ -1061,6 +1087,16 @@ export interface WalletNotification {
|
|
|
1061
1087
|
*/
|
|
1062
1088
|
'time': string;
|
|
1063
1089
|
}
|
|
1090
|
+
export declare const WalletNotificationEventTypeEnum: {
|
|
1091
|
+
readonly VpVerified: "vp.verified";
|
|
1092
|
+
readonly IdTokenReceived: "idToken.received";
|
|
1093
|
+
};
|
|
1094
|
+
export type WalletNotificationEventTypeEnum = typeof WalletNotificationEventTypeEnum[keyof typeof WalletNotificationEventTypeEnum];
|
|
1095
|
+
/**
|
|
1096
|
+
* @type WalletNotificationEventDetails
|
|
1097
|
+
* @export
|
|
1098
|
+
*/
|
|
1099
|
+
export type WalletNotificationEventDetails = IdTokenReceivedNotification | VpVerifiedNotification;
|
|
1064
1100
|
/**
|
|
1065
1101
|
* DefaultApi - axios parameter creator
|
|
1066
1102
|
* @export
|
|
@@ -1130,11 +1166,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1130
1166
|
/**
|
|
1131
1167
|
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
1132
1168
|
* @param {string} walletId
|
|
1133
|
-
* @param {
|
|
1169
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
1134
1170
|
* @param {*} [options] Override http request option.
|
|
1135
1171
|
* @throws {RequiredError}
|
|
1136
1172
|
*/
|
|
1137
|
-
holderCreateAuthOffer: (walletId: string,
|
|
1173
|
+
holderCreateAuthOffer: (walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1138
1174
|
/**
|
|
1139
1175
|
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
1140
1176
|
* @param {string} url
|
|
@@ -1154,11 +1190,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1154
1190
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1155
1191
|
* @param {string} credentialId
|
|
1156
1192
|
* @param {string} walletId
|
|
1157
|
-
* @param {
|
|
1193
|
+
* @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
|
|
1158
1194
|
* @param {*} [options] Override http request option.
|
|
1159
1195
|
* @throws {RequiredError}
|
|
1160
1196
|
*/
|
|
1161
|
-
oidcAddCredToIssuanceQueue: (credentialId: string, walletId: string,
|
|
1197
|
+
oidcAddCredToIssuanceQueue: (credentialId: string, walletId: string, issuanceQueueCredentialAdd?: IssuanceQueueCredentialAdd, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1162
1198
|
/**
|
|
1163
1199
|
* Creates an ID token request.
|
|
1164
1200
|
* @param {string} walletId
|
|
@@ -1201,19 +1237,19 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1201
1237
|
/**
|
|
1202
1238
|
* Responds to an ID token request
|
|
1203
1239
|
* @param {string} walletId
|
|
1204
|
-
* @param {
|
|
1240
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
1205
1241
|
* @param {*} [options] Override http request option.
|
|
1206
1242
|
* @throws {RequiredError}
|
|
1207
1243
|
*/
|
|
1208
|
-
oidcSendIdToken: (walletId: string,
|
|
1244
|
+
oidcSendIdToken: (walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1209
1245
|
/**
|
|
1210
1246
|
* Returns an url where verifier accepts presentations.
|
|
1211
1247
|
* @param {string} walletId
|
|
1212
|
-
* @param {
|
|
1248
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
1213
1249
|
* @param {*} [options] Override http request option.
|
|
1214
1250
|
* @throws {RequiredError}
|
|
1215
1251
|
*/
|
|
1216
|
-
oidcVerifyInitUrl: (walletId: string,
|
|
1252
|
+
oidcVerifyInitUrl: (walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1217
1253
|
/**
|
|
1218
1254
|
* Provides wallet details
|
|
1219
1255
|
* @param {string} walletId
|
|
@@ -1312,11 +1348,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1312
1348
|
/**
|
|
1313
1349
|
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
1314
1350
|
* @param {string} walletId
|
|
1315
|
-
* @param {
|
|
1351
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
1316
1352
|
* @param {*} [options] Override http request option.
|
|
1317
1353
|
* @throws {RequiredError}
|
|
1318
1354
|
*/
|
|
1319
|
-
holderCreateAuthOffer(walletId: string,
|
|
1355
|
+
holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1320
1356
|
/**
|
|
1321
1357
|
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
1322
1358
|
* @param {string} url
|
|
@@ -1336,11 +1372,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1336
1372
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1337
1373
|
* @param {string} credentialId
|
|
1338
1374
|
* @param {string} walletId
|
|
1339
|
-
* @param {
|
|
1375
|
+
* @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
|
|
1340
1376
|
* @param {*} [options] Override http request option.
|
|
1341
1377
|
* @throws {RequiredError}
|
|
1342
1378
|
*/
|
|
1343
|
-
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string,
|
|
1379
|
+
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string, issuanceQueueCredentialAdd?: IssuanceQueueCredentialAdd, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1344
1380
|
/**
|
|
1345
1381
|
* Creates an ID token request.
|
|
1346
1382
|
* @param {string} walletId
|
|
@@ -1371,7 +1407,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1371
1407
|
* @param {*} [options] Override http request option.
|
|
1372
1408
|
* @throws {RequiredError}
|
|
1373
1409
|
*/
|
|
1374
|
-
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1410
|
+
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreAuthOffer>>;
|
|
1375
1411
|
/**
|
|
1376
1412
|
* Initiates a presentation of credentials to a verifier.
|
|
1377
1413
|
* @param {string} walletId
|
|
@@ -1383,19 +1419,19 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1383
1419
|
/**
|
|
1384
1420
|
* Responds to an ID token request
|
|
1385
1421
|
* @param {string} walletId
|
|
1386
|
-
* @param {
|
|
1422
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
1387
1423
|
* @param {*} [options] Override http request option.
|
|
1388
1424
|
* @throws {RequiredError}
|
|
1389
1425
|
*/
|
|
1390
|
-
oidcSendIdToken(walletId: string,
|
|
1426
|
+
oidcSendIdToken(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1391
1427
|
/**
|
|
1392
1428
|
* Returns an url where verifier accepts presentations.
|
|
1393
1429
|
* @param {string} walletId
|
|
1394
|
-
* @param {
|
|
1430
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
1395
1431
|
* @param {*} [options] Override http request option.
|
|
1396
1432
|
* @throws {RequiredError}
|
|
1397
1433
|
*/
|
|
1398
|
-
oidcVerifyInitUrl(walletId: string,
|
|
1434
|
+
oidcVerifyInitUrl(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyInitResponse>>;
|
|
1399
1435
|
/**
|
|
1400
1436
|
* Provides wallet details
|
|
1401
1437
|
* @param {string} walletId
|
|
@@ -1494,11 +1530,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1494
1530
|
/**
|
|
1495
1531
|
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
1496
1532
|
* @param {string} walletId
|
|
1497
|
-
* @param {
|
|
1533
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
1498
1534
|
* @param {*} [options] Override http request option.
|
|
1499
1535
|
* @throws {RequiredError}
|
|
1500
1536
|
*/
|
|
1501
|
-
holderCreateAuthOffer(walletId: string,
|
|
1537
|
+
holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: any): AxiosPromise<void>;
|
|
1502
1538
|
/**
|
|
1503
1539
|
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
1504
1540
|
* @param {string} url
|
|
@@ -1518,11 +1554,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1518
1554
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1519
1555
|
* @param {string} credentialId
|
|
1520
1556
|
* @param {string} walletId
|
|
1521
|
-
* @param {
|
|
1557
|
+
* @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
|
|
1522
1558
|
* @param {*} [options] Override http request option.
|
|
1523
1559
|
* @throws {RequiredError}
|
|
1524
1560
|
*/
|
|
1525
|
-
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string,
|
|
1561
|
+
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string, issuanceQueueCredentialAdd?: IssuanceQueueCredentialAdd, options?: any): AxiosPromise<void>;
|
|
1526
1562
|
/**
|
|
1527
1563
|
* Creates an ID token request.
|
|
1528
1564
|
* @param {string} walletId
|
|
@@ -1553,7 +1589,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1553
1589
|
* @param {*} [options] Override http request option.
|
|
1554
1590
|
* @throws {RequiredError}
|
|
1555
1591
|
*/
|
|
1556
|
-
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: any): AxiosPromise<
|
|
1592
|
+
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: any): AxiosPromise<PreAuthOffer>;
|
|
1557
1593
|
/**
|
|
1558
1594
|
* Initiates a presentation of credentials to a verifier.
|
|
1559
1595
|
* @param {string} walletId
|
|
@@ -1565,19 +1601,19 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1565
1601
|
/**
|
|
1566
1602
|
* Responds to an ID token request
|
|
1567
1603
|
* @param {string} walletId
|
|
1568
|
-
* @param {
|
|
1604
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
1569
1605
|
* @param {*} [options] Override http request option.
|
|
1570
1606
|
* @throws {RequiredError}
|
|
1571
1607
|
*/
|
|
1572
|
-
oidcSendIdToken(walletId: string,
|
|
1608
|
+
oidcSendIdToken(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: any): AxiosPromise<void>;
|
|
1573
1609
|
/**
|
|
1574
1610
|
* Returns an url where verifier accepts presentations.
|
|
1575
1611
|
* @param {string} walletId
|
|
1576
|
-
* @param {
|
|
1612
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
1577
1613
|
* @param {*} [options] Override http request option.
|
|
1578
1614
|
* @throws {RequiredError}
|
|
1579
1615
|
*/
|
|
1580
|
-
oidcVerifyInitUrl(walletId: string,
|
|
1616
|
+
oidcVerifyInitUrl(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: any): AxiosPromise<VerifyInitResponse>;
|
|
1581
1617
|
/**
|
|
1582
1618
|
* Provides wallet details
|
|
1583
1619
|
* @param {string} walletId
|
|
@@ -1686,12 +1722,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1686
1722
|
/**
|
|
1687
1723
|
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
1688
1724
|
* @param {string} walletId
|
|
1689
|
-
* @param {
|
|
1725
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
1690
1726
|
* @param {*} [options] Override http request option.
|
|
1691
1727
|
* @throws {RequiredError}
|
|
1692
1728
|
* @memberof DefaultApi
|
|
1693
1729
|
*/
|
|
1694
|
-
holderCreateAuthOffer(walletId: string,
|
|
1730
|
+
holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1695
1731
|
/**
|
|
1696
1732
|
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
1697
1733
|
* @param {string} url
|
|
@@ -1713,12 +1749,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1713
1749
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1714
1750
|
* @param {string} credentialId
|
|
1715
1751
|
* @param {string} walletId
|
|
1716
|
-
* @param {
|
|
1752
|
+
* @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
|
|
1717
1753
|
* @param {*} [options] Override http request option.
|
|
1718
1754
|
* @throws {RequiredError}
|
|
1719
1755
|
* @memberof DefaultApi
|
|
1720
1756
|
*/
|
|
1721
|
-
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string,
|
|
1757
|
+
oidcAddCredToIssuanceQueue(credentialId: string, walletId: string, issuanceQueueCredentialAdd?: IssuanceQueueCredentialAdd, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1722
1758
|
/**
|
|
1723
1759
|
* Creates an ID token request.
|
|
1724
1760
|
* @param {string} walletId
|
|
@@ -1753,7 +1789,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1753
1789
|
* @throws {RequiredError}
|
|
1754
1790
|
* @memberof DefaultApi
|
|
1755
1791
|
*/
|
|
1756
|
-
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
1792
|
+
oidcInitiatePreauth(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreAuthOffer, any>>;
|
|
1757
1793
|
/**
|
|
1758
1794
|
* Initiates a presentation of credentials to a verifier.
|
|
1759
1795
|
* @param {string} walletId
|
|
@@ -1766,21 +1802,21 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1766
1802
|
/**
|
|
1767
1803
|
* Responds to an ID token request
|
|
1768
1804
|
* @param {string} walletId
|
|
1769
|
-
* @param {
|
|
1805
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
1770
1806
|
* @param {*} [options] Override http request option.
|
|
1771
1807
|
* @throws {RequiredError}
|
|
1772
1808
|
* @memberof DefaultApi
|
|
1773
1809
|
*/
|
|
1774
|
-
oidcSendIdToken(walletId: string,
|
|
1810
|
+
oidcSendIdToken(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1775
1811
|
/**
|
|
1776
1812
|
* Returns an url where verifier accepts presentations.
|
|
1777
1813
|
* @param {string} walletId
|
|
1778
|
-
* @param {
|
|
1814
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
1779
1815
|
* @param {*} [options] Override http request option.
|
|
1780
1816
|
* @throws {RequiredError}
|
|
1781
1817
|
* @memberof DefaultApi
|
|
1782
1818
|
*/
|
|
1783
|
-
oidcVerifyInitUrl(walletId: string,
|
|
1819
|
+
oidcVerifyInitUrl(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyInitResponse, any>>;
|
|
1784
1820
|
/**
|
|
1785
1821
|
* Provides wallet details
|
|
1786
1822
|
* @param {string} walletId
|
package/api.js
CHANGED
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.SystemImpactStatusEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = void 0;
|
|
28
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.SystemImpactStatusEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -59,6 +59,10 @@ exports.SystemImpactStatusEnum = {
|
|
|
59
59
|
Limited: 'limited',
|
|
60
60
|
Critical: 'critical'
|
|
61
61
|
};
|
|
62
|
+
exports.WalletNotificationEventTypeEnum = {
|
|
63
|
+
VpVerified: 'vp.verified',
|
|
64
|
+
IdTokenReceived: 'idToken.received'
|
|
65
|
+
};
|
|
62
66
|
/**
|
|
63
67
|
* DefaultApi - axios parameter creator
|
|
64
68
|
* @export
|
|
@@ -342,11 +346,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
342
346
|
/**
|
|
343
347
|
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
344
348
|
* @param {string} walletId
|
|
345
|
-
* @param {
|
|
349
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
346
350
|
* @param {*} [options] Override http request option.
|
|
347
351
|
* @throws {RequiredError}
|
|
348
352
|
*/
|
|
349
|
-
holderCreateAuthOffer: (walletId,
|
|
353
|
+
holderCreateAuthOffer: (walletId, holderAuthOfferCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
350
354
|
// verify required parameter 'walletId' is not null or undefined
|
|
351
355
|
(0, common_1.assertParamExists)('holderCreateAuthOffer', 'walletId', walletId);
|
|
352
356
|
const localVarPath = `/offer/create/intime`;
|
|
@@ -369,7 +373,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
369
373
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
370
374
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
371
375
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
372
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
376
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(holderAuthOfferCreationRequest, localVarRequestOptions, configuration);
|
|
373
377
|
return {
|
|
374
378
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
375
379
|
options: localVarRequestOptions,
|
|
@@ -415,7 +419,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
415
419
|
oidcAcceptOffer: (walletId, vcOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
416
420
|
// verify required parameter 'walletId' is not null or undefined
|
|
417
421
|
(0, common_1.assertParamExists)('oidcAcceptOffer', 'walletId', walletId);
|
|
418
|
-
const localVarPath = `/offer/accept`;
|
|
422
|
+
const localVarPath = `/holder/offer/accept`;
|
|
419
423
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
420
424
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
421
425
|
let baseOptions;
|
|
@@ -445,11 +449,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
445
449
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
446
450
|
* @param {string} credentialId
|
|
447
451
|
* @param {string} walletId
|
|
448
|
-
* @param {
|
|
452
|
+
* @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
|
|
449
453
|
* @param {*} [options] Override http request option.
|
|
450
454
|
* @throws {RequiredError}
|
|
451
455
|
*/
|
|
452
|
-
oidcAddCredToIssuanceQueue: (credentialId, walletId,
|
|
456
|
+
oidcAddCredToIssuanceQueue: (credentialId, walletId, issuanceQueueCredentialAdd, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
453
457
|
// verify required parameter 'credentialId' is not null or undefined
|
|
454
458
|
(0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'credentialId', credentialId);
|
|
455
459
|
// verify required parameter 'walletId' is not null or undefined
|
|
@@ -475,7 +479,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
475
479
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
476
480
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
477
481
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
478
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
482
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(issuanceQueueCredentialAdd, localVarRequestOptions, configuration);
|
|
479
483
|
return {
|
|
480
484
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
481
485
|
options: localVarRequestOptions,
|
|
@@ -661,14 +665,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
661
665
|
/**
|
|
662
666
|
* Responds to an ID token request
|
|
663
667
|
* @param {string} walletId
|
|
664
|
-
* @param {
|
|
668
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
665
669
|
* @param {*} [options] Override http request option.
|
|
666
670
|
* @throws {RequiredError}
|
|
667
671
|
*/
|
|
668
|
-
oidcSendIdToken: (walletId,
|
|
672
|
+
oidcSendIdToken: (walletId, idTokenSendRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
669
673
|
// verify required parameter 'walletId' is not null or undefined
|
|
670
674
|
(0, common_1.assertParamExists)('oidcSendIdToken', 'walletId', walletId);
|
|
671
|
-
const localVarPath = `/id-token/send`;
|
|
675
|
+
const localVarPath = `/holder/id-token/send`;
|
|
672
676
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
673
677
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
674
678
|
let baseOptions;
|
|
@@ -678,6 +682,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
678
682
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
679
683
|
const localVarHeaderParameter = {};
|
|
680
684
|
const localVarQueryParameter = {};
|
|
685
|
+
// authentication accessToken required
|
|
686
|
+
// http bearer authentication required
|
|
687
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
681
688
|
if (walletId != null) {
|
|
682
689
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
683
690
|
}
|
|
@@ -685,7 +692,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
685
692
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
686
693
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
687
694
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
688
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
695
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(idTokenSendRequest, localVarRequestOptions, configuration);
|
|
689
696
|
return {
|
|
690
697
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
691
698
|
options: localVarRequestOptions,
|
|
@@ -694,14 +701,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
694
701
|
/**
|
|
695
702
|
* Returns an url where verifier accepts presentations.
|
|
696
703
|
* @param {string} walletId
|
|
697
|
-
* @param {
|
|
704
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
698
705
|
* @param {*} [options] Override http request option.
|
|
699
706
|
* @throws {RequiredError}
|
|
700
707
|
*/
|
|
701
|
-
oidcVerifyInitUrl: (walletId,
|
|
708
|
+
oidcVerifyInitUrl: (walletId, verifyInitRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
702
709
|
// verify required parameter 'walletId' is not null or undefined
|
|
703
710
|
(0, common_1.assertParamExists)('oidcVerifyInitUrl', 'walletId', walletId);
|
|
704
|
-
const localVarPath = `/verifier/init
|
|
711
|
+
const localVarPath = `/verifier/init`;
|
|
705
712
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
706
713
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
707
714
|
let baseOptions;
|
|
@@ -718,7 +725,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
718
725
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
719
726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
720
727
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
721
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
728
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyInitRequest, localVarRequestOptions, configuration);
|
|
722
729
|
return {
|
|
723
730
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
724
731
|
options: localVarRequestOptions,
|
|
@@ -987,14 +994,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
987
994
|
/**
|
|
988
995
|
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
989
996
|
* @param {string} walletId
|
|
990
|
-
* @param {
|
|
997
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
991
998
|
* @param {*} [options] Override http request option.
|
|
992
999
|
* @throws {RequiredError}
|
|
993
1000
|
*/
|
|
994
|
-
holderCreateAuthOffer(walletId,
|
|
1001
|
+
holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
|
|
995
1002
|
var _a, _b, _c;
|
|
996
1003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
997
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(walletId,
|
|
1004
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options);
|
|
998
1005
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
999
1006
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderCreateAuthOffer']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1000
1007
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -1035,14 +1042,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
1035
1042
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1036
1043
|
* @param {string} credentialId
|
|
1037
1044
|
* @param {string} walletId
|
|
1038
|
-
* @param {
|
|
1045
|
+
* @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
|
|
1039
1046
|
* @param {*} [options] Override http request option.
|
|
1040
1047
|
* @throws {RequiredError}
|
|
1041
1048
|
*/
|
|
1042
|
-
oidcAddCredToIssuanceQueue(credentialId, walletId,
|
|
1049
|
+
oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options) {
|
|
1043
1050
|
var _a, _b, _c;
|
|
1044
1051
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1045
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, walletId,
|
|
1052
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options);
|
|
1046
1053
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1047
1054
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcAddCredToIssuanceQueue']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1048
1055
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -1130,14 +1137,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
1130
1137
|
/**
|
|
1131
1138
|
* Responds to an ID token request
|
|
1132
1139
|
* @param {string} walletId
|
|
1133
|
-
* @param {
|
|
1140
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
1134
1141
|
* @param {*} [options] Override http request option.
|
|
1135
1142
|
* @throws {RequiredError}
|
|
1136
1143
|
*/
|
|
1137
|
-
oidcSendIdToken(walletId,
|
|
1144
|
+
oidcSendIdToken(walletId, idTokenSendRequest, options) {
|
|
1138
1145
|
var _a, _b, _c;
|
|
1139
1146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1140
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcSendIdToken(walletId,
|
|
1147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcSendIdToken(walletId, idTokenSendRequest, options);
|
|
1141
1148
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1142
1149
|
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
1150
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -1146,14 +1153,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
1146
1153
|
/**
|
|
1147
1154
|
* Returns an url where verifier accepts presentations.
|
|
1148
1155
|
* @param {string} walletId
|
|
1149
|
-
* @param {
|
|
1156
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
1150
1157
|
* @param {*} [options] Override http request option.
|
|
1151
1158
|
* @throws {RequiredError}
|
|
1152
1159
|
*/
|
|
1153
|
-
oidcVerifyInitUrl(walletId,
|
|
1160
|
+
oidcVerifyInitUrl(walletId, verifyInitRequest, options) {
|
|
1154
1161
|
var _a, _b, _c;
|
|
1155
1162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1156
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcVerifyInitUrl(walletId,
|
|
1163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcVerifyInitUrl(walletId, verifyInitRequest, options);
|
|
1157
1164
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1158
1165
|
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
1166
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -1309,12 +1316,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1309
1316
|
/**
|
|
1310
1317
|
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
1311
1318
|
* @param {string} walletId
|
|
1312
|
-
* @param {
|
|
1319
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
1313
1320
|
* @param {*} [options] Override http request option.
|
|
1314
1321
|
* @throws {RequiredError}
|
|
1315
1322
|
*/
|
|
1316
|
-
holderCreateAuthOffer(walletId,
|
|
1317
|
-
return localVarFp.holderCreateAuthOffer(walletId,
|
|
1323
|
+
holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
|
|
1324
|
+
return localVarFp.holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options).then((request) => request(axios, basePath));
|
|
1318
1325
|
},
|
|
1319
1326
|
/**
|
|
1320
1327
|
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
@@ -1339,12 +1346,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1339
1346
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1340
1347
|
* @param {string} credentialId
|
|
1341
1348
|
* @param {string} walletId
|
|
1342
|
-
* @param {
|
|
1349
|
+
* @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
|
|
1343
1350
|
* @param {*} [options] Override http request option.
|
|
1344
1351
|
* @throws {RequiredError}
|
|
1345
1352
|
*/
|
|
1346
|
-
oidcAddCredToIssuanceQueue(credentialId, walletId,
|
|
1347
|
-
return localVarFp.oidcAddCredToIssuanceQueue(credentialId, walletId,
|
|
1353
|
+
oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options) {
|
|
1354
|
+
return localVarFp.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options).then((request) => request(axios, basePath));
|
|
1348
1355
|
},
|
|
1349
1356
|
/**
|
|
1350
1357
|
* Creates an ID token request.
|
|
@@ -1398,22 +1405,22 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1398
1405
|
/**
|
|
1399
1406
|
* Responds to an ID token request
|
|
1400
1407
|
* @param {string} walletId
|
|
1401
|
-
* @param {
|
|
1408
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
1402
1409
|
* @param {*} [options] Override http request option.
|
|
1403
1410
|
* @throws {RequiredError}
|
|
1404
1411
|
*/
|
|
1405
|
-
oidcSendIdToken(walletId,
|
|
1406
|
-
return localVarFp.oidcSendIdToken(walletId,
|
|
1412
|
+
oidcSendIdToken(walletId, idTokenSendRequest, options) {
|
|
1413
|
+
return localVarFp.oidcSendIdToken(walletId, idTokenSendRequest, options).then((request) => request(axios, basePath));
|
|
1407
1414
|
},
|
|
1408
1415
|
/**
|
|
1409
1416
|
* Returns an url where verifier accepts presentations.
|
|
1410
1417
|
* @param {string} walletId
|
|
1411
|
-
* @param {
|
|
1418
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
1412
1419
|
* @param {*} [options] Override http request option.
|
|
1413
1420
|
* @throws {RequiredError}
|
|
1414
1421
|
*/
|
|
1415
|
-
oidcVerifyInitUrl(walletId,
|
|
1416
|
-
return localVarFp.oidcVerifyInitUrl(walletId,
|
|
1422
|
+
oidcVerifyInitUrl(walletId, verifyInitRequest, options) {
|
|
1423
|
+
return localVarFp.oidcVerifyInitUrl(walletId, verifyInitRequest, options).then((request) => request(axios, basePath));
|
|
1417
1424
|
},
|
|
1418
1425
|
/**
|
|
1419
1426
|
* Provides wallet details
|
|
@@ -1549,13 +1556,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1549
1556
|
/**
|
|
1550
1557
|
* Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
|
|
1551
1558
|
* @param {string} walletId
|
|
1552
|
-
* @param {
|
|
1559
|
+
* @param {HolderAuthOfferCreationRequest} [holderAuthOfferCreationRequest]
|
|
1553
1560
|
* @param {*} [options] Override http request option.
|
|
1554
1561
|
* @throws {RequiredError}
|
|
1555
1562
|
* @memberof DefaultApi
|
|
1556
1563
|
*/
|
|
1557
|
-
holderCreateAuthOffer(walletId,
|
|
1558
|
-
return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(walletId,
|
|
1564
|
+
holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
|
|
1565
|
+
return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1559
1566
|
}
|
|
1560
1567
|
/**
|
|
1561
1568
|
* Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
|
|
@@ -1582,13 +1589,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1582
1589
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1583
1590
|
* @param {string} credentialId
|
|
1584
1591
|
* @param {string} walletId
|
|
1585
|
-
* @param {
|
|
1592
|
+
* @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
|
|
1586
1593
|
* @param {*} [options] Override http request option.
|
|
1587
1594
|
* @throws {RequiredError}
|
|
1588
1595
|
* @memberof DefaultApi
|
|
1589
1596
|
*/
|
|
1590
|
-
oidcAddCredToIssuanceQueue(credentialId, walletId,
|
|
1591
|
-
return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId, walletId,
|
|
1597
|
+
oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options) {
|
|
1598
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd, options).then((request) => request(this.axios, this.basePath));
|
|
1592
1599
|
}
|
|
1593
1600
|
/**
|
|
1594
1601
|
* Creates an ID token request.
|
|
@@ -1647,24 +1654,24 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1647
1654
|
/**
|
|
1648
1655
|
* Responds to an ID token request
|
|
1649
1656
|
* @param {string} walletId
|
|
1650
|
-
* @param {
|
|
1657
|
+
* @param {IdTokenSendRequest} [idTokenSendRequest]
|
|
1651
1658
|
* @param {*} [options] Override http request option.
|
|
1652
1659
|
* @throws {RequiredError}
|
|
1653
1660
|
* @memberof DefaultApi
|
|
1654
1661
|
*/
|
|
1655
|
-
oidcSendIdToken(walletId,
|
|
1656
|
-
return (0, exports.DefaultApiFp)(this.configuration).oidcSendIdToken(walletId,
|
|
1662
|
+
oidcSendIdToken(walletId, idTokenSendRequest, options) {
|
|
1663
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcSendIdToken(walletId, idTokenSendRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1657
1664
|
}
|
|
1658
1665
|
/**
|
|
1659
1666
|
* Returns an url where verifier accepts presentations.
|
|
1660
1667
|
* @param {string} walletId
|
|
1661
|
-
* @param {
|
|
1668
|
+
* @param {VerifyInitRequest} [verifyInitRequest]
|
|
1662
1669
|
* @param {*} [options] Override http request option.
|
|
1663
1670
|
* @throws {RequiredError}
|
|
1664
1671
|
* @memberof DefaultApi
|
|
1665
1672
|
*/
|
|
1666
|
-
oidcVerifyInitUrl(walletId,
|
|
1667
|
-
return (0, exports.DefaultApiFp)(this.configuration).oidcVerifyInitUrl(walletId,
|
|
1673
|
+
oidcVerifyInitUrl(walletId, verifyInitRequest, options) {
|
|
1674
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcVerifyInitUrl(walletId, verifyInitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1668
1675
|
}
|
|
1669
1676
|
/**
|
|
1670
1677
|
* Provides wallet details
|